Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/macppc Use BAT1 to map the primary I/O segme...
details: https://anonhg.NetBSD.org/src/rev/78c0ba23f94f
branches: trunk
changeset: 526111:78c0ba23f94f
user: matt <matt%NetBSD.org@localhost>
date: Thu Apr 25 19:32:59 2002 +0000
description:
Use BAT1 to map the primary I/O segment at 0x80000000 so we don't have to
bat-flip for those accesses.
diffstat:
sys/arch/macppc/macppc/machdep.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r e1a9deca0eb7 -r 78c0ba23f94f sys/arch/macppc/macppc/machdep.c
--- a/sys/arch/macppc/macppc/machdep.c Thu Apr 25 18:45:35 2002 +0000
+++ b/sys/arch/macppc/macppc/machdep.c Thu Apr 25 19:32:59 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.111 2002/04/23 12:41:05 kleink Exp $ */
+/* $NetBSD: machdep.c,v 1.112 2002/04/25 19:32:59 matt Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -218,6 +218,9 @@
asm volatile ("mtibatl 0,%0; mtibatu 0,%1;"
"mtdbatl 0,%0; mtdbatu 0,%1;"
:: "r"(battable[0].batl), "r"(battable[0].batu));
+ /* BAT1 used for primary I/O 256 MB segment */
+ asm volatile ("mtdbatl 1,%0; mtdbatu 1,%1;"
+ :: "r"(battable[8].batl), "r"(battable[8].batu));
/*
* Set up battable to map all RAM regions.
Home |
Main Index |
Thread Index |
Old Index