Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/allwinner Warn if a cpu failed to hatch.
details: https://anonhg.NetBSD.org/src/rev/d783a325df52
branches: trunk
changeset: 327676:d783a325df52
user: matt <matt%NetBSD.org@localhost>
date: Thu Mar 13 23:45:02 2014 +0000
description:
Warn if a cpu failed to hatch.
diffstat:
sys/arch/arm/allwinner/awin_board.c | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 247b031bc7b9 -r d783a325df52 sys/arch/arm/allwinner/awin_board.c
--- a/sys/arch/arm/allwinner/awin_board.c Thu Mar 13 23:44:31 2014 +0000
+++ b/sys/arch/arm/allwinner/awin_board.c Thu Mar 13 23:45:02 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: awin_board.c,v 1.11 2014/03/07 16:38:28 matt Exp $ */
+/* $NetBSD: awin_board.c,v 1.12 2014/03/13 23:45:02 matt Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: awin_board.c,v 1.11 2014/03/07 16:38:28 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_board.c,v 1.12 2014/03/13 23:45:02 matt Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -200,6 +200,14 @@
#ifdef VERBOSE_INIT_ARM
printf("%s: %d cpus present\n", __func__, arm_cpu_max);
#endif
+#if defined(MULTIPROCESSOR)
+ for (size_t i = 1; i < arm_cpu_max; i++) {
+ if ((arm_cpu_hatched & (1 << i)) == 0) {
+ printf("%s: warning: cpu%zu failed to hatch\n",
+ __func__, i);
+ }
+ }
+#endif
}
void
Home |
Main Index |
Thread Index |
Old Index