Don't panic when we don't handle a userland exception, not all we may see

are currently handled.

Obtained from:	ABT Systems Ltd
MFC after:	3 days
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Andrew Turner 2016-09-08 12:39:03 +00:00
parent a2f51f57d1
commit e0c6c1d1fd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=305605

View File

@ -401,9 +401,9 @@ do_el0_sync(struct trapframe *frame)
userret(td, frame);
break;
default:
print_registers(frame);
panic("Unknown userland exception %x esr_el1 %lx\n", exception,
esr);
call_trapsignal(td, SIGBUS, BUS_OBJERR, (void *)frame->tf_elr);
userret(td, frame);
break;
}
}