summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/pcpu.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-08-19 19:53:52 +0000
committerjhb <jhb@FreeBSD.org>2008-08-19 19:53:52 +0000
commitd90774443d556bbfad2e78eaba79c93230484234 (patch)
tree54a78b309ff5605f1b1c38a78d05a129df9f9940 /sys/i386/include/pcpu.h
parent6c10b95f591e34da2c498e8f2bccb35a4219ef75 (diff)
downloadFreeBSD-src-d90774443d556bbfad2e78eaba79c93230484234.zip
FreeBSD-src-d90774443d556bbfad2e78eaba79c93230484234.tar.gz
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
Diffstat (limited to 'sys/i386/include/pcpu.h')
-rw-r--r--sys/i386/include/pcpu.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/include/pcpu.h b/sys/i386/include/pcpu.h
index ea8ff46..5690e86 100644
--- a/sys/i386/include/pcpu.h
+++ b/sys/i386/include/pcpu.h
@@ -33,8 +33,6 @@
#error "sys/cdefs.h is a prerequisite for this file"
#endif
-#ifdef _KERNEL
-
#include <machine/segments.h>
#include <machine/tss.h>
@@ -82,6 +80,9 @@
int pc_private_tss /* Flag indicating private tss */
#endif
+
+#ifdef _KERNEL
+
#ifdef lint
extern struct pcpu *pcpup;
OpenPOWER on IntegriCloud