diff options
author | Patrick Mooney <patrick.f.mooney@gmail.com> | 2015-06-04 16:47:53 +0000 |
---|---|---|
committer | Patrick Mooney <patrick.f.mooney@gmail.com> | 2015-06-04 20:31:26 +0000 |
commit | 4a5031adce1369203a0975aa624bc65deb2585ae (patch) | |
tree | 87fcb32846dd6f5b17a4ab84de1ea19806cfdd17 /usr/src/man/man7d | |
parent | e799e766fb126dd228d66ef0c564ce7e137292f2 (diff) | |
download | illumos-joyent-4a5031adce1369203a0975aa624bc65deb2585ae.tar.gz |
OS-4368 lxbrand glibc abhors CPUID limits
Diffstat (limited to 'usr/src/man/man7d')
-rw-r--r-- | usr/src/man/man7d/cpuid.7d | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/usr/src/man/man7d/cpuid.7d b/usr/src/man/man7d/cpuid.7d index 1ede29ccc5..b14cc64742 100644 --- a/usr/src/man/man7d/cpuid.7d +++ b/usr/src/man/man7d/cpuid.7d @@ -1,9 +1,10 @@ '\" te .\" Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved +.\" Copyright 2015, Joyent, Inc. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH CPUID 7D "Sep 16, 2004" +.TH CPUID 7D "Jun 04, 2015" .SH NAME cpuid \- CPU identification driver .SH SYNOPSIS @@ -14,29 +15,24 @@ cpuid \- CPU identification driver .SH DESCRIPTION .SS "SPARC and x86 system" -.sp .LP This device provides implementation-private information via ioctls about various aspects of the implementation to Solaris libraries and utilities. .SS "x86 systems only" -.sp .LP This device also provides a file-like view of the namespace and return values of the x86 cpuid instruction. The cpuid instruction takes a single 32-bit integer function code, and returns four 32-bit integer values corresponding to the input value that describe various aspects of the capabilities and configuration of the processor. -.sp .LP The API for the character device consists of using the seek offset to set the function code value, and using a \fBread\fR(2) or \fBpread\fR(2) of 16 bytes to fetch the four 32-bit return values of the instruction in the order %\fBeax\fR, %\fBebx\fR, %\fBecx\fR and %\fBedx\fR. -.sp .LP No data can be written to the device. Like the \fBcpuid\fR instruction, no special privileges are required to use the device. -.sp .LP The device is useful to enable low-level configuration information to be extracted from the CPU without having to write any assembler code to invoke the @@ -44,13 +40,15 @@ extracted from the CPU without having to write any assembler code to invoke the correct any erroneous data returned by the instruction (prompted by occassional errors in the information exported by various processor implementations over the years). -.sp .LP See the processor manufacturers documentation for further information about the syntax and semantics of the wide variety of information available from this instruction. +.LP +Some systems can be configured to limit the cpuid opcodes which are accessible. +While illumos handles this condition, other software may malfunction when such +limits are enabled. Those settings are typically manipulated in the BIOS. .SH EXAMPLE -.sp .LP This example allows you to determine if the current x86 processor supports "long mode," which is a necessary (but not sufficient) condition for running @@ -113,7 +111,6 @@ fail: .in -2 .SH ERRORS -.sp .ne 2 .na \fBENXIO\fR @@ -134,7 +131,6 @@ with a size that is not multiple of 16 bytes. .RE .SH FILES -.sp .ne 2 .na \fB\fB/dev/cpu/self/cpuid\fR\fR @@ -144,7 +140,6 @@ Provides access to CPU identification data. .RE .SH ATTRIBUTES -.sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp @@ -160,7 +155,6 @@ Interface Stability Evolving .TE .SH SEE ALSO -.sp .LP \fBpsrinfo\fR(1M), \fBprtconf\fR(1M), \fBpread\fR(2), \fBread\fR(2), \fBattributes\fR(5) |