summaryrefslogtreecommitdiff
path: root/sys/arch/m88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-05-15 20:18:05 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-05-15 20:18:05 +0000
commit9eb365ae9a9ea711da6311d7352766c67aa2754b (patch)
tree67222baccf33171d2cbeb30e41312800457a50e8 /sys/arch/m88k
parent642c4be2e817c68432d30827b772d5776767d01b (diff)
Initialize a teeny few more globals to reasonable values to allow for printf()
to work as soon as cn_tab is initialized. Allows us to correctly printf or panic early on unrecognized systems. This used to be the case but got lost a long time ago.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r--sys/arch/m88k/m88k/m88k_machdep.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/m88k/m88k/m88k_machdep.c b/sys/arch/m88k/m88k/m88k_machdep.c
index cc4f89dfe1d..eb4bbe63d64 100644
--- a/sys/arch/m88k/m88k/m88k_machdep.c
+++ b/sys/arch/m88k/m88k/m88k_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: m88k_machdep.c,v 1.55 2013/02/17 18:07:36 miod Exp $ */
+/* $OpenBSD: m88k_machdep.c,v 1.56 2013/05/15 20:18:04 miod Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -95,7 +95,11 @@ cpuid_t master_cpu;
__cpu_simple_lock_t cmmu_cpu_lock = __SIMPLELOCK_UNLOCKED;
#endif
-struct cpu_info m88k_cpus[MAX_CPUS];
+struct cpu_info m88k_cpus[MAX_CPUS] = {
+#ifndef MULTIPROCESSOR
+ { .ci_flags = CIF_ALIVE | CIF_PRIMARY }
+#endif
+};
const struct cmmu_p *cmmu;
/*