From ce33e9dff3f8e7a96d273ea743ae57215bc8ccd2 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Sun, 9 Oct 2022 07:31:26 +0200 Subject: [PATCH] limine: Fix bug which triggered on no-NX where wrong register was used for rd/wrmsr --- common/protos/limine_32.asm_x86 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/protos/limine_32.asm_x86 b/common/protos/limine_32.asm_x86 index 60a7e0a1..ac4ca22f 100644 --- a/common/protos/limine_32.asm_x86 +++ b/common/protos/limine_32.asm_x86 @@ -37,7 +37,7 @@ limine_spinup_32: mov cr4, eax ; Enable EFER.LME - mov eax, 0xc0000080 + mov ecx, 0xc0000080 rdmsr bts eax, 8 wrmsr