mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Forgot the 'popal' at the end of asm.
This commit is contained in:
@@ -49,8 +49,8 @@ x86_check_mmx()
|
|||||||
"xorl %%ebx, %%eax \n"
|
"xorl %%ebx, %%eax \n"
|
||||||
"andl $(1<<21), %%eax \n"
|
"andl $(1<<21), %%eax \n"
|
||||||
"jz .NotPentium \n"
|
"jz .NotPentium \n"
|
||||||
"xorl %%eax, %%eax \n"
|
"xorl %%eax, %%eax \n" // no eax effect because of the movl below
|
||||||
|
// except reseting flags. is it needed?
|
||||||
"movl $1, %%eax \n"
|
"movl $1, %%eax \n"
|
||||||
"cpuid \n"
|
"cpuid \n"
|
||||||
"test $(1<<23), %%edx \n"
|
"test $(1<<23), %%edx \n"
|
||||||
@@ -60,6 +60,7 @@ x86_check_mmx()
|
|||||||
".NotMMX: \n"
|
".NotMMX: \n"
|
||||||
".Bye: \n"
|
".Bye: \n"
|
||||||
".NotPentium: \n"
|
".NotPentium: \n"
|
||||||
|
"popal \n"
|
||||||
|
|
||||||
: "=rm" (result));
|
: "=rm" (result));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user