Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/macppc #include <powerpc/spr.h> and SPR_PIR ...



details:   https://anonhg.NetBSD.org/src/rev/ea77f8a787af
branches:  trunk
changeset: 511614:ea77f8a787af
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jun 23 02:07:07 2001 +0000

description:
#include <powerpc/spr.h> and SPR_PIR in place of 1023

diffstat:

 sys/arch/macppc/macppc/locore.S |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 1eddd58c5f86 -r ea77f8a787af sys/arch/macppc/macppc/locore.S
--- a/sys/arch/macppc/macppc/locore.S   Sat Jun 23 00:10:06 2001 +0000
+++ b/sys/arch/macppc/macppc/locore.S   Sat Jun 23 02:07:07 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.40 2001/06/10 11:01:28 tsubai Exp $       */
+/*     $NetBSD: locore.S,v 1.41 2001/06/23 02:07:07 matt Exp $ */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -48,6 +48,7 @@
 #include <machine/vmparam.h>
 #endif
 
+#include <powerpc/spr.h>
 /*
  * Some instructions gas doesn't understand (yet?)
  */
@@ -62,7 +63,7 @@
        mfsprg  r,0
 #else
 #define        GET_CPUINFO(r)                                          \
-       mfspr   r,1023;                 /* r = cpu_number() */  \
+       mfspr   r,SPR_PIR;              /* r = cpu_number() */  \
        mulli   r,r,CI_SIZE;                                    \
        addis   r,r,_C_LABEL(cpu_info)@ha;                      \
        addi    r,r,_C_LABEL(cpu_info)@l;



Home | Main Index | Thread Index | Old Index