James Mintram
c2d7e200eb
Kernel: Move common aarch64 asm functions into kernel folder and NS
2021-11-28 22:01:21 -08:00
James Mintram
68b5d00f42
Kernel: Split prekernel exception level code into its own file
2021-11-28 22:01:21 -08:00
Marcin Undak
d14d7ee78b
Kernel: Discover initial exception level when booting Aarch64
...
When booting on RPI3 firmware puts CPU in EL2 mode which is
different from QEMU's default EL3.
I've added logic to discover initial mode at boot
and then act accordingly. This results in Serenity corectly
switching to EL1 on target hardware now.
2021-10-15 17:47:39 +01:00
Marcin Undak
2d9fa8146c
Kernel: Switch processor to EL1 immediately after boot on Aarch64
2021-10-15 17:47:39 +01:00
Marcin Undak
d6021300d5
Kernel: Move wait_cycles() function to Aarch_asm_utils.S
...
Just a bit of housekeeping.
2021-10-15 17:47:39 +01:00
Marcin Undak
18eb4a59d6
Kernel: Print current CPU exception level after booting on Aarch64
...
This is a first step to switch to exception level 1.
This is also my first patch for SerenityOS :)
2021-10-15 17:47:39 +01:00