Handle a misaligned stack pointer exception from userspace. The exception
still needs to be enabled, but this will help with testing. Sponsored by: ABT Systems Ltd
This commit is contained in:
parent
d1e8cd8a88
commit
729ac0ee8c
@ -374,6 +374,10 @@ do_el0_sync(struct trapframe *frame)
|
||||
case EXCP_UNKNOWN:
|
||||
el0_excp_unknown(frame);
|
||||
break;
|
||||
case EXCP_SP_ALIGN:
|
||||
call_trapsignal(td, SIGBUS, BUS_ADRALN, (void *)frame->tf_sp);
|
||||
userret(td, frame);
|
||||
break;
|
||||
case EXCP_PC_ALIGN:
|
||||
call_trapsignal(td, SIGBUS, BUS_ADRALN, (void *)frame->tf_elr);
|
||||
userret(td, frame);
|
||||
|
Loading…
Reference in New Issue
Block a user