diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1998-08-25 09:12:35 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1998-08-25 09:12:35 +0000 |
commit | c7fc24dc4420057f103afe8fc64524ebc25c5d37 (patch) | |
tree | 3682407a599b8f9f03fc096298134cafba1c9b2f /arch/mips/kernel/signal.c | |
parent | 1d793fade8b063fde3cf275bf1a5c2d381292cd9 (diff) |
o Merge with Linux 2.1.116.
o New Newport console code.
o New G364 console code.
Diffstat (limited to 'arch/mips/kernel/signal.c')
-rw-r--r-- | arch/mips/kernel/signal.c | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c index 6b9fd263e..a277f655c 100644 --- a/arch/mips/kernel/signal.c +++ b/arch/mips/kernel/signal.c @@ -1,10 +1,9 @@ -/* +/* $Id: signal.c,v 1.22 1998/08/18 20:45:06 ralf Exp $ + * * linux/arch/mips/kernel/signal.c * * Copyright (C) 1991, 1992 Linus Torvalds - * Copyright (C) 1994, 1995, 1996 Ralf Baechle - * - * $Id: signal.c,v 1.14 1998/07/04 00:49:51 ralf Exp $ + * Copyright (C) 1994, 1995, 1996, 1997, 1998 Ralf Baechle * * XXX Handle lazy fp context switches correctly. */ @@ -123,6 +122,14 @@ sys_sigaction(int sig, const struct sigaction *act, return ret; } +asmlinkage int +sys_sigaltstack(const stack_t *uss, stack_t *uoss) +{ + struct pt_regs *regs = (struct pt_regs *) &uss; + + return do_sigaltstack(uss, uoss, regs->regs[29]); +} + /* * To do: this entire function should be accessed over a function pointer * such that we can handle stack frames for different ABIs. @@ -290,14 +297,14 @@ setup_sigcontext(struct pt_regs *regs, struct sigcontext *sc, sigset_t *set) #if 0 if (current->used_math) { /* fp is active. */ set_cp0_status(ST0_CU1, ST0_CU1); - save_fp_context(sc); /* cpu dependant */ + save_fp_context(sc); /* CPU-dependent */ last_task_used_math = NULL; regs->cp0_status &= ~ST0_CU1; current->used_math = 0; } #endif set_cp0_status(ST0_CU1, ST0_CU1); -save_fp_context(sc); /* cpu dependant */ +save_fp_context(sc); /* CPU-dependent */ __put_user(set->sig[0], &sc->sc_sigset[0]); __put_user(set->sig[1], &sc->sc_sigset[1]); |