Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbppc/walnut Use IBM405GP_UART0_BASE instead of ha...



details:   https://anonhg.NetBSD.org/src/rev/3af4dee18086
branches:  trunk
changeset: 954119:3af4dee18086
user:      rin <rin%NetBSD.org@localhost>
date:      Mon Mar 29 14:27:36 2021 +0000

description:
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.

diffstat:

 sys/arch/evbppc/walnut/machdep.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 021c56eb0e74 -r 3af4dee18086 sys/arch/evbppc/walnut/machdep.c
--- a/sys/arch/evbppc/walnut/machdep.c  Mon Mar 29 14:21:08 2021 +0000
+++ b/sys/arch/evbppc/walnut/machdep.c  Mon Mar 29 14:27:36 2021 +0000
@@ -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 @@
 #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 @@
        }
 
        /* 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);
 



Home | Main Index | Thread Index | Old Index