1
0
Fork 0
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:
Stefan Lankes 2015-12-30 11:02:08 +01:00
parent a289b2a505
commit 26baeb1eaa

View file

@ -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;
}