summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-02-24 17:38:00 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-02-24 17:38:00 +0000
commitef8e2cdff39f873ff142f89ee89daf5526457fe8 (patch)
tree08941c9ccb67d3821400e1ff2cf423ee6626e00d /sys
parenta7655df2916cb99465e5f6e7585e2427980c6d0f (diff)
Defer the iomem extent initialization until the MMU is enabled. This is
necessary since the last pmap changes, to get proper serial console initialization. From NetBSD, tested by nick@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/mac68k/mac68k/machdep.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c
index 8d40f018618..5255da14a61 100644
--- a/sys/arch/mac68k/mac68k/machdep.c
+++ b/sys/arch/mac68k/mac68k/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.102 2003/01/04 22:11:47 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.103 2003/02/24 17:37:59 miod Exp $ */
/* $NetBSD: machdep.c,v 1.207 1998/07/08 04:39:34 thorpej Exp $ */
/*
@@ -274,6 +274,20 @@ mac68k_init()
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 VIAs */
via_init();
@@ -2429,20 +2443,6 @@ mac68k_set_io_offsets(base)
{
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;