diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/processor.h | 8 | ||||
-rw-r--r-- | include/sys/systm.h | 2 | ||||
-rw-r--r-- | include/sys/types.h | 1 |
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 */ |