Subversion Repositories HelenOS

Rev

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

Rev 3022 Rev 4055
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 <udebug/udebug.h>
49
 
50
 
50
#define THREAD_STACK_SIZE   STACK_SIZE
51
#define THREAD_STACK_SIZE   STACK_SIZE
51
#define THREAD_NAME_BUFLEN  20
52
#define THREAD_NAME_BUFLEN  20
52
 
53
 
53
extern char *thread_states[];
54
extern char *thread_states[];
Line 201... Line 202...
201
    /** Architecture-specific data. */
202
    /** Architecture-specific data. */
202
    thread_arch_t arch;
203
    thread_arch_t arch;
203
 
204
 
204
    /** Thread's kernel stack. */
205
    /** Thread's kernel stack. */
205
    uint8_t *kstack;
206
    uint8_t *kstack;
-
 
207
 
-
 
208
#ifdef CONFIG_UDEBUG
-
 
209
    /** Debugging stuff */
-
 
210
    udebug_thread_t udebug;
-
 
211
#endif
-
 
212
 
206
} thread_t;
213
} thread_t;
207
 
214
 
208
/** Thread list lock.
215
/** Thread list lock.
209
 *
216
 *
210
 * This lock protects the threads_tree.
217
 * This lock protects the threads_tree.
Line 250... Line 257...
250
 
257
 
251
/** Fpu context slab cache. */
258
/** Fpu context slab cache. */
252
extern slab_cache_t *fpu_context_slab;
259
extern slab_cache_t *fpu_context_slab;
253
 
260
 
254
/* Thread syscall prototypes. */
261
/* Thread syscall prototypes. */
255
extern unative_t sys_thread_create(uspace_arg_t *uspace_uarg, char *uspace_name, thread_id_t *uspace_thread_id);
262
extern unative_t sys_thread_create(uspace_arg_t *uspace_uarg,
-
 
263
    char *uspace_name, size_t name_len, thread_id_t *uspace_thread_id);
256
extern unative_t sys_thread_exit(int uspace_status);
264
extern unative_t sys_thread_exit(int uspace_status);
257
extern unative_t sys_thread_get_id(thread_id_t *uspace_thread_id);
265
extern unative_t sys_thread_get_id(thread_id_t *uspace_thread_id);
258
 
266
 
259
#endif
267
#endif
260
 
268