tls: track cpu_id

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-22 00:33:02 -04:00
commit 308ba36aab
4 changed files with 13 additions and 5 deletions

View file

@ -60,6 +60,7 @@ void arch_ap_startup()
u64 id = atomic_xadd(&cpu_ticker, 1);
struct cpu_local *this_local = &cpu_local_arr[id];
this_local->cpu_id = id;
wrmsr(IA32_GS_BASE, (u64)this_local);
tss_init(id, this_local);