Implement cpu_local with GS and ensure GS points to TSS

This commit is contained in:
Qingsong Chen
2024-09-19 02:11:32 +00:00
committed by Tate, Hongliang Tian
parent 52bde1721e
commit c2f7a10b84
30 changed files with 901 additions and 112 deletions

View File

@ -121,7 +121,7 @@ fn ap_early_entry(local_apic_id: u32) -> ! {
// SAFETY: this function is only called once on this AP.
unsafe {
trapframe::init();
crate::arch::trap::init(false);
}
// SAFETY: this function is only called once on this AP, after the BSP has