Date: Sun, 30 Dec 2007 02:22:04 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 132007 for review Message-ID: <200712300222.lBU2M4FL065597@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=132007 Change 132007 by jb@jb_freebsd1 on 2007/12/30 02:21:15 Add some extra definitions. solaris_cpu_t contains the fields that would be added to struct pcpu if it was clear that wouldn't be a license violation. Opinions vary on that. Doing it this way is the safest option, albeit a little inconvenient at times. Affected files ... .. //depot/projects/dtrace/src/sys/compat/opensolaris/sys/cpuvar.h#4 edit Differences ... ==== //depot/projects/dtrace/src/sys/compat/opensolaris/sys/cpuvar.h#4 (text+ko) ==== @@ -30,6 +30,21 @@ #include <sys/mutex.h> #ifdef _KERNEL + +struct cyc_cpu; + +typedef struct { + int cpuid; + struct cyc_cpu *cpu_cyclic; + uint32_t cpu_flags; + uint_t cpu_intr_actv; +} solaris_cpu_t; + +/* Some code may choose to redefine this if pcpu_t would be more useful. */ +#define cpu_t solaris_cpu_t + +extern solaris_cpu_t solaris_cpu[]; + #define CPU_CACHE_COHERENCE_SIZE 64 /* @@ -120,6 +135,8 @@ CPU_DTRACE_BADSTACK) #define CPU_DTRACE_ERROR (CPU_DTRACE_FAULT | CPU_DTRACE_DROP) +extern kmutex_t cpu_lock; + typedef enum { CPU_INIT, CPU_CONFIG,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200712300222.lBU2M4FL065597>