1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:47:34 +00:00

Kernel/aarch64: Add function to convert Exception Class to StringView

This is useful when printing information about the type of exception
that happened.
This commit is contained in:
Timon Kruiper 2022-12-20 15:40:42 +01:00 committed by Sam Atkins
parent 1dddefa737
commit 81571bdac9
2 changed files with 85 additions and 0 deletions

View file

@ -51,6 +51,7 @@ extern "C" void exception_common(Kernel::TrapFrame const* const trap_frame)
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);
dbgln("Exception Class: {}", Aarch64::exception_class_to_string(esr_el1.EC));
dump_backtrace_from_base_pointer(regs->x[29]);
}