Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/include Compile GENERIC.MP.



details:   https://anonhg.NetBSD.org/src/rev/85c8bbce3e36
branches:  trunk
changeset: 555347:85c8bbce3e36
user:      petrov <petrov%NetBSD.org@localhost>
date:      Sat Nov 15 05:24:51 2003 +0000

description:
Compile GENERIC.MP.

diffstat:

 sys/arch/sparc64/include/cpu.h |  8 +++++++-
 sys/arch/sparc64/include/psl.h |  5 ++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diffs (55 lines):

diff -r 5a3dae20fd2e -r 85c8bbce3e36 sys/arch/sparc64/include/cpu.h
--- a/sys/arch/sparc64/include/cpu.h    Sat Nov 15 05:24:03 2003 +0000
+++ b/sys/arch/sparc64/include/cpu.h    Sat Nov 15 05:24:51 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.37 2003/11/09 05:29:59 tsutsui Exp $ */
+/*     $NetBSD: cpu.h,v 1.38 2003/11/15 05:24:51 petrov Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -101,6 +101,7 @@
        struct lwp              *ci_fplwp;
        int                     ci_number;
        int                     ci_upaid;
+       int                     ci_cpuid;
        struct schedstate_percpu ci_schedstate;
 
        /*
@@ -146,6 +147,11 @@
 /* This really should be somewhere else. */
 #define        cpu_proc_fork(p1, p2)   /* nothing */
 
+#if defined(MULTIPROCESSOR)
+void   cpu_boot_secondary_processors __P((void));
+#define        CPU_IS_PRIMARY(ci)      (1) /* XXX */
+#endif
+
 /*
  * definitions for MI microtime().
  */
diff -r 5a3dae20fd2e -r 85c8bbce3e36 sys/arch/sparc64/include/psl.h
--- a/sys/arch/sparc64/include/psl.h    Sat Nov 15 05:24:03 2003 +0000
+++ b/sys/arch/sparc64/include/psl.h    Sat Nov 15 05:24:51 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: psl.h,v 1.24 2003/11/09 21:52:31 petrov Exp $ */
+/*     $NetBSD: psl.h,v 1.25 2003/11/15 05:24:51 petrov Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -412,6 +412,8 @@
 SPLHOLD(splsched, PIL_SCHED)
 SPLHOLD(spllock, PIL_LOCK)
 
+SPLHOLD(splipi, PIL_HIGH)
+
 SPLHOLD(splhigh, PIL_HIGH)
 
 /* splx does not have a return value */
@@ -437,6 +439,7 @@
 #define        spllock()       spllockX(__FILE__, __LINE__)
 #define        splhigh()       splhighX(__FILE__, __LINE__)
 #define splx(x)                splxX((x),__FILE__, __LINE__)
+#define splipi()       splhighX(__FILE__, __LINE__)
 
 static __inline void splxX __P((int, const char*, int));
 static __inline void splxX(newpil, file, line)



Home | Main Index | Thread Index | Old Index