mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 14:02:51 +00:00
Kernel: Rename Thread::tss to Thread::regs and add x86_64 support
We're using software context switches so calling this struct tss is somewhat misleading.
This commit is contained in:
parent
eba33f82b8
commit
f285241cb8
Notes:
sideshowbarker
2024-07-18 11:27:07 +09:00
Author: https://github.com/gunnarbeutner
Commit: f285241cb8
Pull-request: https://github.com/SerenityOS/serenity/pull/8269
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/IdanHo
14 changed files with 246 additions and 204 deletions
|
@ -733,13 +733,8 @@ void MemoryManager::enter_space(Space& space)
|
|||
VERIFY(current_thread != nullptr);
|
||||
ScopedSpinLock lock(s_mm_lock);
|
||||
|
||||
#if ARCH(I386)
|
||||
current_thread->tss().cr3 = space.page_directory().cr3();
|
||||
current_thread->regs().cr3 = space.page_directory().cr3();
|
||||
write_cr3(space.page_directory().cr3());
|
||||
#else
|
||||
(void)space;
|
||||
PANIC("MemoryManager::enter_space not implemented");
|
||||
#endif
|
||||
}
|
||||
|
||||
void MemoryManager::flush_tlb_local(VirtualAddress vaddr, size_t page_count)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue