Add 3 missing typedefs.

Add processorid_t, pc_t, index_t.
This commit is contained in:
Brian Behlendorf 2010-05-14 09:42:53 -07:00
parent a76df2dc0f
commit 8e2140b770
3 changed files with 11 additions and 0 deletions

8
include/sys/processor.h Normal file
View File

@ -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 */

View File

@ -3,4 +3,6 @@
#include <sys/sunddi.h>
typedef uintptr_t pc_t;
#endif /* SPL_SYSTM_H */

View File

@ -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 */