diff options
| author | christos <christos@NetBSD.org> | 2003-10-30 00:26:54 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2003-10-30 00:26:54 +0000 |
| commit | 2c8096f76389b4bd04abf4eecd8e780e57a003f0 (patch) | |
| tree | 67602298fed31653c202eb45e3ad85338208e0c5 /sys | |
| parent | 0c6a00f6c6db8c8ed7f1b29d50e57de757940463 (diff) | |
set the onstack flag if requested.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/arch/mips/mips/mips_machdep.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/mips/mips/mips_machdep.c b/sys/arch/mips/mips/mips_machdep.c index a8da625dd24..23142c3bcc2 100644 --- a/sys/arch/mips/mips/mips_machdep.c +++ b/sys/arch/mips/mips/mips_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: mips_machdep.c,v 1.167 2003/10/05 17:31:09 tsutsui Exp $ */ +/* $NetBSD: mips_machdep.c,v 1.168 2003/10/30 00:26:54 christos Exp $ */ /* * Copyright 2002 Wasabi Systems, Inc. @@ -119,7 +119,7 @@ #include <sys/cdefs.h> /* RCS ID & Copyright macro defns */ -__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.167 2003/10/05 17:31:09 tsutsui Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.168 2003/10/30 00:26:54 christos Exp $"); #include "opt_cputype.h" @@ -1754,5 +1754,10 @@ cpu_setmcontext(l, mcp, flags) /* XXX: Do we restore here?? */ } + if (flags & _UC_SETSTACK) + l->l_proc->p_sigctx.ps_sigstk.ss_flags |= SS_ONSTACK; + if (flags & _UC_CLRSTACK) + l->l_proc->p_sigctx.ps_sigstk.ss_flags &= ~SS_ONSTACK; + return (0); } |
