1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47: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

@ -8,6 +8,7 @@
#include <Kernel/Arch/Processor.h>
#include <Kernel/Arch/aarch64/ASM_wrapper.h>
#include <Kernel/Arch/aarch64/CPU.h>
extern "C" uintptr_t vector_table_el1;
@ -19,14 +20,14 @@ void Processor::initialize(u32 cpu)
{
VERIFY(g_current_processor == nullptr);
auto current_exception_level = static_cast<u64>(Kernel::Aarch64::Asm::get_current_exception_level());
auto current_exception_level = static_cast<u64>(Aarch64::Asm::get_current_exception_level());
dbgln("CPU{} started in: EL{}", cpu, current_exception_level);
dbgln("Drop CPU{} to EL1", cpu);
Prekernel::drop_to_exception_level_1();
drop_to_exception_level_1();
// Load EL1 vector table
Kernel::Aarch64::Asm::el1_vector_table_install(&vector_table_el1);
Aarch64::Asm::el1_vector_table_install(&vector_table_el1);
g_current_processor = this;
}