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

Kernel: Remove Prekernel namespace in the aarch64 Kernel

Now that we merged all the Prekernel files into the Kernel files, we can
get rid of the Prekernel namespace as well.
This commit is contained in:
Timon Kruiper 2022-05-10 00:27:23 +02:00 committed by Linus Groh
parent c96a3f0c48
commit 1f3977b303
23 changed files with 55 additions and 57 deletions

View file

@ -9,9 +9,7 @@
#include <Kernel/Arch/aarch64/Registers.h>
#include <Kernel/Panic.h>
using namespace Kernel;
namespace Prekernel {
namespace Kernel {
static void drop_to_el2()
{
@ -80,14 +78,14 @@ static void set_up_el1()
void drop_to_exception_level_1()
{
switch (Kernel::Aarch64::Asm::get_current_exception_level()) {
case Kernel::Aarch64::Asm::ExceptionLevel::EL3:
switch (Aarch64::Asm::get_current_exception_level()) {
case Aarch64::Asm::ExceptionLevel::EL3:
drop_to_el2();
[[fallthrough]];
case Kernel::Aarch64::Asm::ExceptionLevel::EL2:
case Aarch64::Asm::ExceptionLevel::EL2:
drop_to_el1();
[[fallthrough]];
case Kernel::Aarch64::Asm::ExceptionLevel::EL1:
case Aarch64::Asm::ExceptionLevel::EL1:
set_up_el1();
break;
default: {