pvmfw: Log ELR from sync_exception
As we're already logging the FAR, let's also log the ELR.
Test: TH
Change-Id: Ic7eaa1dbf5390547abfffdc8ca3807654d929a47
diff --git a/pvmfw/src/exceptions.rs b/pvmfw/src/exceptions.rs
index 462a9cc..a6ac4fe 100644
--- a/pvmfw/src/exceptions.rs
+++ b/pvmfw/src/exceptions.rs
@@ -86,7 +86,7 @@
}
#[no_mangle]
-extern "C" fn sync_exception_current(_elr: u64, _spsr: u64) {
+extern "C" fn sync_exception_current(elr: u64, _spsr: u64) {
// Disable logging in exception handler to prevent unsafe writes to UART.
let _guard = logger::suppress();
let esr: Esr = read_sysreg!("esr_el1").into();
@@ -97,7 +97,7 @@
if !handling_uart_exception(esr, far) {
eprintln!("sync_exception_current");
eprintln!("{e}");
- eprintln!("{esr}, far={far:#08x}");
+ eprintln!("{esr}, far={far:#08x}, elr={elr:#08x}");
}
reboot()
}