Source-Changes-HG archive

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

[src/trunk]: src/sys/arch put the OF buffer page in the BSS rather than alloc...



details:   https://anonhg.NetBSD.org/src/rev/d2a42aea5fd0
branches:  trunk
changeset: 534067:d2a42aea5fd0
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Jul 14 20:56:12 2002 +0000

description:
put the OF buffer page in the BSS rather than allocate it at runtime.
from PR 14497.

diffstat:

 sys/arch/macppc/macppc/locore.S |  12 ++++++++----
 sys/arch/ofppc/ofppc/locore.S   |  18 ++++++++++--------
 2 files changed, 18 insertions(+), 12 deletions(-)

diffs (92 lines):

diff -r b1b62633d1a2 -r d2a42aea5fd0 sys/arch/macppc/macppc/locore.S
--- a/sys/arch/macppc/macppc/locore.S   Sun Jul 14 20:53:21 2002 +0000
+++ b/sys/arch/macppc/macppc/locore.S   Sun Jul 14 20:56:12 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.45 2002/07/09 19:21:03 matt Exp $ */
+/*     $NetBSD: locore.S,v 1.46 2002/07/14 20:56:13 chs Exp $  */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -118,6 +118,8 @@
 idle_u:
        .long   0                       /* fake uarea during idle after exit */
 #endif
+OF_buffer:
+       .space  NBPG
 
 /*
  * This symbol is here for the benefit of kvm_mkdb, and is supposed to
@@ -157,9 +159,6 @@
        li      9,PGOFSET
        add     8,8,9
        andc    8,8,9
-       lis     9,_C_LABEL(OF_buf)@ha
-       stw     8,_C_LABEL(OF_buf)@l(9)
-       addi    8,8,NBPG
 #if defined(MULTIPROCESSOR)
        lis     9,_C_LABEL(cpu_info)@ha
        addi    9,9,_C_LABEL(cpu_info)@l
@@ -180,6 +179,11 @@
        xor     0,0,0
        stwu    0,-16(1)                /* end of stack chain */
 
+       lis     8,OF_buffer@ha
+       addi    8,8,OF_buffer@l
+       lis     9,_C_LABEL(OF_buf)@ha
+       stw     8,_C_LABEL(OF_buf)@l(9)
+
        lis     3,__start@ha
        addi    3,3,__start@l
        mr      5,6                     /* args string */
diff -r b1b62633d1a2 -r d2a42aea5fd0 sys/arch/ofppc/ofppc/locore.S
--- a/sys/arch/ofppc/ofppc/locore.S     Sun Jul 14 20:53:21 2002 +0000
+++ b/sys/arch/ofppc/ofppc/locore.S     Sun Jul 14 20:56:12 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.27 2002/07/09 19:21:04 matt Exp $ */
+/*     $NetBSD: locore.S,v 1.28 2002/07/14 20:56:12 chs Exp $  */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -74,6 +74,8 @@
        .data
 idle_u:
        .long   0                       /* fake uarea during idle after exit */
+OF_buffer:
+       .space  NBPG
 
 /*
  * This symbol is here for the benefit of kvm_mkdb, and is supposed to
@@ -128,19 +130,14 @@
        mr      8,9                     /* r8 = end of kernel + symbols */
        b       2f
 1:
+#endif
        lis     8,_C_LABEL(end)@ha
        addi    8,8,_C_LABEL(end)@l
 2:
-#else
-       lis     8,_C_LABEL(end)@ha
-       addi    8,8,_C_LABEL(end)@l
-#endif
        li      9,PGOFSET
        add     8,8,9
        andc    8,8,9
-       lis     9,_C_LABEL(OF_buf)@ha
-       stw     8,_C_LABEL(OF_buf)@l(9)
-       addi    8,8,NBPG
+
        lis     9,idle_u@ha
        stw     8,idle_u@l(9)
        addi    8,8,USPACE              /* space for idle_u */
@@ -151,6 +148,11 @@
        xor     0,0,0
        stwu    0,-16(1)                /* end of stack chain */
        
+       lis     8,OF_buffer@ha
+       addi    8,8,OF_buffer@l
+       lis     9,_C_LABEL(OF_buf)@ha
+       stw     8,_C_LABEL(OF_buf)@l(9)
+
        lis     3,__start@ha
        addi    3,3,__start@l
        mr      5,6                     /* args string */



Home | Main Index | Thread Index | Old Index