:: commit e0f0d9687503868202c29e126c512da07eb33b4f

mintsuki <mintsuki@protonmail.com> — 2020-10-26 16:36

parents: 57ca321cca

LAPIC: Fix bug where wrong CPUID bit was tested to check for APIC

diff --git a/limine.bin b/limine.bin
index 6f3d8aee..111f1d33 100644
Binary files a/limine.bin and b/limine.bin differ
diff --git a/stage2/sys/lapic.c b/stage2/sys/lapic.c
index bb16cdf8..b6d20640 100644
--- a/stage2/sys/lapic.c
+++ b/stage2/sys/lapic.c
@@ -19,7 +19,7 @@ bool lapic_check(void) {
     if (!cpuid(1, 0, &eax, &ebx, &ecx, &edx))
         return false;
 
-    if (!(ecx & (1 << 9)))
+    if (!(edx & (1 << 9)))
         return false;
 
     return true;
tab: 248 wrap: offon