Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/bebox/include Include bebox.h only in kernel. Make ...



details:   https://anonhg.NetBSD.org/src/rev/2e1f36664280
branches:  trunk
changeset: 782349:2e1f36664280
user:      rkujawa <rkujawa%NetBSD.org@localhost>
date:      Mon Oct 29 14:13:22 2012 +0000

description:
Include bebox.h only in kernel. Make bebox port build again.

diffstat:

 sys/arch/bebox/include/cpu.h |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 1396138e0575 -r 2e1f36664280 sys/arch/bebox/include/cpu.h
--- a/sys/arch/bebox/include/cpu.h      Mon Oct 29 14:09:38 2012 +0000
+++ b/sys/arch/bebox/include/cpu.h      Mon Oct 29 14:13:22 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.14 2012/10/20 14:53:37 kiyohara Exp $        */
+/*     $NetBSD: cpu.h,v 1.15 2012/10/29 14:13:22 rkujawa Exp $ */
 
 /*
  * Copyright (C) 1995-1997 Wolfgang Solfrank.
@@ -36,16 +36,17 @@
 #if defined(_KERNEL) && !defined(_MODULE)
 #define        CPU_MAXNUM      2
 extern char bootpath[];
-#endif
 
 #ifdef MULTIPROCESSOR
 #define MD_TLBSYNC()   bebox_tlbisync()
 #endif
 
 #include <machine/bebox.h>
+#endif
 
 #include <powerpc/cpu.h>
 
+#if defined(_KERNEL) && !defined(_MODULE)
 static __inline void
 bebox_tlbisync(void)
 {
@@ -57,5 +58,6 @@
        /* Deassert #TLBISYNC */
        SET_BEBOX_REG(CPU_CONTROL, TLBISYNC_FROM(cpuid));
 }
+#endif
 
 #endif /* _BEBOX_CPU_H_ */



Home | Main Index | Thread Index | Old Index