summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-04 12:29:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-04 12:29:21 +0000
commit77eff7dbe044be0efbe54515aba6dc4fa62b9310 (patch)
tree5f1a82b0dde550768dffea8d45df6d1687045583 /sys/arch/mvme68k
parent01fe3a918d49aacdc92592f221e04ff8216c95df (diff)
pass VM_PROT_READ/VM_PROT_WRITE as si_trapno for SIGSEGV
Diffstat (limited to 'sys/arch/mvme68k')
-rw-r--r--sys/arch/mvme68k/mvme68k/trap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/mvme68k/mvme68k/trap.c b/sys/arch/mvme68k/mvme68k/trap.c
index c12e45587c6..07ba8798f4d 100644
--- a/sys/arch/mvme68k/mvme68k/trap.c
+++ b/sys/arch/mvme68k/mvme68k/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.11 1997/02/04 02:49:24 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.12 1997/02/04 12:29:20 deraadt Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -237,7 +237,8 @@ again:
} else if (sig = writeback(fp, fromtrap)) {
beenhere = 1;
oticks = p->p_sticks;
- trapsignal(p, sig, T_MMUFLT, SEGV_MAPERR, (caddr_t)faultaddr);
+ trapsignal(p, sig, VM_PROT_WRITE, SEGV_MAPERR,
+ (caddr_t)faultaddr);
goto again;
}
}
@@ -639,7 +640,7 @@ copyfault:
goto dopanic;
}
frame.f_pad = code & 0xffff;
- ucode = T_MMUFLT;
+ ucode = ftype;
typ = SEGV_MAPERR;
i = SIGSEGV;
break;