From 3b374faadcdfde0b710c2793bb5cb38e439d32b7 Mon Sep 17 00:00:00 2001 From: dan Date: Thu, 20 Jan 2000 04:52:42 +0000 Subject: [PATCH] Forgot the 'popal' at the end of asm. --- wrlib/x86_specific.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wrlib/x86_specific.c b/wrlib/x86_specific.c index c550af97..d3c1560f 100644 --- a/wrlib/x86_specific.c +++ b/wrlib/x86_specific.c @@ -49,8 +49,8 @@ x86_check_mmx() "xorl %%ebx, %%eax \n" "andl $(1<<21), %%eax \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" "cpuid \n" "test $(1<<23), %%edx \n" @@ -60,6 +60,7 @@ x86_check_mmx() ".NotMMX: \n" ".Bye: \n" ".NotPentium: \n" + "popal \n" : "=rm" (result));