Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149327749
D18511.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D18511.id.diff
View Options
Index: head/sys/arm64/arm64/trap.c
===================================================================
--- head/sys/arm64/arm64/trap.c
+++ head/sys/arm64/arm64/trap.c
@@ -149,7 +149,7 @@
static void
data_abort(struct thread *td, struct trapframe *frame, uint64_t esr,
- uint64_t far, int lower)
+ uint64_t far, int lower, int exec)
{
struct vm_map *map;
struct proc *p;
@@ -229,6 +229,8 @@
va = trunc_page(far);
ftype = ((esr >> 6) & 1) ? VM_PROT_READ | VM_PROT_WRITE : VM_PROT_READ;
+ if (exec)
+ ftype |= VM_PROT_EXECUTE;
/* Fault in the page. */
error = vm_fault(map, va, ftype, VM_FAULT_NORMAL);
@@ -336,7 +338,8 @@
case EXCP_DATA_ABORT:
far = READ_SPECIALREG(far_el1);
intr_enable();
- data_abort(td, frame, esr, far, 0);
+ data_abort(td, frame, esr, far, 0,
+ exception == EXCP_INSN_ABORT);
break;
case EXCP_BRK:
#ifdef KDTRACE_HOOKS
@@ -433,7 +436,8 @@
case EXCP_INSN_ABORT_L:
case EXCP_DATA_ABORT_L:
case EXCP_DATA_ABORT:
- data_abort(td, frame, esr, far, 1);
+ data_abort(td, frame, esr, far, 1,
+ exception == EXCP_INSN_ABORT_L);
break;
case EXCP_UNKNOWN:
if (!undef_insn(0, frame))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 24, 6:56 PM (9 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30157553
Default Alt Text
D18511.id.diff (1 KB)
Attached To
Mode
D18511: Pass VM_PROT_EXECUTE to vm_fault for instruction faults
Attached
Detach File
Event Timeline
Log In to Comment