From 1ee977e98d3053b96ff9d0a965215b8a34061a02 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Wed, 4 Sep 2019 01:00:49 +0900 Subject: [PATCH] Make sure the upper half of eax as returned by cpu_set_pstate() is zero --- kernel/arch/cpu32.S | 1 + 1 file changed, 1 insertion(+) 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 -- 2.47.3