mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
Kernel: Only unmap prekernel on x86_64
Other arches don't use the prekernel, so don't try to unmap it on non-x86 platforms. For some reason, this didn't cause aarch64 to crash, but on riscv64 this would cause a panic.
This commit is contained in:
parent
3852f4f136
commit
173a085e48
Notes:
sideshowbarker
2024-07-17 05:21:12 +09:00
Author: https://github.com/spholz Commit: https://github.com/SerenityOS/serenity/commit/173a085e48 Pull-request: https://github.com/SerenityOS/serenity/pull/22098
@ -267,9 +267,9 @@ extern "C" [[noreturn]] UNMAP_AFTER_INIT void init([[maybe_unused]] BootInfo con
|
||||
}
|
||||
dmesgln("Starting SerenityOS...");
|
||||
|
||||
#if ARCH(X86_64)
|
||||
MM.unmap_prekernel();
|
||||
|
||||
#if ARCH(X86_64)
|
||||
// Ensure that the safemem sections are not empty. This could happen if the linker accidentally discards the sections.
|
||||
VERIFY(+start_of_safemem_text != +end_of_safemem_text);
|
||||
VERIFY(+start_of_safemem_atomic_text != +end_of_safemem_atomic_text);
|
||||
|
Loading…
Reference in New Issue
Block a user