Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Provide cpu_lwp_free* stubs in vax and powerpc.



details:   https://anonhg.NetBSD.org/src/rev/98bbdf7c27e7
branches:  trunk
changeset: 748469:98bbdf7c27e7
user:      rmind <rmind%NetBSD.org@localhost>
date:      Sat Oct 24 20:03:56 2009 +0000

description:
Provide cpu_lwp_free* stubs in vax and powerpc.
Reported by <he>.

diffstat:

 sys/arch/powerpc/include/cpu.h        |   3 +--
 sys/arch/powerpc/powerpc/vm_machdep.c |  11 +++++++++--
 sys/arch/vax/include/cpu.h            |   4 +---
 sys/arch/vax/vax/vm_machdep.c         |  19 +++++++++++++++++--
 4 files changed, 28 insertions(+), 9 deletions(-)

diffs (107 lines):

diff -r cff0eb8d61a7 -r 98bbdf7c27e7 sys/arch/powerpc/include/cpu.h
--- a/sys/arch/powerpc/include/cpu.h    Sat Oct 24 19:31:03 2009 +0000
+++ b/sys/arch/powerpc/include/cpu.h    Sat Oct 24 20:03:56 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.66 2009/10/21 21:12:01 rmind Exp $   */
+/*     $NetBSD: cpu.h,v 1.67 2009/10/24 20:03:56 rmind Exp $   */
 
 /*
  * Copyright (C) 1999 Wolfgang Solfrank.
@@ -305,7 +305,6 @@
 
 #define        cpu_proc_fork(p1, p2)
 #define        cpu_idle()              (curcpu()->ci_idlespin())
-#define cpu_lwp_free2(l)
 
 extern int powersave;
 extern int cpu_timebase;
diff -r cff0eb8d61a7 -r 98bbdf7c27e7 sys/arch/powerpc/powerpc/vm_machdep.c
--- a/sys/arch/powerpc/powerpc/vm_machdep.c     Sat Oct 24 19:31:03 2009 +0000
+++ b/sys/arch/powerpc/powerpc/vm_machdep.c     Sat Oct 24 20:03:56 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.77 2009/06/07 23:21:26 martin Exp $   */
+/*     $NetBSD: vm_machdep.c,v 1.78 2009/10/24 20:03:56 rmind Exp $    */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.77 2009/06/07 23:21:26 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.78 2009/10/24 20:03:56 rmind Exp $");
 
 #include "opt_altivec.h"
 #include "opt_multiprocessor.h"
@@ -185,6 +185,13 @@
 
 }
 
+void
+cpu_lwp_free2(struct lwp *l)
+{
+
+       (void)l;
+}
+
 #ifdef PPC_IBM4XX
 /*
  * Map a range of user addresses into the kernel.
diff -r cff0eb8d61a7 -r 98bbdf7c27e7 sys/arch/vax/include/cpu.h
--- a/sys/arch/vax/include/cpu.h        Sat Oct 24 19:31:03 2009 +0000
+++ b/sys/arch/vax/include/cpu.h        Sat Oct 24 20:03:56 2009 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: cpu.h,v 1.85 2008/03/11 05:34:02 matt Exp $      */
+/*      $NetBSD: cpu.h,v 1.86 2009/10/24 20:03:56 rmind Exp $      */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden
@@ -163,8 +163,6 @@
                mtpr(AST_OK,PR_ASTLVL);         \
        } while (/*CONSTCOND*/ 0)
 #define        cpu_proc_fork(x, y)     do { } while (/*CONSCOND*/0)
-#define        cpu_lwp_free(l, f)      do { } while (/*CONSCOND*/0)
-#define        cpu_lwp_free2(l)        do { } while (/*CONSCOND*/0)
 #define        cpu_idle()              do { } while (/*CONSCOND*/0)
 static inline bool
 cpu_intr_p(void)
diff -r cff0eb8d61a7 -r 98bbdf7c27e7 sys/arch/vax/vax/vm_machdep.c
--- a/sys/arch/vax/vax/vm_machdep.c     Sat Oct 24 19:31:03 2009 +0000
+++ b/sys/arch/vax/vax/vm_machdep.c     Sat Oct 24 20:03:56 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vm_machdep.c,v 1.107 2009/08/15 23:45:01 matt Exp $         */
+/*     $NetBSD: vm_machdep.c,v 1.108 2009/10/24 20:03:56 rmind Exp $        */
 
 /*
  * Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.107 2009/08/15 23:45:01 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.108 2009/10/24 20:03:56 rmind Exp $");
 
 #include "opt_execfmt.h"
 #include "opt_compat_ultrix.h"
@@ -201,6 +201,21 @@
 }
 #endif
 
+void
+cpu_lwp_free(struct lwp *l, int proc)
+{
+
+       (void)l;
+       (void)proc;
+}
+
+void
+cpu_lwp_free2(struct lwp *l)
+{
+
+       (void)l;
+}
+
 #ifdef EXEC_AOUT
 int
 cpu_exec_aout_makecmds(struct lwp *l, struct exec_package *epp)



Home | Main Index | Thread Index | Old Index