From 6862f4ee0e056dc83ec70438916e46547edbb513 Mon Sep 17 00:00:00 2001 From: ftrvxmtrx Date: Sun, 17 Mar 2013 13:20:03 +0100 Subject: aux/cpuid: xsaveopt --- sys/src/cmd/aux/cpuid.c | 17 +++++++++++++++-- 1 file 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 @@ -89,6 +89,18 @@ func1(ulong) printbits("features", r.cx, bitscx); } +void +func13(ulong) +{ + Res r; + static char *bitsax[32] = { + [0] "xsaveopt", + }; + + r = cpuid(13, 1); + printbits("features", r.ax, bitsax); +} + void extfunc1(ulong ax) { @@ -157,8 +169,9 @@ extfunc8(ulong ax) } void (*funcs[])(ulong) = { - [0] func0, - [1] func1, + [0] func0, + [1] func1, + [13] func13, }; void (*extfuncs[])(ulong) = { -- cgit v1.2.3