Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbsh3/evbsh3 sync with PTE bit change.
details: https://anonhg.NetBSD.org/src/rev/635de0b580c1
branches: trunk
changeset: 522131:635de0b580c1
user: uch <uch%NetBSD.org@localhost>
date: Mon Feb 11 18:06:34 2002 +0000
description:
sync with PTE bit change.
diffstat:
sys/arch/evbsh3/evbsh3/machdep.c | 32 +++++++++++++++++++-------------
1 files changed, 19 insertions(+), 13 deletions(-)
diffs (47 lines):
diff -r 0e73a848578b -r 635de0b580c1 sys/arch/evbsh3/evbsh3/machdep.c
--- a/sys/arch/evbsh3/evbsh3/machdep.c Mon Feb 11 18:06:06 2002 +0000
+++ b/sys/arch/evbsh3/evbsh3/machdep.c Mon Feb 11 18:06:34 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.28 2001/09/10 21:19:12 chris Exp $ */
+/* $NetBSD: machdep.c,v 1.29 2002/02/11 18:06:34 uch Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -934,19 +934,25 @@
*bshp = (bus_space_handle_t)(va + (bpa & PGOFSET));
- if( io_type == SH3_BUS_SPACE_PCMCIA_IO ){
- m = PG_PCMCIA_IO;
- }
- else if( io_type == SH3_BUS_SPACE_PCMCIA_MEM ){
- m = PG_PCMCIA_MEM;
+#define MODE(t, s) \
+ (t) & SH3_BUS_SPACE_PCMCIA_8BIT ? \
+ _PG_PCMCIA_ ## s ## 8 : \
+ _PG_PCMCIA_ ## s ## 16
+ switch (io_type) {
+ default:
+ panic("unknown pcmcia space.");
+ /* NOTREACHED */
+ case SH3_BUS_SPACE_PCMCIA_IO:
+ m = MODE(type, IO);
+ break;
+ case SH3_BUS_SPACE_PCMCIA_MEM:
+ m = MODE(type, MEM);
+ break;
+ case SH3_BUS_SPACE_PCMCIA_ATT:
+ m = MODE(type, ATTR);
+ break;
}
- else if( io_type == SH3_BUS_SPACE_PCMCIA_ATT ){
- m = PG_PCMCIA_ATT;
- }
-
- if( type & SH3_BUS_SPACE_PCMCIA_8BIT ){
- m |= PG_PCMCIA_8;
- }
+#undef MODE
for (; pa < endpa; pa += NBPG, va += NBPG) {
pmap_enter(pmap_kernel(), va, pa,
Home |
Main Index |
Thread Index |
Old Index