From: Matthias Kruk Date: Tue, 3 Sep 2019 16:00:49 +0000 (+0900) Subject: Make sure the upper half of eax as returned by cpu_set_pstate() is zero X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=1ee977e98d3053b96ff9d0a965215b8a34061a02;p=corax Make sure the upper half of eax as returned by cpu_set_pstate() is zero --- diff --git a/kernel/arch/cpu32.S b/kernel/arch/cpu32.S index 211f3d1..1d0fb7b 100644 --- a/kernel/arch/cpu32.S +++ b/kernel/arch/cpu32.S @@ -61,6 +61,7 @@ cpu_set_pstate: movl $0x199, %ecx rdmsr movl 8(%esp), %ebx + xorl %eax, %eax movw %bx, %ax wrmsr popl %ebx