mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
Kernel: Move common aarch64 asm functions into kernel folder and NS
This commit is contained in:
parent
68b5d00f42
commit
c2d7e200eb
6 changed files with 45 additions and 18 deletions
|
@ -4,6 +4,7 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <Kernel/Arch/aarch64/Aarch64Asm.h>
|
||||
#include <Kernel/Arch/aarch64/Aarch64Registers.h>
|
||||
#include <Kernel/Prekernel/Arch/aarch64/Aarch64_asm_utils.h>
|
||||
#include <Kernel/Prekernel/Arch/aarch64/Prekernel.h>
|
||||
|
@ -81,7 +82,7 @@ static void set_up_el1()
|
|||
|
||||
void drop_to_exception_level_1()
|
||||
{
|
||||
switch (get_current_exception_level()) {
|
||||
switch (Kernel::get_current_exception_level()) {
|
||||
case ExceptionLevel::EL3:
|
||||
drop_to_el2();
|
||||
[[fallthrough]];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue