summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2000-05-27 21:40:30 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2000-05-27 21:40:30 +0000
commitd5a3870014c316fc57da39b5e36e41cfcedebf92 (patch)
treebc5f21804ce789a897a2854ec5445de214ebb296
parent355d85b7b75c60519d2a65960dd0c4465d69f11f (diff)
UVM. grow -> uvm_grow
-rw-r--r--sys/arch/m68k/m68k/sig_machdep.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/sys/arch/m68k/m68k/sig_machdep.c b/sys/arch/m68k/m68k/sig_machdep.c
index 68620bde6a6..1e96f6a5e06 100644
--- a/sys/arch/m68k/m68k/sig_machdep.c
+++ b/sys/arch/m68k/m68k/sig_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sig_machdep.c,v 1.2 1997/07/06 07:46:29 downsj Exp $ */
+'/* $OpenBSD: sig_machdep.c,v 1.3 2000/05/27 21:40:29 art Exp $ */
/* $NetBSD: sig_machdep.c,v 1.3 1997/04/30 23:28:03 gwr Exp $ */
/*
@@ -84,6 +84,11 @@
#include <sys/malloc.h>
#include <sys/buf.h>
+#include <vm/vm.h>
+#if defined(UVM)
+#include <uvm/uvm_extern.h>
+#endif
+
#include <sys/syscallargs.h>
#include <machine/cpu.h>
@@ -164,8 +169,13 @@ sendsig(catcher, sig, mask, code, type, val)
psp->ps_sigstk.ss_flags |= SS_ONSTACK;
} else
fp = (struct sigframe *)(frame->f_regs[SP] - fsize);
+#if defined(UVM)
+ if ((unsigned)fp <= USRSTACK - ctob(p->p_vmspace->vm_ssize))
+ (void)uvm_grow(p, (unsigned)fp);
+#else
if ((unsigned)fp <= USRSTACK - ctob(p->p_vmspace->vm_ssize))
(void)grow(p, (unsigned)fp);
+#endif
#ifdef DEBUG
if ((sigdebug & SDB_KSTACK) && p->p_pid == sigpid)
printf("sendsig(%d): sig %d ssp %p usp %p scp %p ft %d\n",