Setup TSS, using thread local storage
This commit is contained in:
parent
3eca1e3451
commit
4ced24e8d1
2 changed files with 9 additions and 5 deletions
|
@ -75,7 +75,7 @@ pub unsafe extern fn kstart() -> ! {
|
|||
let mut active_table = paging::init(stack_start, stack_end);
|
||||
|
||||
// Set up GDT
|
||||
gdt::init((&__tbss_end as *const u8 as *const usize).offset(-1) as usize);
|
||||
gdt::init((&__tbss_end as *const u8 as *const usize).offset(-1) as usize, stack_end);
|
||||
|
||||
// Set up IDT
|
||||
idt::init();
|
||||
|
@ -146,7 +146,7 @@ pub unsafe extern fn kstart_ap(stack_start: usize, stack_end: usize) -> ! {
|
|||
let mut active_table = paging::init(stack_start, stack_end);
|
||||
|
||||
// Set up GDT for AP
|
||||
gdt::init_ap((&__tbss_end as *const u8 as *const usize).offset(-1) as usize);
|
||||
gdt::init_ap((&__tbss_end as *const u8 as *const usize).offset(-1) as usize, stack_end);
|
||||
|
||||
// Set up IDT for AP
|
||||
idt::init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue