summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/trap.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c
index c7841cb16df..fc54a2430c0 100644
--- a/sys/arch/i386/i386/trap.c
+++ b/sys/arch/i386/i386/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.55 2003/05/04 04:58:16 drahn Exp $ */
+/* $OpenBSD: trap.c,v 1.56 2003/05/04 15:56:34 mickey Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
/*-
@@ -325,10 +325,11 @@ trap(frame)
goto out;
}
#endif
- if (ftype == VM_PROT_READ)
+ if (ftype == VM_PROT_READ) {
ftype |= VM_PROT_EXECUTE;
- /* force %cr2 register have fault address */
- __asm __volatile("movl %0,%%cr2" :: "r" (frame.tf_eip));
+ /* XXX force %cr2 register have fault address */
+ __asm __volatile("movl %0,%%cr2" :: "r" (frame.tf_eip));
+ }
goto page_fault;
case T_TSSFLT|T_USER: