diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2003-05-27 23:05:42 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2003-05-27 23:05:42 +0000 |
commit | 09047fa9174815f6b36084e1d133e17cfb018542 (patch) | |
tree | 111ce9991740e9c0e2db6d1871a9fd76b5044106 /sys/arch | |
parent | 7ad07aa12e13d7b7755ea924000201c7ba390ad1 (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.c | 6 |
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) { |