]> git.corax.cc Git - corax/commitdiff
Preserve the value of the ebx register in cpu_get_capabilities()
authorMatthias Kruk <m@m10k.eu>
Tue, 3 Sep 2019 16:42:00 +0000 (01:42 +0900)
committerMatthias Kruk <m@m10k.eu>
Tue, 3 Sep 2019 16:42:00 +0000 (01:42 +0900)
kernel/arch/cpu32.S

index 1d0fb7b7de1c0048cadceda6b04821e88dd3151c..e98f45f8e88d40d437b95a683ae4eada5b1fb1a5 100644 (file)
@@ -43,9 +43,11 @@ cpu_get_id:
 .global cpu_get_capabilities
 
 cpu_get_capabilities:
+       pushl   %ebx
     movl    $1, %eax
     cpuid
     movl    %ecx, %eax
+       popl    %ebx
     ret
 
 .global cpu_timestamp