Executing CPUID with EAX set to 1 to actually get feature flags.

PR:	169730
This commit is contained in:
David Xu 2012-07-10 01:47:11 +00:00
parent fcdf8255c5
commit b409107773

View File

@ -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"