Rev 814 | Rev 1066 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 814 | Rev 906 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | #include <typedefs.h> |
37 | #include <typedefs.h> |
38 | #include <time/timeout.h> |
38 | #include <time/timeout.h> |
39 | #include <synch/rwlock.h> |
39 | #include <synch/rwlock.h> |
40 | #include <config.h> |
40 | #include <config.h> |
41 | #include <adt/list.h> |
41 | #include <adt/list.h> |
- | 42 | #include <mm/slab.h> |
|
42 | 43 | ||
43 | #define THREAD_STACK_SIZE STACK_SIZE |
44 | #define THREAD_STACK_SIZE STACK_SIZE |
44 | 45 | ||
45 | #define THREAD_USER_STACK 1 |
46 | #define THREAD_USER_STACK 1 |
46 | 47 | ||
Line 80... | Line 81... | ||
80 | 81 | ||
81 | waitq_t *sleep_queue; /**< Wait queue in which this thread sleeps. */ |
82 | waitq_t *sleep_queue; /**< Wait queue in which this thread sleeps. */ |
82 | timeout_t sleep_timeout; /**< Timeout used for timeoutable sleeping. */ |
83 | timeout_t sleep_timeout; /**< Timeout used for timeoutable sleeping. */ |
83 | volatile int timeout_pending; /**< Flag signalling sleep timeout in progress. */ |
84 | volatile int timeout_pending; /**< Flag signalling sleep timeout in progress. */ |
84 | 85 | ||
85 | fpu_context_t saved_fpu_context; |
86 | fpu_context_t *saved_fpu_context; |
86 | int fpu_context_exists; |
87 | int fpu_context_exists; |
87 | 88 | ||
88 | /* |
89 | /* |
89 | * Defined only if thread doesn't run. |
90 | * Defined only if thread doesn't run. |
90 | * It means that fpu context is in CPU that last time executes this thread. |
91 | * It means that fpu context is in CPU that last time executes this thread. |
Line 133... | Line 134... | ||
133 | 134 | ||
134 | extern void thread_register_call_me(void (* call_me)(void *), void *call_me_with); |
135 | extern void thread_register_call_me(void (* call_me)(void *), void *call_me_with); |
135 | extern void thread_print_list(void); |
136 | extern void thread_print_list(void); |
136 | extern void thread_destroy(thread_t *t); |
137 | extern void thread_destroy(thread_t *t); |
137 | 138 | ||
- | 139 | ||
- | 140 | /* Fpu context slab cache */ |
|
- | 141 | extern slab_cache_t *fpu_context_slab; |
|
- | 142 | ||
138 | #endif |
143 | #endif |