aboutsummaryrefslogtreecommitdiff
path: root/sys/mips
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2008-08-19 19:53:52 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2008-08-19 19:53:52 +0000
commit70d12a18f21f17d8beb0fbead08f76ae36cc25e2 (patch)
tree54a78b309ff5605f1b1c38a78d05a129df9f9940 /sys/mips
parente5bfdc768a9f812c5abf668c57a0aa00a992c38d (diff)
Notes
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/include/pcpu.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/mips/include/pcpu.h b/sys/mips/include/pcpu.h
index fb2951b40995..5fe2b22a81c0 100644
--- a/sys/mips/include/pcpu.h
+++ b/sys/mips/include/pcpu.h
@@ -31,9 +31,8 @@
#ifndef _MACHINE_PCPU_H_
#define _MACHINE_PCPU_H_
-#ifdef _KERNEL
-
#include <machine/pte.h>
+
#define PCPU_MD_FIELDS \
pd_entry_t *pc_segbase; /* curthread segbase */ \
struct pmap *pc_curpmap; /* pmap of curthread */ \
@@ -42,6 +41,8 @@
u_int pc_pending_ipis; /* the IPIs pending to this CPU */ \
void *pc_boot_stack;
+#ifdef _KERNEL
+
#ifdef SMP
static __inline struct pcpu*
get_pcpup(void)