Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Move INTSTK and SPILLSTK definitions to locore.[Ss]...



details:   https://anonhg.NetBSD.org/src/rev/2ac943211da9
branches:  trunk
changeset: 500060:2ac943211da9
user:      tsubai <tsubai%NetBSD.org@localhost>
date:      Mon Dec 04 17:05:50 2000 +0000

description:
Move INTSTK and SPILLSTK definitions to locore.[Ss] to allow allocation of
them in early startup.

diffstat:

 sys/arch/bebox/bebox/locore.s        |  5 ++++-
 sys/arch/macppc/macppc/locore.S      |  5 ++++-
 sys/arch/ofppc/ofppc/locore.S        |  5 ++++-
 sys/arch/powerpc/powerpc/trap_subr.S |  6 +-----
 sys/arch/prep/prep/locore.s          |  5 ++++-
 5 files changed, 17 insertions(+), 9 deletions(-)

diffs (103 lines):

diff -r 7239d1620a77 -r 2ac943211da9 sys/arch/bebox/bebox/locore.s
--- a/sys/arch/bebox/bebox/locore.s     Mon Dec 04 16:11:56 2000 +0000
+++ b/sys/arch/bebox/bebox/locore.s     Mon Dec 04 17:05:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.19 2000/11/16 05:34:03 thorpej Exp $      */
+/*     $NetBSD: locore.s,v 1.20 2000/12/04 17:05:50 tsubai Exp $       */
 /*     $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $       */
 
 /*
@@ -52,6 +52,9 @@
  */
 #define        bdneq   bdnzf 2,
 
+#define        INTSTK  (8*1024)        /* 8K interrupt stack */
+#define        SPILLSTK 1024           /* 1K spill stack */
+
 /*
  * Globals
  */
diff -r 7239d1620a77 -r 2ac943211da9 sys/arch/macppc/macppc/locore.S
--- a/sys/arch/macppc/macppc/locore.S   Mon Dec 04 16:11:56 2000 +0000
+++ b/sys/arch/macppc/macppc/locore.S   Mon Dec 04 17:05:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.29 2000/11/25 15:49:43 tsubai Exp $       */
+/*     $NetBSD: locore.S,v 1.30 2000/12/04 17:05:51 tsubai Exp $       */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -61,6 +61,9 @@
        addi    r,r,_C_LABEL(cpu_info)@l;
 #endif
 
+#define        INTSTK  (8*1024)        /* 8K interrupt stack */
+#define        SPILLSTK 1024           /* 1K spill stack */
+
 /*
  * Globals
  */
diff -r 7239d1620a77 -r 2ac943211da9 sys/arch/ofppc/ofppc/locore.S
--- a/sys/arch/ofppc/ofppc/locore.S     Mon Dec 04 16:11:56 2000 +0000
+++ b/sys/arch/ofppc/ofppc/locore.S     Mon Dec 04 17:05:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.20 2000/11/16 05:34:04 thorpej Exp $      */
+/*     $NetBSD: locore.S,v 1.21 2000/12/04 17:05:51 tsubai Exp $       */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -50,6 +50,9 @@
  */
 #define        bdneq   bdnzf 2,
 
+#define        INTSTK  (8*1024)        /* 8K interrupt stack */
+#define        SPILLSTK 1024           /* 1K spill stack */
+
 /*
  * Globals
  */
diff -r 7239d1620a77 -r 2ac943211da9 sys/arch/powerpc/powerpc/trap_subr.S
--- a/sys/arch/powerpc/powerpc/trap_subr.S      Mon Dec 04 16:11:56 2000 +0000
+++ b/sys/arch/powerpc/powerpc/trap_subr.S      Mon Dec 04 17:05:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap_subr.S,v 1.1 2000/11/16 05:33:04 thorpej Exp $    */
+/*     $NetBSD: trap_subr.S,v 1.2 2000/12/04 17:05:52 tsubai Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -47,8 +47,6 @@
 /*
  * XXX Interrupt and spill stacks need to be per-CPU.
  */
-
-#define        INTSTK  (8*1024)        /* 8K interrupt stack */
        .data
        .align  4
 intstk:
@@ -57,8 +55,6 @@
 GLOBAL(intr_depth)
        .long   -1              /* in-use marker */
 
-#define        SPILLSTK 1024           /* 1K spill stack */
-
        .comm   spillstk,SPILLSTK,8
 
 /*
diff -r 7239d1620a77 -r 2ac943211da9 sys/arch/prep/prep/locore.s
--- a/sys/arch/prep/prep/locore.s       Mon Dec 04 16:11:56 2000 +0000
+++ b/sys/arch/prep/prep/locore.s       Mon Dec 04 17:05:50 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.8 2000/11/16 05:38:33 thorpej Exp $       */
+/*     $NetBSD: locore.s,v 1.9 2000/12/04 17:05:51 tsubai Exp $        */
 /*     $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $       */
 
 /*
@@ -63,6 +63,9 @@
 #define        HID0_DCE        (1<<14)
 #define        HID0_ICE        (1<<15)
 
+#define        INTSTK  (8*1024)        /* 8K interrupt stack */
+#define        SPILLSTK 1024           /* 1K spill stack */
+
 /*
  * Globals
  */



Home | Main Index | Thread Index | Old Index