1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:07:35 +00:00

Kernel: Split prekernel exception level code into its own file

This commit is contained in:
James Mintram 2021-11-21 00:34:12 +00:00 committed by Brian Gianforcaro
parent 18f1530c84
commit 68b5d00f42
7 changed files with 188 additions and 169 deletions

View file

@ -0,0 +1,25 @@
/*
* Copyright (c) 2021, James Mintram <me@jamesrm.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <Kernel/Prekernel/Arch/aarch64/Prekernel.h>
#include <Kernel/Arch/aarch64/Aarch64Asm.h>
#include <Kernel/Prekernel/Arch/aarch64/UART.h>
namespace Prekernel {
[[noreturn]] void panic(const char* msg)
{
auto& uart = Prekernel::UART::the();
if (msg) {
uart.print_str(msg);
}
Kernel::halt();
}
}