mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
A new fix, for some register restoral.
This commit is contained in:
@@ -55,12 +55,16 @@ x86_check_mmx()
|
|||||||
"cpuid \n"
|
"cpuid \n"
|
||||||
"test $(1<<23), %%edx \n"
|
"test $(1<<23), %%edx \n"
|
||||||
"jz .NotMMX \n"
|
"jz .NotMMX \n"
|
||||||
"movl $1, %0 \n"
|
|
||||||
|
"popal \n" // this is needed because the address of
|
||||||
|
"movl $1, %0 \n" // variable %0 may be kept in a register
|
||||||
|
"jmp .noPop \n"
|
||||||
|
|
||||||
".NotMMX: \n"
|
".NotMMX: \n"
|
||||||
".Bye: \n"
|
".Bye: \n"
|
||||||
".NotPentium: \n"
|
".NotPentium: \n"
|
||||||
"popal \n"
|
"popal \n"
|
||||||
|
".noPop: \n"
|
||||||
|
|
||||||
: "=rm" (result));
|
: "=rm" (result));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user