diff options
author | Brian Behlendorf <[email protected]> | 2012-06-29 11:54:52 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2012-07-02 09:33:09 -0700 |
commit | 44e406d712bedc893e053ab3a7db8ff8a8be0790 (patch) | |
tree | 1624271a3147daa5ce9c4c65948b398ce8bbe5bd /include | |
parent | 50fe7a010c085f672d8dc6b8ef44fcadf4f704b0 (diff) |
PowerPC Compatibility
Usage of get_current() is not supported across all architectures.
The correct interface to use is the '#define current' which will
map to the appropriate function, usually current_thread_info().
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #119
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/sysmacros.h | 2 | ||||
-rw-r--r-- | include/sys/thread.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index 97257e078..04a62b196 100644 --- a/include/sys/sysmacros.h +++ b/include/sys/sysmacros.h @@ -71,7 +71,7 @@ #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ #define proc_pageout NULL -#define curproc get_current() +#define curproc current #define max_ncpus num_possible_cpus() #define CPU_SEQID smp_processor_id() #define _NOTE(x) diff --git a/include/sys/thread.h b/include/sys/thread.h index c5f4234da..3a708236c 100644 --- a/include/sys/thread.h +++ b/include/sys/thread.h @@ -50,7 +50,7 @@ typedef void (*thread_func_t)(void *); #func, arg, len, pp, state, pri) #define thread_exit() __thread_exit() #define thread_join(t) VERIFY(0) -#define curthread get_current() +#define curthread current extern kthread_t *__thread_create(caddr_t stk, size_t stksize, thread_func_t func, const char *name, |