Subversion Repositories HelenOS

Rev

Rev 2787 | Rev 2801 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2787 Rev 2799
Line 44... Line 44...
44
#include <adt/avl.h>
44
#include <adt/avl.h>
45
#include <mm/slab.h>
45
#include <mm/slab.h>
46
#include <arch/cpu.h>
46
#include <arch/cpu.h>
47
#include <mm/tlb.h>
47
#include <mm/tlb.h>
48
#include <proc/uarg.h>
48
#include <proc/uarg.h>
49
#include <tdebug/tdebug_type.h>
-
 
50
 
49
 
51
#define THREAD_STACK_SIZE   STACK_SIZE
50
#define THREAD_STACK_SIZE   STACK_SIZE
52
#define THREAD_NAME_BUFLEN  20
51
#define THREAD_NAME_BUFLEN  20
53
 
52
 
54
extern char *thread_states[];
53
extern char *thread_states[];
Line 202... Line 201...
202
    /** Architecture-specific data. */
201
    /** Architecture-specific data. */
203
    thread_arch_t arch;
202
    thread_arch_t arch;
204
 
203
 
205
    /** Thread's kernel stack. */
204
    /** Thread's kernel stack. */
206
    uint8_t *kstack;
205
    uint8_t *kstack;
207
 
-
 
208
    /** Task debugging stuff */
-
 
209
    thread_tdebug_t tdebug;
-
 
210
} thread_t;
206
} thread_t;
211
 
207
 
212
/** Thread list lock.
208
/** Thread list lock.
213
 *
209
 *
214
 * This lock protects the threads_tree.
210
 * This lock protects the threads_tree.
Line 250... Line 246...
250
extern void thread_print_list(void);
246
extern void thread_print_list(void);
251
extern void thread_destroy(thread_t *t);
247
extern void thread_destroy(thread_t *t);
252
extern void thread_update_accounting(void);
248
extern void thread_update_accounting(void);
253
extern bool thread_exists(thread_t *t);
249
extern bool thread_exists(thread_t *t);
254
 
250
 
255
extern thread_t *thread_find_by_id(thread_id_t id);
-
 
256
 
-
 
257
/** Fpu context slab cache. */
251
/** Fpu context slab cache. */
258
extern slab_cache_t *fpu_context_slab;
252
extern slab_cache_t *fpu_context_slab;
259
 
253
 
260
/* Thread syscall prototypes. */
254
/* Thread syscall prototypes. */
261
extern unative_t sys_thread_create(uspace_arg_t *uspace_uarg, char *uspace_name, thread_id_t *uspace_thread_id);
255
extern unative_t sys_thread_create(uspace_arg_t *uspace_uarg, char *uspace_name, thread_id_t *uspace_thread_id);