Skip to content

Commit cd72760

Browse files
committed
aarch64: ignore BRK exceptions
Signed-off-by: Tianhao Wang <[email protected]>
1 parent 2dd4f01 commit cd72760

File tree

1 file changed

+4
-1
lines changed
  • qkernel/src/interrupt/aarch64

1 file changed

+4
-1
lines changed

qkernel/src/interrupt/aarch64/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,13 @@ pub extern "C" fn exception_handler_el1h_sync(ptregs_addr:usize){
218218
let far = GetFarEL1();
219219
HandleMemAbort(ptregs_addr, esr, far, true, false);
220220
},
221+
EsrDefs::EC_BRK => {
222+
debug!("BRK from EL1, ignored");
223+
}
221224
_ => {
222225
debug!("unhandled sync exception from el1: {:#x}\n - ESR_EL1:{:#x}", ec, esr);
223226
if ptregs_addr == 0 {
224-
panic!("VM: exception frame is null pointer\n")
227+
panic!("VM: exception frame is null pointer\n");
225228
} else {
226229
let ctx_p = ptregs_addr as *mut PtRegs;
227230
let ctx_p = ctx_p.cast::<PtRegs>();

0 commit comments

Comments
 (0)