Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177084304
D22133.1793793587.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1010 B
Referenced Files
None
Subscribers
None
D22133.1793793587.diff
View Options
Index: head/sys/arm64/arm64/trap.c
===================================================================
--- head/sys/arm64/arm64/trap.c
+++ head/sys/arm64/arm64/trap.c
@@ -87,6 +87,7 @@
typedef void (abort_handler)(struct thread *, struct trapframe *, uint64_t,
uint64_t, int);
+static abort_handler align_abort;
static abort_handler data_abort;
static abort_handler *abort_handlers[] = {
@@ -100,6 +101,7 @@
[ISS_DATA_DFSC_PF_L1] = data_abort,
[ISS_DATA_DFSC_PF_L2] = data_abort,
[ISS_DATA_DFSC_PF_L3] = data_abort,
+ [ISS_DATA_DFSC_ALIGN] = align_abort,
};
static __inline void
@@ -163,6 +165,17 @@
call_trapsignal(td, SIGILL, ILL_ILLOPN, (void *)frame->tf_elr);
userret(td, frame);
}
+}
+
+static void
+align_abort(struct thread *td, struct trapframe *frame, uint64_t esr,
+ uint64_t far, int lower)
+{
+ if (!lower)
+ panic("Misaligned access from kernel space!");
+
+ call_trapsignal(td, SIGBUS, BUS_ADRALN, (void *)frame->tf_elr);
+ userret(td, frame);
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 4, 11:59 AM (18 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41428020
Default Alt Text
D22133.1793793587.diff (1010 B)
Attached To
Mode
D22133: ARM64: Treat alignment faults as bus errors
Attached
Detach File
Event Timeline