mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
Kernel: Report value of ESR_EL1 when exception happens on aarch64
This commit is contained in:
parent
2c05afaa7b
commit
1461a7601d
1 changed files with 6 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
|||
#include <Kernel/Arch/aarch64/RPi/Mailbox.h>
|
||||
#include <Kernel/Arch/aarch64/RPi/Timer.h>
|
||||
#include <Kernel/Arch/aarch64/RPi/UART.h>
|
||||
#include <Kernel/Arch/aarch64/Registers.h>
|
||||
#include <Kernel/KSyms.h>
|
||||
#include <Kernel/Panic.h>
|
||||
|
||||
|
@ -45,7 +46,12 @@ extern "C" void exception_common(TrapFrame const* const trap_frame)
|
|||
dbgln("elr_el1: {:x}", trap_frame->elr_el1);
|
||||
dbgln("tpidr_el1: {:x}", trap_frame->tpidr_el1);
|
||||
dbgln("sp_el0: {:x}", trap_frame->sp_el0);
|
||||
|
||||
auto esr_el1 = Kernel::Aarch64::ESR_EL1::read();
|
||||
dbgln("esr_el1: EC({:#b}) IL({:#b}) ISS({:#b}) ISS2({:#b})", esr_el1.EC, esr_el1.IL, esr_el1.ISS, esr_el1.ISS2);
|
||||
}
|
||||
|
||||
Kernel::Processor::halt();
|
||||
}
|
||||
|
||||
typedef void (*ctor_func_t)();
|
||||
|
|
Loading…
Reference in a new issue