diff --git a/sys/arch/x86/include/lock.h b/sys/arch/x86/include/lock.h index 5e88789d8cb3..84485b8edf83 100644 --- a/sys/arch/x86/include/lock.h +++ b/sys/arch/x86/include/lock.h @@ -1,4 +1,4 @@ -/* $NetBSD: lock.h,v 1.24 2008/04/28 20:23:40 martin Exp $ */ +/* $NetBSD: lock.h,v 1.25 2009/01/15 01:20:31 pooka Exp $ */ /*- * Copyright (c) 2000, 2006 The NetBSD Foundation, Inc. @@ -36,6 +36,8 @@ #ifndef _X86_LOCK_H_ #define _X86_LOCK_H_ +#include + static __inline int __SIMPLELOCK_LOCKED_P(__cpu_simple_lock_t *__ptr) { @@ -62,7 +64,7 @@ __cpu_simple_lock_clear(__cpu_simple_lock_t *__ptr) *__ptr = __SIMPLELOCK_UNLOCKED; } -#ifdef _KERNEL +#ifdef _HARDKERNEL #include @@ -179,6 +181,6 @@ __cpu_simple_unlock(__cpu_simple_lock_t *lockp) *lockp = __SIMPLELOCK_UNLOCKED; } -#endif /* _KERNEL */ +#endif /* _HARDKERNEL */ #endif /* _X86_LOCK_H_ */