summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-07-24 18:27:37 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-07-24 18:27:37 +0000
commit11bbe15a6df2dadba3cab86a85f0cb64bce47ec7 (patch)
treee3971dacee55434ef0d37a5a9edb665513ebad67 /sys/arch/sparc
parentbaa31b801b77aa059212ffadf97fee91e5f54a75 (diff)
move large local array out of a "called once, only at boot" function
into being a global, to reduce stack size; ok miod
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/sparc/autoconf.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/arch/sparc/sparc/autoconf.c b/sys/arch/sparc/sparc/autoconf.c
index 8cba6ba1b6b..97ff7b46a9f 100644
--- a/sys/arch/sparc/sparc/autoconf.c
+++ b/sys/arch/sparc/sparc/autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoconf.c,v 1.72 2006/03/15 20:07:28 miod Exp $ */
+/* $OpenBSD: autoconf.c,v 1.73 2006/07/24 18:27:36 deraadt Exp $ */
/* $NetBSD: autoconf.c,v 1.73 1997/07/29 09:41:53 fair Exp $ */
/*
@@ -1376,17 +1376,20 @@ findzs(zs)
/* NOTREACHED */
}
+#if defined(SUN4C) || defined(SUN4M)
+struct v2rmi {
+ int zero;
+ int addr;
+ int len;
+} v2rmi[200]; /* version 2 rom meminfo layout */
+#endif
+
int
makememarr(ap, max, which)
register struct memarr *ap;
int max, which;
{
#if defined(SUN4C) || defined(SUN4M)
- struct v2rmi {
- int zero;
- int addr;
- int len;
- } v2rmi[200]; /* version 2 rom meminfo layout */
#define MAXMEMINFO (sizeof(v2rmi) / sizeof(*v2rmi))
register struct v0mlist *mp;
register int i, node, len;