tls: track cpu_id
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
3a3e57eb9c
commit
308ba36aab
4 changed files with 13 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue