Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/mips Eliminate 4 unused sigframe members.



details:   https://anonhg.NetBSD.org/src/rev/7f14469951bf
branches:  trunk
changeset: 533591:7f14469951bf
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Jul 04 19:20:01 2002 +0000

description:
Eliminate 4 unused sigframe members.

diffstat:

 sys/arch/mips/mips/locore.S       |   8 ++++----
 sys/arch/mips/mips/mips_machdep.c |  12 ++----------
 2 files changed, 6 insertions(+), 14 deletions(-)

diffs (70 lines):

diff -r 9abe935a15c3 -r 7f14469951bf sys/arch/mips/mips/locore.S
--- a/sys/arch/mips/mips/locore.S       Thu Jul 04 18:47:28 2002 +0000
+++ b/sys/arch/mips/mips/locore.S       Thu Jul 04 19:20:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.140 2002/06/01 12:27:04 simonb Exp $      */
+/*     $NetBSD: locore.S,v 1.141 2002/07/04 19:20:01 thorpej Exp $     */
 
 /*
  * Copyright (c) 1992, 1993
@@ -173,7 +173,7 @@
  * NB: we cannot profile sigcode(), it executes from userspace.
  */
 LEAF_NOPROFILE(sigcode)
-       addu    a0, sp, 16              # address of sigcontext
+       move    a0, sp                  # address of sigcontext
        li      v0, SYS___sigreturn14   # sigreturn(scp)
        syscall
        break   0                       # just in case sigreturn fails
@@ -182,7 +182,7 @@
 
 #ifdef COMPAT_ULTRIX
 LEAF_NOPROFILE(ultrix_sigcode)
-       addu    a0, sp, 16              # address of sigcontext
+       move    a0, sp                  # address of sigcontext
        li      v0, ULTRIX_SYS_sigreturn        # sigreturn(scp)
        syscall
        break   0                       # just in case sigreturn fails
@@ -193,7 +193,7 @@
 #ifdef COMPAT_LINUX
 #define SYSCALL_SHIFT 4000             # 4000 shift as in linux_syscall.c
 LEAF_NOPROFILE(linux_sigcode)
-       move    a0, sp
+       move    a0, sp                  # address of sigcontext
        li      v0, LINUX_SYS_sigreturn + SYSCALL_SHIFT # sigreturn(sf)
        syscall
        break   0                       # just in case sigreturn fails
diff -r 9abe935a15c3 -r 7f14469951bf sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Thu Jul 04 18:47:28 2002 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Thu Jul 04 19:20:01 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_machdep.c,v 1.133 2002/06/27 03:43:47 simonb Exp $        */
+/*     $NetBSD: mips_machdep.c,v 1.134 2002/07/04 19:20:02 thorpej Exp $       */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -120,7 +120,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.133 2002/06/27 03:43:47 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.134 2002/07/04 19:20:02 thorpej Exp $");
 
 #include "opt_cputype.h"
 #include "opt_compat_netbsd.h"
@@ -1069,15 +1069,7 @@
        p->p_md.md_ss_addr = 0;
 }
 
-/*
- * WARNING: code in locore.s assumes the layout shown for sf_signum
- * thru sf_handler so... don't screw with them!
- */
 struct sigframe {
-       int     sf_signum;              /* signo for handler */
-       int     sf_code;                /* additional info for handler */
-       struct  sigcontext *sf_scp;     /* context ptr for handler */
-       sig_t   sf_handler;             /* handler addr for u_sigc */
        struct  sigcontext sf_sc;       /* actual context */
 };
 



Home | Main Index | Thread Index | Old Index