summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2014-06-19 21:54:41 +0000
committerattilio <attilio@FreeBSD.org>2014-06-19 21:54:41 +0000
commite1ad5f01a6f69b9c7b819712142aec0f82faa8fe (patch)
tree429567dc0768822de4253cd98cbc123c22fd4a08 /share
parent2cd5489f2cdba4185c209ef5cd12f49e3f2113d9 (diff)
downloadFreeBSD-src-e1ad5f01a6f69b9c7b819712142aec0f82faa8fe.zip
FreeBSD-src-e1ad5f01a6f69b9c7b819712142aec0f82faa8fe.tar.gz
Following comments in r242565 add the possibility to specify ecx when
performing cpuid calls. Add also a new way to specify the level type to cpucontrol(8) as reported in the manpage. Sponsored by: EMC / Isilon storage division Reviewed by: bdrewery, gcooper Testerd by: bdrewery
Diffstat (limited to 'share')
-rw-r--r--share/man/man4/cpuctl.412
1 files changed, 10 insertions, 2 deletions
diff --git a/share/man/man4/cpuctl.4 b/share/man/man4/cpuctl.4
index ed80f8a..3aff1e3 100644
--- a/share/man/man4/cpuctl.4
+++ b/share/man/man4/cpuctl.4
@@ -86,19 +86,27 @@ Set/clear MSR bits according to the mask given in the
.Va data
field.
.It Dv CPUCTL_CPUID Fa cpuctl_cpuid_args_t *args
+.It Dv CPUCTL_CPUID_COUNT Fa cpuctl_cpuid_args_t *args
Retrieve CPUID information.
Arguments are supplied in
the following struct:
.Bd -literal
typedef struct {
- int level; /* CPUID level */
+ int level; /* CPUID level */
+ int level_type; /* CPUID level type */
uint32_t data[4];
} cpuctl_cpuid_args_t;
.Ed
.Pp
The
.Va level
-field indicates the CPUID level to retrieve information for, while the
+field indicates the CPUID level to retrieve.
+The
+.Va level_type
+field indicates the CPUID level type to retrieve.
+It is overriden to 0 for
+.Va CPUCTL_CPUID .
+Finally, the
.Va data
field is used to store the received CPUID data.
.It Dv CPUCTL_UPDATE cpuctl_update_args_t *args
OpenPOWER on IntegriCloud