aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-05-14 09:42:53 -0700
committerBrian Behlendorf <[email protected]>2010-05-14 09:42:53 -0700
commit8e2140b770152df7aa91e495f11a73308bfc6c13 (patch)
tree4bf2d8eb2e02f0f71b88a344871d89dfa6525730 /include/sys
parenta76df2dc0fde313d1ecaab61d0dcd46c3cdd6151 (diff)
Add 3 missing typedefs.
Add processorid_t, pc_t, index_t.
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/processor.h8
-rw-r--r--include/sys/systm.h2
-rw-r--r--include/sys/types.h1
3 files changed, 11 insertions, 0 deletions
diff --git a/include/sys/processor.h b/include/sys/processor.h
new file mode 100644
index 000000000..65285868a
--- /dev/null
+++ b/include/sys/processor.h
@@ -0,0 +1,8 @@
+#ifndef _SPL_PROCESSOR_H
+#define _SPL_PROCESSOR_H
+
+#define getcpuid() smp_processor_id()
+
+typedef int processorid_t;
+
+#endif /* _SPL_PROCESSOR_H */
diff --git a/include/sys/systm.h b/include/sys/systm.h
index 1fb367a9b..68bd9badf 100644
--- a/include/sys/systm.h
+++ b/include/sys/systm.h
@@ -3,4 +3,6 @@
#include <sys/sunddi.h>
+typedef uintptr_t pc_t;
+
#endif /* SPL_SYSTM_H */
diff --git a/include/sys/types.h b/include/sys/types.h
index 771e8f36e..2804974dd 100644
--- a/include/sys/types.h
+++ b/include/sys/types.h
@@ -57,5 +57,6 @@ typedef uint_t minor_t;
typedef ulong_t pfn_t;
typedef ulong_t pgcnt_t;
typedef long spgcnt_t;
+typedef short index_t;
#endif /* _SPL_TYPES_H */