Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/prep/prep Move battable entries for I/O to their co...



details:   https://anonhg.NetBSD.org/src/rev/9e735f0e2db6
branches:  trunk
changeset: 522692:9e735f0e2db6
user:      kleink <kleink%NetBSD.org@localhost>
date:      Sun Feb 24 10:56:54 2002 +0000

description:
Move battable entries for I/O to their correct pseudo-segment offsets;
while BAT spills currently don't happen, it should be possible for the
handlers to find them at the expected address anyway.

diffstat:

 sys/arch/prep/prep/machdep.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (38 lines):

diff -r 91105406d8d7 -r 9e735f0e2db6 sys/arch/prep/prep/machdep.c
--- a/sys/arch/prep/prep/machdep.c      Sun Feb 24 09:57:18 2002 +0000
+++ b/sys/arch/prep/prep/machdep.c      Sun Feb 24 10:56:54 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.32 2002/02/11 23:01:37 kleink Exp $      */
+/*     $NetBSD: machdep.c,v 1.33 2002/02/24 10:56:54 kleink Exp $      */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -268,12 +268,12 @@
        battable[0].batu = BATU(0x00000000, BAT_BL_256M, BAT_Vs);
 
        /* map the PCI/ISA I/O 256 MB area */
-       battable[1].batl = BATL(PREP_BUS_SPACE_IO, BAT_I, BAT_PP_RW);
-       battable[1].batu = BATU(PREP_BUS_SPACE_IO, BAT_BL_256M, BAT_Vs);
+       battable[8].batl = BATL(PREP_BUS_SPACE_IO, BAT_I, BAT_PP_RW);
+       battable[8].batu = BATU(PREP_BUS_SPACE_IO, BAT_BL_256M, BAT_Vs);
 
        /* map the PCI/ISA MEMORY 256 MB area */
-       battable[2].batl = BATL(PREP_BUS_SPACE_MEM, BAT_I, BAT_PP_RW);
-       battable[2].batu = BATU(PREP_BUS_SPACE_MEM, BAT_BL_256M, BAT_Vs);
+       battable[9].batl = BATL(PREP_BUS_SPACE_MEM, BAT_I, BAT_PP_RW);
+       battable[9].batu = BATU(PREP_BUS_SPACE_MEM, BAT_BL_256M, BAT_Vs);
 
        /*
         * Now setup fixed bat registers
@@ -284,9 +284,9 @@
        asm volatile ("mtdbatl 0,%0; mtdbatu 0,%1"
                      :: "r"(battable[0].batl), "r"(battable[0].batu));
        asm volatile ("mtdbatl 1,%0; mtdbatu 1,%1"
-                     :: "r"(battable[1].batl), "r"(battable[1].batu));
+                     :: "r"(battable[8].batl), "r"(battable[8].batu));
        asm volatile ("mtdbatl 2,%0; mtdbatu 2,%1"
-                     :: "r"(battable[2].batl), "r"(battable[2].batu));
+                     :: "r"(battable[9].batl), "r"(battable[9].batu));
 
        asm volatile ("sync; isync");
        /*



Home | Main Index | Thread Index | Old Index