diff options
author | davidxu <davidxu@FreeBSD.org> | 2012-07-10 01:47:11 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2012-07-10 01:47:11 +0000 |
commit | bc71506d20005074684c1f3cc0fb5a60aeb26953 (patch) | |
tree | e5290e4943ac8a63444fb206c99afe913dd55560 /lib/libc | |
parent | e91ebdf9857b831b5c3d9bcb64efb42046854a73 (diff) | |
download | FreeBSD-src-bc71506d20005074684c1f3cc0fb5a60aeb26953.zip FreeBSD-src-bc71506d20005074684c1f3cc0fb5a60aeb26953.tar.gz |
Executing CPUID with EAX set to 1 to actually get feature flags.
PR: 169730
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/i386/gen/getcontextx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/i386/gen/getcontextx.c b/lib/libc/i386/gen/getcontextx.c index 5908ce7..2d3b562 100644 --- a/lib/libc/i386/gen/getcontextx.c +++ b/lib/libc/i386/gen/getcontextx.c @@ -68,7 +68,7 @@ __getcontextx_size(void) " movl %%ebx,%1\n" " popl %%ebx\n" : "=a" (p[0]), "=r" (p[1]), "=c" (p[2]), "=d" (p[3]) - : "0" (0x0)); + : "0" (0x1)); if ((p[2] & CPUID2_OSXSAVE) != 0) { __asm __volatile( " pushl %%ebx\n" |