summaryrefslogtreecommitdiffstats
path: root/sys/arm
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/arm
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/arm')
-rw-r--r--sys/arm/include/pcpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arm/include/pcpu.h b/sys/arm/include/pcpu.h
index 8388ba6..387035c 100644
--- a/sys/arm/include/pcpu.h
+++ b/sys/arm/include/pcpu.h
@@ -38,6 +38,8 @@
struct vmspace;
+#endif /* _KERNEL */
+
/*
* Inside the kernel, the globally reserved register g7 is used to
* point at the globaldata structure.
@@ -45,6 +47,8 @@ struct vmspace;
#define PCPU_MD_FIELDS \
struct pcup *pc_prvspace;
+#ifdef _KERNEL
+
struct pcb;
struct pcpu;
OpenPOWER on IntegriCloud