diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-05-06 16:59:29 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-05-06 16:59:29 +0000 |
commit | 516bd0ac30018bbfb1f1e7f5b33f524331357907 (patch) | |
tree | 2178d7d8c98a543b2de7a17e0891c913f347058e /sys/arch/mvme88k/dev | |
parent | 0941726c718d0c63478583c6d822d4a893c9b7a9 (diff) |
On 88100-based systems, take the two hardwired BATC into account in
pmap_extract(), and do not bother creating regular page table mappings
for obio regions which are covered by these BATC entries.
Diffstat (limited to 'sys/arch/mvme88k/dev')
-rw-r--r-- | sys/arch/mvme88k/dev/mainbus.c | 31 |
1 files changed, 9 insertions, 22 deletions
diff --git a/sys/arch/mvme88k/dev/mainbus.c b/sys/arch/mvme88k/dev/mainbus.c index e8f603c1a2e..504e13cdcdf 100644 --- a/sys/arch/mvme88k/dev/mainbus.c +++ b/sys/arch/mvme88k/dev/mainbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mainbus.c,v 1.19 2006/04/27 20:19:28 miod Exp $ */ +/* $OpenBSD: mainbus.c,v 1.20 2006/05/06 16:59:28 miod Exp $ */ /* * Copyright (c) 1998 Steve Murphree, Jr. * Copyright (c) 2004, Miodrag Vallat. @@ -40,6 +40,9 @@ #include <machine/cmmu.h> #include <machine/cpu.h> +#ifdef M88100 +#include <machine/m8820x.h> +#endif #ifdef MVME187 #include <machine/mvme187.h> #endif @@ -91,24 +94,14 @@ mainbus_map(bus_addr_t addr, bus_size_t size, int flags, static bus_addr_t threshold = 0; if (threshold == 0) { - switch (brdtyp) { -#ifdef MVME188 - case BRD_188: - threshold = MVME188_UTILITY; - break; -#endif -#ifdef MVME187 - case BRD_187: - case BRD_8120: - threshold = OBIO187_START; - break; +#ifdef M88100 + if (CPU_IS88100) + threshold = BATC8_VA; /* hardwired BATC */ #endif #ifdef MVME197 - case BRD_197: -#endif + if (CPU_IS88110) threshold = OBIO197_START; - break; - } +#endif } if (addr >= threshold) @@ -285,11 +278,5 @@ mainbus_attach(parent, self, args) */ cpu_configuration_print(1); - /* XXX - * should have a please-attach-first list for mainbus, - * to ensure that the pcc/vme2/mcc chips are attached - * first. - */ - (void)config_search(mainbus_scan, self, args); } |