arm: print out the undefined instruction upon an undefined instruction panic
It's SUPER useful to be able to see the actual undefined instruction when we hit said undefined instruction.
This commit is contained in:
@@ -341,7 +341,8 @@ undefinedinstruction(struct trapframe *frame)
|
||||
return;
|
||||
}
|
||||
else
|
||||
panic("Undefined instruction in kernel.\n");
|
||||
panic("Undefined instruction in kernel (0x%08x).\n",
|
||||
fault_instruction);
|
||||
}
|
||||
|
||||
userret(td, frame);
|
||||
|
||||
Reference in New Issue
Block a user