1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

A new fix, for some register restoral.

This commit is contained in:
dan
2000-01-20 05:42:07 +00:00
parent 3b374faadc
commit 9b10e8d034

View File

@@ -55,12 +55,16 @@ x86_check_mmx()
"cpuid \n"
"test $(1<<23), %%edx \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"
".Bye: \n"
".NotPentium: \n"
"popal \n"
".noPop: \n"
: "=rm" (result));