From e6ea394a3a0eb0dc9e4a1f22d49dc8556b459f50 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 23 Jun 2001 02:12:34 +0000 Subject: [PATCH] #include Use SPR_HID0 in place of 1008 --- sys/arch/bebox/bebox/locore.S | 8 +++++--- sys/arch/prep/prep/locore.S | 12 +++++++----- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/sys/arch/bebox/bebox/locore.S b/sys/arch/bebox/bebox/locore.S index 8d5c499e5105..10d51a8bc589 100644 --- a/sys/arch/bebox/bebox/locore.S +++ b/sys/arch/bebox/bebox/locore.S @@ -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 #include +#include + /* * Some instructions gas doesn't understand (yet?) */ @@ -123,9 +125,9 @@ __start: __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 --git a/sys/arch/prep/prep/locore.S b/sys/arch/prep/prep/locore.S index fd33bb5ad99e..1a71d3683b54 100644 --- a/sys/arch/prep/prep/locore.S +++ b/sys/arch/prep/prep/locore.S @@ -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 #include +#include + /* * Some instructions gas doesn't understand (yet?) */ @@ -155,7 +157,7 @@ __start: 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 @@ __start: 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 @@ __start: bne 2,2f ori 11,11,HID0_BTCD 2: - mtspr 1008,11 + mtspr SPR_HID0,11 3: sync isync