Kernel/aarch64: Print the raw ESR_EL1 value during crashes

Similar to the SPSR_EL1 dbgln, print the raw value after the decoded
value.

This is useful for using the ESR_EL1 value with tools like the
https://esr.arm64.dev/ website to get a more detailed decoding.
This commit is contained in:
Sönke Holz
2026-04-07 18:10:22 +02:00
committed by Sönke Holz
parent 1b61338746
commit 7ce6753f25

View File

@@ -26,7 +26,7 @@ extern "C" void syscall_handler(TrapFrame const*);
static void dump_exception_syndrome_register(Aarch64::ESR_EL1 const& esr_el1)
{
dbgln("Exception Syndrome: EC({:#b}) IL({:#b}) ISS({:#b}) ISS2({:#b})", esr_el1.EC, esr_el1.IL, esr_el1.ISS, esr_el1.ISS2);
dbgln("Exception Syndrome: EC({:#b}) IL({:#b}) ISS({:#b}) ISS2({:#b}) / {:#x}", esr_el1.EC, esr_el1.IL, esr_el1.ISS, esr_el1.ISS2, bit_cast<u64>(esr_el1));
dbgln(" Class: {}", Aarch64::exception_class_to_string(esr_el1.EC));
if (Aarch64::exception_class_is_data_abort(esr_el1.EC))