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 make this compile again.



details:   https://anonhg.NetBSD.org/src/rev/7410fce97ef6
branches:  trunk
changeset: 319012:7410fce97ef6
user:      christos <christos%NetBSD.org@localhost>
date:      Sun May 13 14:55:35 2018 +0000
description:
make this compile again.

diffstat:

 sys/arch/macppc/macppc/cpu.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r dabac9070f4d -r 7410fce97ef6 sys/arch/macppc/macppc/cpu.c
--- a/sys/arch/macppc/macppc/cpu.c      Sun May 13 14:45:23 2018 +0000
+++ b/sys/arch/macppc/macppc/cpu.c      Sun May 13 14:55:35 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.64 2018/05/11 22:48:38 macallan Exp $        */
+/*     $NetBSD: cpu.c,v 1.65 2018/05/13 14:55:35 christos Exp $        */
 
 /*-
  * Copyright (c) 2001 Tsubai Masanari.
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.64 2018/05/11 22:48:38 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.65 2018/05/13 14:55:35 christos Exp $");
 
 #include "opt_ppcparam.h"
 #include "opt_multiprocessor.h"
@@ -204,8 +204,13 @@
 
 #ifdef MULTIPROCESSOR
 
+#if NPIC_U3_HT > 0
 extern int have_u3_ht(void);
 extern void __u3_ht_set_priority(int, int);
+#else
+#define have_u3_ht() 0
+#define __u3_ht_set_priority(a, b)
+#define 
 
 int
 md_setup_trampoline(volatile struct cpu_hatch_data *h, struct cpu_info *ci)



Home | Main Index | Thread Index | Old Index