From d90774443d556bbfad2e78eaba79c93230484234 Mon Sep 17 00:00:00 2001 From: jhb Date: Tue, 19 Aug 2008 19:53:52 +0000 Subject: 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 --- sys/sparc64/include/pcpu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/sparc64') diff --git a/sys/sparc64/include/pcpu.h b/sys/sparc64/include/pcpu.h index 04f5ee6..91c1e5d 100644 --- a/sys/sparc64/include/pcpu.h +++ b/sys/sparc64/include/pcpu.h @@ -30,8 +30,6 @@ #ifndef _MACHINE_PCPU_H_ #define _MACHINE_PCPU_H_ -#ifdef _KERNEL - #include #include #include @@ -59,6 +57,8 @@ struct pmap; u_int pc_tlb_ctx_max; \ u_int pc_tlb_ctx_min +#ifdef _KERNEL + struct pcb; struct pcpu; -- cgit v1.1