Source-Changes-HG archive

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

[src/trunk]: src/sys/arch #include <powerpc/spr.h> Use SPR_HID0 in place of ...



details:   https://anonhg.NetBSD.org/src/rev/32c4e8bb82d6
branches:  trunk
changeset: 511615:32c4e8bb82d6
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jun 23 02:12:34 2001 +0000

description:
#include <powerpc/spr.h>  Use SPR_HID0 in place of 1008

diffstat:

 sys/arch/bebox/bebox/locore.S |   8 +++++---
 sys/arch/prep/prep/locore.S   |  12 +++++++-----
 2 files changed, 12 insertions(+), 8 deletions(-)

diffs (78 lines):

diff -r ea77f8a787af -r 32c4e8bb82d6 sys/arch/bebox/bebox/locore.S
--- a/sys/arch/bebox/bebox/locore.S     Sat Jun 23 02:07:07 2001 +0000
+++ b/sys/arch/bebox/bebox/locore.S     Sat Jun 23 02:12:34 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.7 2001/06/06 17:42:29 matt Exp $  */
+/*     $NetBSD: locore.S,v 1.8 2001/06/23 02:17:14 matt Exp $  */
 /*     $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $       */
 
 /*
@@ -48,6 +48,8 @@
 #include <machine/trap.h>
 #include <machine/asm.h>
 
+#include <powerpc/spr.h>
+
 /*
  * Some instructions gas doesn't understand (yet?)
  */
@@ -123,9 +125,9 @@
 __start_cpu1:
 #ifdef CPU1_SLEEP
        lis     8, 0x0020       /* SLEEP */
-       mfspr   7, 1008         /* get HID0 */
+       mfspr   7, SPR_HID0     /* get HID0 */
        or      7, 7, 8
-       mtspr   1008, 7         /* set HID0 */
+       mtspr   SPR_HID0, 7     /* set HID0 */
        lis     8, 0x0004       /* POW */
        sync
        mtmsr   8
diff -r ea77f8a787af -r 32c4e8bb82d6 sys/arch/prep/prep/locore.S
--- a/sys/arch/prep/prep/locore.S       Sat Jun 23 02:07:07 2001 +0000
+++ b/sys/arch/prep/prep/locore.S       Sat Jun 23 02:12:34 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.2 2001/06/17 16:01:28 nonaka Exp $        */
+/*     $NetBSD: locore.S,v 1.3 2001/06/23 02:12:34 matt Exp $  */
 /*     $OpenBSD: locore.S,v 1.4 1997/01/26 09:06:38 rahnds Exp $       */
 
 /*
@@ -48,6 +48,8 @@
 #include <machine/trap.h>
 #include <machine/asm.h>
 
+#include <powerpc/spr.h>
+
 /*
  * Some instructions gas doesn't understand (yet?)
  */
@@ -155,7 +157,7 @@
        rlwinm  9,9,16,16,31
        cmpi    0,9,1
        beq     3f                      /* not needed for 601 */
-       mfspr   11,1008
+       mfspr   11,SPR_HID0
        andi.   0,11,HID0_DCE
        ori     11,11,HID0_ICE|HID0_DCE
        ori     8,11,HID0_ICFI
@@ -163,9 +165,9 @@
        ori     8,8,HID0_DCI            /* unless it wasn't enabled */
 1:
        sync
-       mtspr   1008,8                  /* enable and invalidate caches */
+       mtspr   SPR_HID0,8              /* enable and invalidate caches */
        sync
-       mtspr   1008,11                 /* enable caches */
+       mtspr   SPR_HID0,11             /* enable caches */
        sync
        isync
        cmpi    0,9,4                   /* check for 604 */
@@ -178,7 +180,7 @@
        bne     2,2f
        ori     11,11,HID0_BTCD
 2:
-       mtspr   1008,11
+       mtspr   SPR_HID0,11
 3:
        sync
        isync



Home | Main Index | Thread Index | Old Index