Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/include Condition ({ ... }) by __GNUC__. R...



details:   https://anonhg.NetBSD.org/src/rev/34a9e8bcbca1
branches:  trunk
changeset: 544194:34a9e8bcbca1
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Mar 14 06:22:51 2003 +0000

description:
Condition ({ ... }) by __GNUC__.  Remove redundant SPR_IBAT0U definiton.

diffstat:

 sys/arch/powerpc/include/spr.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 960e73dafcd1 -r 34a9e8bcbca1 sys/arch/powerpc/include/spr.h
--- a/sys/arch/powerpc/include/spr.h    Fri Mar 14 06:21:19 2003 +0000
+++ b/sys/arch/powerpc/include/spr.h    Fri Mar 14 06:22:51 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spr.h,v 1.26 2003/02/26 21:10:51 jklos Exp $   */
+/*     $NetBSD: spr.h,v 1.27 2003/03/14 06:22:51 matt Exp $    */
 
 #ifndef _POWERPC_SPR_H_
 #define        _POWERPC_SPR_H_
@@ -6,10 +6,12 @@
 #ifndef _LOCORE
 #define        mtspr(reg, val)                                                 \
        __asm __volatile("mtspr %0,%1" : : "K"(reg), "r"(val))
+#ifdef __GNUC__
 #define        mfspr(reg)                                                      \
        ( { register_t val;                                             \
          __asm __volatile("mfspr %0,%1" : "=r"(val) : "K"(reg));       \
          val; } )
+#endif
 #endif /* _LOCORE */
 
 /*
@@ -90,7 +92,6 @@
 #define          MPC8245                 0x8081
 
 #define        SPR_IBAT0U              0x210   /* .68 Instruction BAT Reg 0 Upper */
-#define        SPR_IBAT0U              0x210   /* .6. Instruction BAT Reg 0 Upper */
 #define        SPR_IBAT0L              0x211   /* .6. Instruction BAT Reg 0 Lower */
 #define        SPR_IBAT1U              0x212   /* .6. Instruction BAT Reg 1 Upper */
 #define        SPR_IBAT1L              0x213   /* .6. Instruction BAT Reg 1 Lower */



Home | Main Index | Thread Index | Old Index