summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-05-27 23:05:42 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-05-27 23:05:42 +0000
commit09047fa9174815f6b36084e1d133e17cfb018542 (patch)
tree111ce9991740e9c0e2db6d1871a9fd76b5044106 /sys/arch
parent7ad07aa12e13d7b7755ea924000201c7ba390ad1 (diff)
Fix siginfo contents in the T_ACCFLT case, fixes libpthread siginfo regression
test. Some stylistic input from marc@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/vax/vax/trap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/vax/vax/trap.c b/sys/arch/vax/vax/trap.c
index ee04da60a08..a080b7a31da 100644
--- a/sys/arch/vax/vax/trap.c
+++ b/sys/arch/vax/vax/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.26 2003/04/16 16:54:17 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.27 2003/05/27 23:05:41 miod Exp $ */
/* $NetBSD: trap.c,v 1.47 1999/08/21 19:26:20 matt Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -224,8 +224,7 @@ if(faultdebug)printf("trap accflt type %lx, code %lx, pc %lx, psl %lx\n",
* because we must check for PTE pages anyway we don't
* bother doing it here.
*/
- addr = trunc_page((vaddr_t)frame->code);
- sv.sival_int = addr;
+ sv.sival_int = frame->code;
if ((umode == 0) && (frame->code < 0))
map = kernel_map;
else
@@ -236,6 +235,7 @@ if(faultdebug)printf("trap accflt type %lx, code %lx, pc %lx, psl %lx\n",
else
ftype = VM_PROT_READ;
+ addr = trunc_page((vaddr_t)frame->code);
rv = uvm_fault(map, addr, 0, ftype);
if (rv) {
if (umode == 0) {