Module Name:    src
Committed By:   rin
Date:           Mon Mar 29 14:27:36 UTC 2021

Modified Files:
        src/sys/arch/evbppc/walnut: machdep.c

Log Message:
Use IBM405GP_UART0_BASE instead of hard-coded magic number 0xef000000.

No functional changes since:

        IBM405GP_UART0_BASE & ~(TLB_PG_SIZE - 1) == 0xef000000

See ppc4xx_tlb_reserve() in ibm4xx/pmap.c.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/sys/arch/evbppc/walnut/machdep.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/evbppc/walnut/machdep.c
diff -u src/sys/arch/evbppc/walnut/machdep.c:1.60 src/sys/arch/evbppc/walnut/machdep.c:1.61
--- src/sys/arch/evbppc/walnut/machdep.c:1.60	Mon Mar 29 14:21:08 2021
+++ src/sys/arch/evbppc/walnut/machdep.c	Mon Mar 29 14:27:36 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: machdep.c,v 1.60 2021/03/29 14:21:08 rin Exp $	*/
+/*	$NetBSD: machdep.c,v 1.61 2021/03/29 14:27:36 rin Exp $	*/
 
 /*
  * Copyright 2001, 2002 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.60 2021/03/29 14:21:08 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.61 2021/03/29 14:27:36 rin Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_ddb.h"
@@ -106,6 +106,7 @@ __KERNEL_RCSID(0, "$NetBSD: machdep.c,v 
 #include <powerpc/ibm4xx/spr.h>
 #include <powerpc/ibm4xx/cpu.h>
 #include <powerpc/ibm4xx/dcr4xx.h>
+#include <powerpc/ibm4xx/ibm405gp.h>
 
 #include <powerpc/ibm4xx/pci_machdep.h>
 
@@ -164,7 +165,7 @@ initppc(vaddr_t startkernel, vaddr_t end
 	}
 
 	/* Map console after physmem (see pmap_tlbmiss()) */
-	ppc4xx_tlb_reserve(0xef000000,
+	ppc4xx_tlb_reserve(IBM405GP_UART0_BASE,
 	    roundup(board_data.mem_size, TLB_PG_SIZE),
 	    TLB_PG_SIZE, TLB_I | TLB_G);
 

Reply via email to