mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
we use a single address space => no update of CR3 is required
This commit is contained in:
parent
a289b2a505
commit
26baeb1eaa
1 changed files with 2 additions and 0 deletions
|
@ -128,9 +128,11 @@ size_t* get_current_stack(void)
|
|||
set_per_core(kernel_stack, stptr);
|
||||
tss_set_rsp0(stptr);
|
||||
|
||||
#if 0
|
||||
// do we change the address space?
|
||||
if (read_cr3() != curr_task->page_map)
|
||||
write_cr3(curr_task->page_map); // use new page table
|
||||
#endif
|
||||
|
||||
return curr_task->last_stack_pointer;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue