aboutsummaryrefslogtreecommitdiff
path: root/sys/arch/amd64/lapic.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2023-12-11 14:28:32 -0500
committerIan Moffett <ian@osmora.org>2023-12-11 14:35:44 -0500
commita1d3154381e1bfdbca59bcdf9d4d719b0316fcda (patch)
treeaafa8f1d3e0278e9f8161878de194a041f51288f /sys/arch/amd64/lapic.c
parentd9add153a3a55202089e1c2759db8e00af4676d1 (diff)
kernel/amd64: Update arch(9)
This commit cleans up arch(9) as a few things were noticed. First, it would make sense to identify cores (described by the cpu_info structure) in every arch ported, thus the lapic_id has been changed to id so it can be shared. Some annotations have also been added for the sake of clarity. The manpage for arch(9) has also been cleaned up. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64/lapic.c')
-rw-r--r--sys/arch/amd64/lapic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/lapic.c b/sys/arch/amd64/lapic.c
index 1ea80c4..8058e3f 100644
--- a/sys/arch/amd64/lapic.c
+++ b/sys/arch/amd64/lapic.c
@@ -285,8 +285,8 @@ lapic_init(void)
cur_cpu->lapic_tmr_freq = tmr_freq;
/* Set the Local APIC ID */
- cur_cpu->lapic_id = lapic_get_id();
+ cur_cpu->id = lapic_get_id();
- BSP_KINFO("BSP Local APIC ID: %d\n", cur_cpu->lapic_id);
+ BSP_KINFO("BSP Local APIC ID: %d\n", cur_cpu->id);
CPU_INFO_UNLOCK(cur_cpu);
}