Just filling in more of the env.

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@32 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
behlendo 2008-03-08 00:58:32 +00:00
parent 05ae387b50
commit 12472b242d
4 changed files with 12 additions and 2 deletions

4
include/sys/attr.h Normal file
View File

@ -0,0 +1,4 @@
#ifndef _SPL_ATTR_H
#define _SPL_ATTR_H
#endif /* SPL_ATTR_H */

View File

@ -39,6 +39,7 @@ extern "C" {
#define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */
#define max_ncpus 64 #define max_ncpus 64
#define CPU_SEQID smp_processor_id() /* I think... */
#define _NOTE(x) #define _NOTE(x)
/* 0..MAX_PRIO-1: Process priority /* 0..MAX_PRIO-1: Process priority

4
include/sys/systeminfo.h Normal file
View File

@ -0,0 +1,4 @@
#ifndef _SPL_SYSTEMINFO_H
#define _SPL_SYSTEMINFO_H
#endif /* SPL_SYSTEMINFO_H */

View File

@ -27,12 +27,13 @@ extern "C" {
#endif #endif
#define thread_create(stk, stksize, func, arg, len, pp, state, pri) \ #define thread_create(stk, stksize, func, arg, len, pp, state, pri) \
__thread_create(stk, stksize, func, arg, len, pp, state, pri) __thread_create(stk, stksize, (void (*)(void *))func, \
arg, len, pp, state, pri)
#define thread_exit() __thread_exit() #define thread_exit() __thread_exit()
#define curthread get_current() #define curthread get_current()
extern kthread_t *__thread_create(caddr_t stk, size_t stksize, extern kthread_t *__thread_create(caddr_t stk, size_t stksize,
void (*proc)(void *), void *args, void (*func)(void *), void *args,
size_t len, int *pp, int state, size_t len, int *pp, int state,
pri_t pri); pri_t pri);
extern void __thread_exit(void); extern void __thread_exit(void);