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 Make userret() "static __inline". This l...



details:   https://anonhg.NetBSD.org/src/rev/9d2a1b232719
branches:  trunk
changeset: 500641:9d2a1b232719
user:      jeffs <jeffs%NetBSD.org@localhost>
date:      Thu Dec 14 21:24:53 2000 +0000

description:
Make userret() "static __inline".  This lets it be inlined, even if you
do not have the compiler inline normal functions to save space.  It helps
a bit on lmbench.

diffstat:

 sys/arch/mips/mips/trap.c |  12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diffs (40 lines):

diff -r 8a04f6fa0e40 -r 9d2a1b232719 sys/arch/mips/mips/trap.c
--- a/sys/arch/mips/mips/trap.c Thu Dec 14 20:50:56 2000 +0000
+++ b/sys/arch/mips/mips/trap.c Thu Dec 14 21:24:53 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.151 2000/11/21 02:26:07 soren Exp $ */
+/*     $NetBSD: trap.c,v 1.152 2000/12/14 21:24:53 jeffs Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -44,7 +44,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.151 2000/11/21 02:26:07 soren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.152 2000/12/14 21:24:53 jeffs Exp $");
 
 #include "opt_cputype.h"       /* which mips CPU levels do we support? */
 #include "opt_ktrace.h"
@@ -128,7 +128,6 @@
        "r4000 virtual coherency data",
 };
 
-void userret __P((struct proc *, unsigned, u_quad_t));
 void trap __P((unsigned, unsigned, unsigned, unsigned, struct trapframe *));
 void syscall __P((unsigned, unsigned, unsigned));
 void ast __P((unsigned));
@@ -137,11 +136,8 @@
 extern void MachEmulateFP __P((unsigned));
 extern void MachFPInterrupt __P((unsigned, unsigned, unsigned, struct frame *));
 
-void
-userret(p, pc, sticks)
-       struct proc *p;
-       unsigned pc;
-       u_quad_t sticks;
+static __inline void
+userret(struct proc *p, unsigned pc, u_quad_t sticks)
 {
        int sig;
 



Home | Main Index | Thread Index | Old Index