BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / c738dbb1e7e7a46a98436326234826eef71083e2 / kernel / acpi / apic.c

// Related

Nucleus

Barry CPU specific segment c738dbb (3 years, 2 months ago)
diff --git a/kernel/acpi/apic.c b/kernel/acpi/apic.c
index 73da356..c7f8259 100644
--- a/kernel/acpi/apic.c
+++ b/kernel/acpi/apic.c
@@ -103,7 +103,7 @@ apic_start_timer(void)
 {
 	/* Wait for this processor's "turn" */
 	static cpu_t c = 0;
-	while (c != CPUID);
+	while (c != cpu->id);
 
 	/* Start LAPIC countdown from -1 */
 	LAPIC(0x3E0) = 3;