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.
This commit is contained in:
parent
488f603517
commit
b8a6a61f01
@ -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 @@ struct intrhand {
|
||||
#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 @@ void x86_ipi_handler(void);
|
||||
|
||||
extern void (*ipifunc[X86_NIPI])(struct cpu_info *);
|
||||
|
||||
#endif /* _KERNEL */
|
||||
|
||||
#endif /* !_LOCORE */
|
||||
|
||||
#endif /* !_X86_INTR_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user