Rev 1005 | Rev 1159 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1005 | Rev 1062 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | #include <ipc/ipc.h> |
35 | #include <ipc/ipc.h> |
36 | 36 | ||
37 | /** Task structure. */ |
37 | /** Task structure. */ |
38 | struct task { |
38 | struct task { |
39 | SPINLOCK_DECLARE(lock); |
39 | SPINLOCK_DECLARE(lock); |
- | 40 | char *name; |
|
40 | link_t th_head; /**< List of threads contained in this task. */ |
41 | link_t th_head; /**< List of threads contained in this task. */ |
41 | link_t tasks_link; /**< Link to other tasks within the system. */ |
42 | link_t tasks_link; /**< Link to other tasks within the system. */ |
42 | as_t *as; /**< Address space. */ |
43 | as_t *as; /**< Address space. */ |
43 | task_id_t taskid; /**< Unique identity of task */ |
44 | task_id_t taskid; /**< Unique identity of task */ |
44 | 45 | ||
Line 50... | Line 51... | ||
50 | 51 | ||
51 | extern spinlock_t tasks_lock; |
52 | extern spinlock_t tasks_lock; |
52 | extern link_t tasks_head; |
53 | extern link_t tasks_head; |
53 | 54 | ||
54 | extern void task_init(void); |
55 | extern void task_init(void); |
55 | extern task_t *task_create(as_t *as); |
56 | extern task_t *task_create(as_t *as, char *name); |
56 | extern task_t *task_run_program(void * program_addr); |
57 | extern task_t *task_run_program(void *program_addr, char *name); |
57 | 58 | ||
58 | #endif |
59 | #endif |