From: Matthias Kruk Date: Tue, 3 Sep 2019 16:42:00 +0000 (+0900) Subject: Preserve the value of the ebx register in cpu_get_capabilities() X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=205a5c7340016aaa70ec2e9b0bc12f563a886753;p=corax Preserve the value of the ebx register in cpu_get_capabilities() --- diff --git a/kernel/arch/cpu32.S b/kernel/arch/cpu32.S index 1d0fb7b..e98f45f 100644 --- a/kernel/arch/cpu32.S +++ b/kernel/arch/cpu32.S @@ -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