Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/macppc Set PIR only if MULTIPROCESSOR is def...
details: https://anonhg.NetBSD.org/src/rev/90fa636dd85a
branches: trunk
changeset: 494520:90fa636dd85a
user: tsubai <tsubai%NetBSD.org@localhost>
date: Fri Jul 07 13:22:06 2000 +0000
description:
Set PIR only if MULTIPROCESSOR is defined.
diffstat:
sys/arch/macppc/macppc/cpu.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r fafcc3230223 -r 90fa636dd85a sys/arch/macppc/macppc/cpu.c
--- a/sys/arch/macppc/macppc/cpu.c Fri Jul 07 13:21:32 2000 +0000
+++ b/sys/arch/macppc/macppc/cpu.c Fri Jul 07 13:22:06 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.8 2000/07/06 22:56:23 tsubai Exp $ */
+/* $NetBSD: cpu.c,v 1.9 2000/07/07 13:22:06 tsubai Exp $ */
/*-
* Copyright (C) 1998, 1999 Internet Research Institute, Inc.
@@ -131,7 +131,9 @@
switch (id) {
case 0:
+#ifdef MULTIPROCESSOR
asm volatile ("mtspr 1023,%0" :: "r"(id)); /* PIR */
+#endif
identifycpu(model);
printf(": %s, ID %d (primary)", model, cpu_number());
break;
Home |
Main Index |
Thread Index |
Old Index