diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-05-04 15:56:35 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-05-04 15:56:35 +0000 |
commit | dc9413689d86ae21d38c8f7653640ed5b427b162 (patch) | |
tree | 0efcb4a3e0ba91f769768ebd4841cb6141674680 /sys | |
parent | 6cdff94d7ce0ffb3a803242ce7bc621507b06dfe (diff) |
mop-mop squeek-squeek
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/i386/trap.c | 9 |
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: |