From 8e2140b770152df7aa91e495f11a73308bfc6c13 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 14 May 2010 09:42:53 -0700 Subject: [PATCH] Add 3 missing typedefs. Add processorid_t, pc_t, index_t. --- include/sys/processor.h | 8 ++++++++ include/sys/systm.h | 2 ++ include/sys/types.h | 1 + 3 files changed, 11 insertions(+) create mode 100644 include/sys/processor.h 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 +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 */