When asserting IL bit in exception syndrome register, print the raw

register value.

Reviewed by:	andrew
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2015-10-04 12:52:30 +00:00
parent 7503e0c783
commit b86860001b

View File

@ -275,7 +275,7 @@ do_el1h_sync(struct trapframe *frame)
*/
KASSERT((esr & ESR_ELx_IL) == ESR_ELx_IL ||
(exception == EXCP_DATA_ABORT && ((esr & ISS_DATA_ISV) == 0)),
("Invalid instruction length in exception"));
("Invalid instruction length in exception, esr %lx", esr));
CTR4(KTR_TRAP,
"do_el1_sync: curthread: %p, esr %lx, elr: %lx, frame: %p",