svn commit: r238541 - stable/8/lib/libc/i386/gen
David Xu
davidxu at FreeBSD.org
Tue Jul 17 02:02:41 UTC 2012
Author: davidxu
Date: Tue Jul 17 02:02:40 2012
New Revision: 238541
URL: http://svn.freebsd.org/changeset/base/238541
Log:
MFC r238328:
Executing CPUID with EAX set to 1 to actually get feature flags.
PR: 169730
Modified:
stable/8/lib/libc/i386/gen/getcontextx.c
Directory Properties:
stable/8/lib/libc/ (props changed)
Modified: stable/8/lib/libc/i386/gen/getcontextx.c
==============================================================================
--- stable/8/lib/libc/i386/gen/getcontextx.c Mon Jul 16 22:15:30 2012 (r238540)
+++ stable/8/lib/libc/i386/gen/getcontextx.c Tue Jul 17 02:02:40 2012 (r238541)
@@ -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"
More information about the svn-src-stable
mailing list