summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/lapic.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/amd64/lapic.c')
-rw-r--r--sys/arch/amd64/lapic.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/amd64/lapic.c b/sys/arch/amd64/lapic.c
index 792cfa3..53a4fd5 100644
--- a/sys/arch/amd64/lapic.c
+++ b/sys/arch/amd64/lapic.c
@@ -251,10 +251,14 @@ lapic_init(void)
/* Get the current processor, and calibrate LAPIC timer */
cur_cpu = this_cpu();
+ CPU_INFO_LOCK(cur_cpu);
+
lapic_timer_init(&tmr_freq);
cur_cpu->lapic_tmr_freq = tmr_freq;
/* Set the Local APIC ID */
cur_cpu->lapic_id = lapic_get_id();
+
BSP_KINFO("BSP Local APIC ID: %d\n", cur_cpu->lapic_id);
+
}