Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/mpc6xx If we get a secondary CPU on a non-M...
details: https://anonhg.NetBSD.org/src/rev/0dec1c426a13
branches: trunk
changeset: 516346:0dec1c426a13
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Oct 22 01:45:51 2001 +0000
description:
If we get a secondary CPU on a non-MP kernel, bail out early
and print a message about why. This prevents the primary CPU's
cpu_info from being scribbled over w/ secondary CPU info.
diffstat:
sys/arch/powerpc/mpc6xx/cpu_subr.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (30 lines):
diff -r d3b250b66677 -r 0dec1c426a13 sys/arch/powerpc/mpc6xx/cpu_subr.c
--- a/sys/arch/powerpc/mpc6xx/cpu_subr.c Mon Oct 22 00:55:00 2001 +0000
+++ b/sys/arch/powerpc/mpc6xx/cpu_subr.c Mon Oct 22 01:45:51 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_subr.c,v 1.2 2001/10/20 08:23:49 billc Exp $ */
+/* $NetBSD: cpu_subr.c,v 1.3 2001/10/22 01:45:51 thorpej Exp $ */
/*-
* Copyright (c) 2001 Matt Thomas.
@@ -68,8 +68,20 @@
#ifdef MULTIPROCESSOR
ci = &cpu_info[id];
#else
+ /*
+ * If this isn't the primary CPU, print an error message
+ * and just bail out.
+ */
+ if (id != 0) {
+ printf(": ID %d\n", id);
+ printf("%s: processor off-line; multiprocessor support "
+ "not present in kernel\n", self->dv_xname);
+ return (NULL);
+ }
+
ci = &cpu_info_store;
#endif
+
ci->ci_cpuid = id;
ci->ci_intrdepth = -1;
ci->ci_dev = self;
Home |
Main Index |
Thread Index |
Old Index