summaryrefslogtreecommitdiff
path: root/sys/src/cmd/aux/cpuid.c
diff options
context:
space:
mode:
authorftrvxmtrx <ftrvxmtrx@gmail.com>2013-03-17 13:20:03 +0100
committerftrvxmtrx <ftrvxmtrx@gmail.com>2013-03-17 13:20:03 +0100
commit6862f4ee0e056dc83ec70438916e46547edbb513 (patch)
tree78ab4c5f234daabefba978dca55b62e32a6fe748 /sys/src/cmd/aux/cpuid.c
parent8580ec595b21c37c8343d2a76edaeb4087a9baec (diff)
aux/cpuid: xsaveopt
Diffstat (limited to 'sys/src/cmd/aux/cpuid.c')
-rw-r--r--sys/src/cmd/aux/cpuid.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/sys/src/cmd/aux/cpuid.c b/sys/src/cmd/aux/cpuid.c
index 4729c8b50..aae7a68bb 100644
--- a/sys/src/cmd/aux/cpuid.c
+++ b/sys/src/cmd/aux/cpuid.c
@@ -90,6 +90,18 @@ func1(ulong)
}
void
+func13(ulong)
+{
+ Res r;
+ static char *bitsax[32] = {
+ [0] "xsaveopt",
+ };
+
+ r = cpuid(13, 1);
+ printbits("features", r.ax, bitsax);
+}
+
+void
extfunc1(ulong ax)
{
Res r;
@@ -157,8 +169,9 @@ extfunc8(ulong ax)
}
void (*funcs[])(ulong) = {
- [0] func0,
- [1] func1,
+ [0] func0,
+ [1] func1,
+ [13] func13,
};
void (*extfuncs[])(ulong) = {