diff --git a/include/sys/processor.h b/include/sys/processor.h new file mode 100644 index 0000000000..65285868a1 --- /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 1fb367a9b5..68bd9badfc 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 771e8f36e3..2804974ddb 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 */