Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/oea Fix typo; PMAP_OEA64_BRIDGE not PMAP_OE...



details:   https://anonhg.NetBSD.org/src/rev/d92bf23e6ab3
branches:  trunk
changeset: 1011501:d92bf23e6ab3
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Jul 02 10:28:11 2020 +0000

description:
Fix typo; PMAP_OEA64_BRIDGE not PMAP_OEA_BRIDGE.
Tested on Power Mac G5.

diffstat:

 sys/arch/powerpc/oea/pmap.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (60 lines):

diff -r 78314a52bfb5 -r d92bf23e6ab3 sys/arch/powerpc/oea/pmap.c
--- a/sys/arch/powerpc/oea/pmap.c       Thu Jul 02 10:22:28 2020 +0000
+++ b/sys/arch/powerpc/oea/pmap.c       Thu Jul 02 10:28:11 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.96 2020/05/31 10:49:39 rin Exp $    */
+/*     $NetBSD: pmap.c,v 1.97 2020/07/02 10:28:11 rin Exp $    */
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -63,7 +63,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.96 2020/05/31 10:49:39 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.97 2020/07/02 10:28:11 rin Exp $");
 
 #define        PMAP_NOOPNAMES
 
@@ -2655,20 +2655,20 @@
 pmap_print_mmuregs(void)
 {
        int i;
-#if defined (PMAP_OEA) || defined (PMAP_OEA_BRIDGE)
+#if defined (PMAP_OEA) || defined (PMAP_OEA64_BRIDGE)
        u_int cpuvers;
 #endif
 #ifndef PMAP_OEA64
        vaddr_t addr;
        register_t soft_sr[16];
 #endif
-#if defined (PMAP_OEA) || defined (PMAP_OEA_BRIDGE)
+#if defined (PMAP_OEA) || defined (PMAP_OEA64_BRIDGE)
        struct bat soft_ibat[4];
        struct bat soft_dbat[4];
 #endif
        paddr_t sdr1;
        
-#if defined (PMAP_OEA) || defined (PMAP_OEA_BRIDGE)
+#if defined (PMAP_OEA) || defined (PMAP_OEA64_BRIDGE)
        cpuvers = MFPVR() >> 16;
 #endif
        __asm volatile ("mfsdr1 %0" : "=r"(sdr1));
@@ -2680,7 +2680,7 @@
        }
 #endif
 
-#if defined (PMAP_OEA) || defined (PMAP_OEA_BRIDGE)
+#if defined (PMAP_OEA) || defined (PMAP_OEA64_BRIDGE)
        /* read iBAT (601: uBAT) registers */
        __asm volatile ("mfibatu %0,0" : "=r"(soft_ibat[0].batu));
        __asm volatile ("mfibatl %0,0" : "=r"(soft_ibat[0].batl));
@@ -2722,7 +2722,7 @@
        printf("\n");
 #endif
 
-#if defined(PMAP_OEA) || defined(PMAP_OEA_BRIDGE)
+#if defined(PMAP_OEA) || defined(PMAP_OEA64_BRIDGE)
        printf("%cBAT[]:\t", cpuvers == MPC601 ? 'u' : 'i');
        for (i = 0; i < 4; i++) {
                printf("0x%08lx 0x%08lx, ",



Home | Main Index | Thread Index | Old Index