diff options
author | Timon Kruiper <timonkruiper@gmail.com> | 2022-05-03 01:46:26 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-05-03 21:53:36 +0200 |
commit | f8e4eecbfbb9958664cf7fe4fe19c9d8332e98e7 (patch) | |
tree | 63add04256d022d58d344db9db619eb062ce0023 | |
parent | e81e1fa9c87197c643d3af8345af8499ecd3ea02 (diff) | |
download | serenity-f8e4eecbfbb9958664cf7fe4fe19c9d8332e98e7.zip |
Kernel: Replace calls to Prekernel::panic() with PANIC macro on aarch64
-rw-r--r-- | Kernel/Arch/aarch64/Prekernel/PrekernelExceptions.cpp | 3 | ||||
-rw-r--r-- | Kernel/Arch/aarch64/Prekernel/PrekernelMMU.cpp | 7 |
2 files changed, 6 insertions, 4 deletions
diff --git a/Kernel/Arch/aarch64/Prekernel/PrekernelExceptions.cpp b/Kernel/Arch/aarch64/Prekernel/PrekernelExceptions.cpp index d30d1a1be8..e8b7d0e702 100644 --- a/Kernel/Arch/aarch64/Prekernel/PrekernelExceptions.cpp +++ b/Kernel/Arch/aarch64/Prekernel/PrekernelExceptions.cpp @@ -8,6 +8,7 @@ #include <Kernel/Arch/aarch64/Prekernel/Aarch64_asm_utils.h> #include <Kernel/Arch/aarch64/Prekernel/Prekernel.h> #include <Kernel/Arch/aarch64/Registers.h> +#include <Kernel/Panic.h> extern "C" void enter_el2_from_el3(); extern "C" void enter_el1_from_el2(); @@ -93,7 +94,7 @@ void drop_to_exception_level_1() set_up_el1(); break; default: { - Prekernel::panic("FATAL: CPU booted in unsupported exception mode!\r\n"); + PANIC("CPU booted in unsupported exception mode!"); } } } diff --git a/Kernel/Arch/aarch64/Prekernel/PrekernelMMU.cpp b/Kernel/Arch/aarch64/Prekernel/PrekernelMMU.cpp index 1aaebe7477..ad09b8ea57 100644 --- a/Kernel/Arch/aarch64/Prekernel/PrekernelMMU.cpp +++ b/Kernel/Arch/aarch64/Prekernel/PrekernelMMU.cpp @@ -12,6 +12,7 @@ #include <Kernel/Arch/aarch64/RPi/MMIO.h> #include <Kernel/Arch/aarch64/RPi/UART.h> #include <Kernel/Arch/aarch64/Registers.h> +#include <Kernel/Panic.h> // Documentation here for Aarch64 Address Translations // https://documentation-service.arm.com/static/5efa1d23dbdee951c1ccdec5?token= @@ -62,17 +63,17 @@ public: , m_current(start) { if (m_start >= m_end) { - Prekernel::panic("Invalid memory range passed to PageBumpAllocator"); + PANIC("Invalid memory range passed to PageBumpAllocator"); } if ((FlatPtr)m_start % PAGE_TABLE_SIZE != 0 || (FlatPtr)m_end % PAGE_TABLE_SIZE != 0) { - Prekernel::panic("Memory range passed into PageBumpAllocator not aligned to PAGE_TABLE_SIZE"); + PANIC("Memory range passed into PageBumpAllocator not aligned to PAGE_TABLE_SIZE"); } } u64* take_page() { if (m_current == m_end) { - Prekernel::panic("Prekernel pagetable memory exhausted"); + PANIC("Prekernel pagetable memory exhausted"); } u64* page = m_current; |