Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145661130
D42018.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
864 B
Referenced Files
None
Subscribers
None
D42018.diff
View Options
diff --git a/sys/arm64/arm64/trap.c b/sys/arm64/arm64/trap.c
--- a/sys/arm64/arm64/trap.c
+++ b/sys/arm64/arm64/trap.c
@@ -225,19 +225,25 @@
external_abort(struct thread *td, struct trapframe *frame, uint64_t esr,
uint64_t far, int lower)
{
+ if (lower) {
+ call_trapsignal(td, SIGBUS, BUS_OBJERR, (void *)far,
+ ESR_ELx_EXCEPTION(frame->tf_esr));
+ userret(td, frame);
+ return;
+ }
/*
* Try to handle synchronous external aborts caused by
* bus_space_peek() and/or bus_space_poke() functions.
*/
- if (!lower && test_bs_fault((void *)frame->tf_elr)) {
+ if (test_bs_fault((void *)frame->tf_elr)) {
frame->tf_elr = (uint64_t)generic_bs_fault;
return;
}
print_registers(frame);
print_gp_register("far", far);
- panic("Unhandled EL%d external data abort", lower ? 0: 1);
+ panic("Unhandled external data abort");
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 23, 7:29 PM (6 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28962424
Default Alt Text
D42018.diff (864 B)
Attached To
Mode
D42018: arm64: Raise a SIGBUS on a user external abort
Attached
Detach File
Event Timeline
Log In to Comment