Module Name:    src
Committed By:   rin
Date:           Thu Jul  2 10:28:11 UTC 2020

Modified Files:
        src/sys/arch/powerpc/oea: pmap.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/sys/arch/powerpc/oea/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/powerpc/oea/pmap.c
diff -u src/sys/arch/powerpc/oea/pmap.c:1.96 src/sys/arch/powerpc/oea/pmap.c:1.97
--- src/sys/arch/powerpc/oea/pmap.c:1.96	Sun May 31 10:49:39 2020
+++ src/sys/arch/powerpc/oea/pmap.c	Thu Jul  2 10:28:11 2020
@@ -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 @@ void
 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 @@ pmap_print_mmuregs(void)
 	}
 #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 @@ pmap_print_mmuregs(void)
 	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, ",

Reply via email to