summaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-09-24 17:33:48 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-09-24 17:33:48 +0200
commitbf1cd17a446cb99668d4398473e15b5613086ff5 (patch)
treef9e90549776abe2391aa142bc14539f566cc5d49 /kern
parent1c053811c13f3bec4793dfb3ff0cc47854efa448 (diff)
SMP: Fix setting up initial gdt
We cannot access cpu_id_lut from the initial AP state, so update the percpu segment after loading gdt.
Diffstat (limited to 'kern')
-rw-r--r--kern/startup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/startup.c b/kern/startup.c
index 13acb850..177232fc 100644
--- a/kern/startup.c
+++ b/kern/startup.c
@@ -282,7 +282,7 @@ void cpu_launch_first_thread(thread_t th)
{
int mycpu;
- mycpu = cpu_number_slow();
+ mycpu = cpu_number();
cpu_up(mycpu);