PERFORCE change 132007 for review
John Birrell
jb at FreeBSD.org
Sat Dec 29 18:22:05 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=132007
Change 132007 by jb at 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,
More information about the p4-projects
mailing list