Wrap stuff in #ifdef _KERNEL

This commit is contained in:
ad 2008-05-11 16:57:43 +00:00
parent 3083736b7e
commit 9188c0738a
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.55 2008/05/11 15:32:20 ad Exp $ */
/* $NetBSD: cpu.h,v 1.56 2008/05/11 16:57:43 ad Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -39,6 +39,8 @@
#include <x86/cpu.h>
#ifdef _KERNEL
#if defined(__GNUC__) && !defined(_LKM)
static struct cpu_info *x86_curcpu(void);
static lwp_t *x86_curlwp(void);
@ -85,4 +87,6 @@ cpu_set_curpri(int pri)
#define CLKF_INTR(frame) (curcpu()->ci_idepth > 0)
#define LWP_PC(l) ((l)->l_md.md_regs->tf_rip)
#endif /* _KERNEL */
#endif /* !_AMD64_CPU_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.173 2008/05/11 15:32:20 ad Exp $ */
/* $NetBSD: cpu.h,v 1.174 2008/05/11 16:57:43 ad Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -39,6 +39,8 @@
#include <x86/cpu.h>
#ifdef _KERNEL
#if defined(__GNUC__) && !defined(_LKM)
static struct cpu_info *x86_curcpu(void);
static lwp_t *x86_curlwp(void);
@ -83,4 +85,6 @@ cpu_set_curpri(int pri)
#define CLKF_INTR(frame) (curcpu()->ci_idepth > 0)
#define LWP_PC(l) ((l)->l_md.md_regs->tf_eip)
#endif /* _KERNEL */
#endif /* !_I386_CPU_H_ */