From 7e2bd8f8b71833721c3f7d57dfd52fcb97ac03b1 Mon Sep 17 00:00:00 2001 From: deraadt Date: Tue, 4 Feb 1997 12:29:20 +0000 Subject: [PATCH] pass VM_PROT_READ/VM_PROT_WRITE as si_trapno for SIGSEGV --- sys/arch/mvme68k/mvme68k/trap.c | 7 ++++--- 1 file 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; -- 2.20.1