aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/pcpu.h
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/amd64/include/pcpu.h
parente5bfdc768a9f812c5abf668c57a0aa00a992c38d (diff)
downloadsrc-70d12a18f21f17d8beb0fbead08f76ae36cc25e2.tar.gz
src-70d12a18f21f17d8beb0fbead08f76ae36cc25e2.zip
Export 'struct pcpu' to userland w/o requiring _KERNEL. A few ports
already define _KERNEL to get to this and I'm about to add hooks to libkvm to access per-CPU data. MFC after: 1 week
Notes
Notes: svn path=/head/; revision=181875
Diffstat (limited to 'sys/amd64/include/pcpu.h')
-rw-r--r--sys/amd64/include/pcpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/pcpu.h b/sys/amd64/include/pcpu.h
index 444109ebc9c7..fe811c57ec51 100644
--- a/sys/amd64/include/pcpu.h
+++ b/sys/amd64/include/pcpu.h
@@ -33,8 +33,6 @@
#error "sys/cdefs.h is a prerequisite for this file"
#endif
-#ifdef _KERNEL
-
/*
* The SMP parts are setup in pmap.c and locore.s for the BSP, and
* mp_machdep.c sets up the data for the AP's to "see" when they awake.
@@ -52,6 +50,8 @@
u_int pc_apic_id; \
u_int pc_acpi_id /* ACPI CPU id */
+#ifdef _KERNEL
+
#ifdef lint
extern struct pcpu *pcpup;