summaryrefslogtreecommitdiff
path: root/sys/arch/sgi/localbus/macebus.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-12-20 06:59:28 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-12-20 06:59:28 +0000
commitad1cff6ab02fa20a482b038484093cb6c7ab870b (patch)
tree746cc4f8e745f9d5d46c4c612551ada446aeaf2e /sys/arch/sgi/localbus/macebus.c
parent70e47bba2ff56a3bce2541987cd5e292225be42f (diff)
Remove initial extent storage for crime and mace bus_space. By the time
these extents are created it is safe to use malloc.
Diffstat (limited to 'sys/arch/sgi/localbus/macebus.c')
-rw-r--r--sys/arch/sgi/localbus/macebus.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/arch/sgi/localbus/macebus.c b/sys/arch/sgi/localbus/macebus.c
index e6be4c817b0..f9df0924405 100644
--- a/sys/arch/sgi/localbus/macebus.c
+++ b/sys/arch/sgi/localbus/macebus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: macebus.c,v 1.14 2005/12/19 21:37:47 miod Exp $ */
+/* $OpenBSD: macebus.c,v 1.15 2005/12/20 06:59:27 miod Exp $ */
/*
* Copyright (c) 2000-2004 Opsycon AB (www.opsycon.se)
@@ -68,9 +68,6 @@ void macebus_do_pending_int(int);
intrmask_t macebus_iointr(intrmask_t, struct trap_frame *);
intrmask_t macebus_aux(intrmask_t, struct trap_frame *);
-long mace_ext_storage[EXTENT_FIXED_STORAGE_SIZE(8) / sizeof (long)];
-long crime_ext_storage[EXTENT_FIXED_STORAGE_SIZE(8) / sizeof (long)];
-
int maceticks; /* Time tracker for special events */
struct cfattach macebus_ca = {
@@ -200,13 +197,11 @@ macebusattach(struct device *parent, struct device *self, void *aux)
*/
macebus_tag.bus_extent = extent_create("mace_space",
macebus_tag.bus_base, macebus_tag.bus_base + 0x00400000,
- M_DEVBUF, (caddr_t)mace_ext_storage,
- sizeof(mace_ext_storage), EX_NOCOALESCE|EX_NOWAIT);
+ M_DEVBUF, NULL, 0, EX_NOCOALESCE | EX_NOWAIT);
crimebus_tag.bus_extent = extent_create("crime_space",
crimebus_tag.bus_base, crimebus_tag.bus_base + 0x00400000,
- M_DEVBUF, (caddr_t)crime_ext_storage,
- sizeof(crime_ext_storage), EX_NOCOALESCE|EX_NOWAIT);
+ M_DEVBUF, NULL, 0, EX_NOCOALESCE | EX_NOWAIT);
/*
* Map and set up CRIME control registers.