Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/include The spl inline functions refer to exter...



details:   https://anonhg.NetBSD.org/src/rev/30cbfb7f372d
branches:  trunk
changeset: 754515:30cbfb7f372d
user:      plunky <plunky%NetBSD.org@localhost>
date:      Sun May 02 18:03:31 2010 +0000

description:
The spl inline functions refer to external symbols that are only
defined in the kernel.

Wrap kernel-specific declarations in #ifdef _KERNEL to avoid unresolved
references when including from userland.

diffstat:

 sys/arch/x86/include/intr.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r da5d99ec9b51 -r 30cbfb7f372d sys/arch/x86/include/intr.h
--- a/sys/arch/x86/include/intr.h       Sun May 02 17:37:52 2010 +0000
+++ b/sys/arch/x86/include/intr.h       Sun May 02 18:03:31 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.h,v 1.40 2010/04/25 16:10:51 ad Exp $     */
+/*     $NetBSD: intr.h,v 1.41 2010/05/02 18:03:31 plunky Exp $ */
 
 /*-
  * Copyright (c) 1998, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -112,6 +112,8 @@
 #define IMASK(ci,level) (ci)->ci_imask[(level)]
 #define IUNMASK(ci,level) (ci)->ci_iunmask[(level)]
 
+#ifdef _KERNEL
+
 void Xspllower(int);
 void spllower(int);
 int splraise(int);
@@ -185,6 +187,8 @@
 
 extern void (*ipifunc[X86_NIPI])(struct cpu_info *);
 
+#endif /* _KERNEL */
+
 #endif /* !_LOCORE */
 
 #endif /* !_X86_INTR_H_ */



Home | Main Index | Thread Index | Old Index