diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-12-23 15:32:10 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-12-23 15:32:10 +0000 |
commit | 1672d46117a4b747a9ec6fa2cb09358aee05ef59 (patch) | |
tree | 12d86a163963d825efd854afc32c3bde3ca22546 /sys | |
parent | 20363cc2d0685f56718a553c8b9d34f4d73b509c (diff) |
Use a shorter, more realistic initial memory storage for extio.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/hp300/hp300/machdep.c | 10 |
1 files changed, 6 insertions, 4 deletions
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); |