Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mac68k/mac68k Move initialization of the iomem exte...
details: https://anonhg.NetBSD.org/src/rev/72c474c4984f
branches: trunk
changeset: 472627:72c474c4984f
user: scottr <scottr%NetBSD.org@localhost>
date: Mon May 03 19:10:54 1999 +0000
description:
Move initialization of the iomem extent struct from mac68k_set_io_offset()
to mac68k_init(), so that we're through frobbing the MMU in special ways
by the time we get there. While it doesn't actually cause a problem with
the current structure of our initialization code, it probably would have
in the future.
diffstat:
sys/arch/mac68k/mac68k/machdep.c | 30 +++++++++++++++---------------
1 files changed, 15 insertions(+), 15 deletions(-)
diffs (51 lines):
diff -r 3f02f26059da -r 72c474c4984f sys/arch/mac68k/mac68k/machdep.c
--- a/sys/arch/mac68k/mac68k/machdep.c Mon May 03 19:04:10 1999 +0000
+++ b/sys/arch/mac68k/mac68k/machdep.c Mon May 03 19:10:54 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.231 1999/04/26 22:46:46 thorpej Exp $ */
+/* $NetBSD: machdep.c,v 1.232 1999/05/03 19:10:54 scottr Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -277,6 +277,20 @@
VM_FREELIST_DEFAULT);
}
+ /*
+ * Initialize the I/O mem extent map.
+ * Note: we don't have to check the return value since
+ * creation of a fixed extent map will never fail (since
+ * descriptor storage has already been allocated).
+ *
+ * N.B. The iomem extent manages _all_ physical addresses
+ * on the machine. When the amount of RAM is found, all
+ * extents of RAM are allocated from the map.
+ */
+ iomem_ex = extent_create("iomem", 0x0, 0xffffffff, M_DEVBUF,
+ (caddr_t)iomem_ex_storage, sizeof(iomem_ex_storage),
+ EX_NOCOALESCE|EX_NOWAIT);
+
/* Initialize the interrupt handlers. */
intr_init();
@@ -2304,20 +2318,6 @@
{
extern volatile u_char *sccA;
- /*
- * Initialize the I/O mem extent map.
- * Note: we don't have to check the return value since
- * creation of a fixed extent map will never fail (since
- * descriptor storage has already been allocated).
- *
- * N.B. The iomem extent manages _all_ physical addresses
- * on the machine. When the amount of RAM is found, all
- * extents of RAM are allocated from the map.
- */
- iomem_ex = extent_create("iomem", 0x0, 0xffffffff, M_DEVBUF,
- (caddr_t)iomem_ex_storage, sizeof(iomem_ex_storage),
- EX_NOCOALESCE|EX_NOWAIT);
-
switch (current_mac_model->class) {
case MACH_CLASSQ:
Via1Base = (volatile u_char *)base;
Home |
Main Index |
Thread Index |
Old Index