summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386/gen
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2012-07-10 01:47:11 +0000
committerdavidxu <davidxu@FreeBSD.org>2012-07-10 01:47:11 +0000
commitbc71506d20005074684c1f3cc0fb5a60aeb26953 (patch)
treee5290e4943ac8a63444fb206c99afe913dd55560 /lib/libc/i386/gen
parente91ebdf9857b831b5c3d9bcb64efb42046854a73 (diff)
downloadFreeBSD-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/i386/gen')
-rw-r--r--lib/libc/i386/gen/getcontextx.c2
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"
OpenPOWER on IntegriCloud