From 1672d46117a4b747a9ec6fa2cb09358aee05ef59 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Thu, 23 Dec 2004 15:32:10 +0000 Subject: Use a shorter, more realistic initial memory storage for extio. --- sys/arch/hp300/hp300/machdep.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/arch/hp300/hp300/machdep.c b/sys/arch/hp300/hp300/machdep.c index 6d358d728f1..b85bdb24f76 100644 --- a/sys/arch/hp300/hp300/machdep.c +++ b/sys/arch/hp300/hp300/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.92 2004/12/02 19:37:22 miod Exp $ */ +/* $OpenBSD: machdep.c,v 1.93 2004/12/23 15:32:09 miod Exp $ */ /* $NetBSD: machdep.c,v 1.121 1999/03/26 23:41:29 mycroft Exp $ */ /* @@ -143,10 +143,12 @@ extern struct emul emul_sunos; #endif /* - * XXX some storage space must be allocated statically because of - * early console init + * Some storage space must be allocated statically because of the + * early console initialization. + * We know that console initialization will not try to map more than + * DIOCSIZE bytes. Play safe and allow for twice this size. */ -char extiospace[EXTENT_FIXED_STORAGE_SIZE(EIOMAPSIZE / 16)]; +char extiospace[EXTENT_FIXED_STORAGE_SIZE(2 * DIOCSIZE / PAGE_SIZE)]; /* prototypes for local functions */ caddr_t allocsys(caddr_t); -- cgit v1.2.3