X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Flowlevel.asm;h=c530a5c0cca3cc4db7cfec77f83c3efa98b708e8;hb=2e05f3b8f738466246add183c55bcb17abf33ec9;hp=f90212c96b72314100ccbe4830c09b9a51ed69d4;hpb=ff58148c2cfbbc82405dc9ec25056cc93c773083;p=palacios.git diff --git a/palacios/src/geekos/lowlevel.asm b/palacios/src/geekos/lowlevel.asm index f90212c..c530a5c 100644 --- a/palacios/src/geekos/lowlevel.asm +++ b/palacios/src/geekos/lowlevel.asm @@ -2,7 +2,7 @@ ; Low level interrupt/thread handling code for GeekOS. ; Copyright (c) 2001,2003,2004 David H. Hovemeyer ; Copyright (c) 2003, Jeffrey K. Hollingsworth -; $Revision: 1.2 $ +; $Revision: 1.3 $ ; This is free software. You are permitted to use, ; redistribute, and modify it as specified in the file "COPYING". @@ -279,9 +279,15 @@ cpuid_edx: push ebp mov ebp, esp push edx + push ecx + push ebx + mov eax, [ebp + 8] cpuid mov eax, edx + + pop ebx + pop ecx pop edx pop ebp ret @@ -294,11 +300,17 @@ align 8 cpuid_ecx: push ebp mov ebp, esp + push edx push ecx + push ebx + mov eax, [ebp + 8] cpuid mov eax, ecx + + pop ebx pop ecx + pop edx pop ebp ret @@ -307,8 +319,19 @@ cpuid_ecx: ; align 8 cpuid_eax: + push ebp + mov ebp, esp + push edx + push ecx + push ebx + mov eax, [esp+4] cpuid + + pop ebx + pop ecx + pop edx + pop ebp ret ;