BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / commit / e8e484f3952a9a3b7df1c3f5763a794a51ea6966 / kernel

// Related

Nucleus

Barry Object locking e8e484f (3 years, 3 months ago)
diff --git a/kernel/acpi/apic.c b/kernel/acpi/apic.c
index 2e786c0..0fdb2b2 100644
--- a/kernel/acpi/apic.c
+++ b/kernel/acpi/apic.c
@@ -55,7 +55,7 @@ struct ISOEntry {
 
 size_t numCores = 1;
 uintptr_t lapicPtr, ioapicPtr;
-uint8_t lapicIds[MAX_CPUS], lapicNums[MAX_CPUS];
+cpu_t lapicIds[MAX_CPUS], lapicNums[MAX_CPUS];
 
 /* Enable APIC */
 static void
@@ -100,7 +100,7 @@ static void
 apic_start_timer(void)
 {
 	/* Wait for this processor's "turn" */
-	static uint8_t c = 0;
+	static cpu_t c = 0;
 	while (c != CPUID);
 
 	/* Start LAPIC countdown from -1 */