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:
Adrian Chadd
2021-10-15 20:15:15 -07:00
parent 9264bd386c
commit 8398d52d65
+2 -1
View File
@@ -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);