mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 07:52:50 +00:00
Kernel: Add stubs for missing x86_64 functionality
This adds just enough stubs to make the kernel compile on x86_64. Obviously it won't do anything useful - in fact it won't even attempt to boot because Multiboot doesn't support ELF64 binaries - but it gets those compiler errors out of the way so more progress can be made getting all the missing functionality in place.
This commit is contained in:
parent
f2eb759901
commit
38fca26f54
Notes:
sideshowbarker
2024-07-18 11:35:51 +09:00
Author: https://github.com/gunnarbeutner
Commit: 38fca26f54
Pull-request: https://github.com/SerenityOS/serenity/pull/8225
21 changed files with 295 additions and 40 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <Kernel/FileSystem/Inode.h>
|
||||
#include <Kernel/Heap/kmalloc.h>
|
||||
#include <Kernel/Multiboot.h>
|
||||
#include <Kernel/Panic.h>
|
||||
#include <Kernel/Process.h>
|
||||
#include <Kernel/Sections.h>
|
||||
#include <Kernel/StdLib.h>
|
||||
|
@ -732,8 +733,13 @@ 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();
|
||||
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