:: commit b8b7a798d46feff31f113a4ecb57c68923898108

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

parents: 07ac3de4e6

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

diff --git a/limine.bin b/limine.bin
index 35f3c69a..4293c505 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