Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143843197
D53073.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
735 B
Referenced Files
None
Subscribers
None
D53073.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
@@ -228,6 +228,8 @@
external_abort(struct thread *td, struct trapframe *frame, uint64_t esr,
uint64_t far, int lower)
{
+ struct pcb *pcb;
+
if (lower) {
call_trapsignal(td, SIGBUS, BUS_OBJERR, (void *)far,
ESR_ELx_EXCEPTION(frame->tf_esr));
@@ -235,6 +237,15 @@
return;
}
+ /* If there is a fault handler use it */
+ if (td->td_intr_nesting_level == 0) {
+ pcb = td->td_pcb;
+ if (pcb->pcb_onfault != 0) {
+ frame->tf_elr = pcb->pcb_onfault;
+ return;
+ }
+ }
+
/*
* Try to handle synchronous external aborts caused by
* bus_space_peek() and/or bus_space_poke() functions.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 1, 9:46 PM (6 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28407365
Default Alt Text
D53073.diff (735 B)
Attached To
Mode
D53073: arm64: Handle more Synchronous External Aborts
Attached
Detach File
Event Timeline
Log In to Comment