Module Name:    src
Committed By:   plunky
Date:           Sun May  2 18:03:31 UTC 2010

Modified Files:
        src/sys/arch/x86/include: intr.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/arch/x86/include/intr.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/include/intr.h
diff -u src/sys/arch/x86/include/intr.h:1.40 src/sys/arch/x86/include/intr.h:1.41
--- src/sys/arch/x86/include/intr.h:1.40	Sun Apr 25 16:10:51 2010
+++ src/sys/arch/x86/include/intr.h	Sun May  2 18:03:31 2010
@@ -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_ */

Reply via email to