Rev 2927 | Rev 3004 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2927 | Rev 3001 | ||
---|---|---|---|
Line 110... | Line 110... | ||
110 | } task_t; |
110 | } task_t; |
111 | 111 | ||
112 | SPINLOCK_EXTERN(tasks_lock); |
112 | SPINLOCK_EXTERN(tasks_lock); |
113 | extern avltree_t tasks_tree; |
113 | extern avltree_t tasks_tree; |
114 | 114 | ||
- | 115 | extern void *program_loader; |
|
- | 116 | ||
115 | extern void task_init(void); |
117 | extern void task_init(void); |
116 | extern void task_done(void); |
118 | extern void task_done(void); |
117 | extern task_t *task_create(as_t *as, char *name); |
119 | extern task_t *task_create(as_t *as, char *name); |
118 | extern void task_destroy(task_t *t); |
120 | extern void task_destroy(task_t *t); |
119 | extern task_t *task_run_program(void *program_addr, char *name); |
121 | extern task_t *task_create_from_as(as_t *as, uintptr_t entry_addr, char *name); |
- | 122 | extern int task_parse_initial(void *program_addr, char *name, task_t **task); |
|
- | 123 | extern task_t *task_create_from_loader(char *name); |
|
- | 124 | extern void task_ready(task_t *t); |
|
120 | extern task_t *task_find_by_id(task_id_t id); |
125 | extern task_t *task_find_by_id(task_id_t id); |
121 | extern int task_kill(task_id_t id); |
126 | extern int task_kill(task_id_t id); |
122 | extern uint64_t task_get_accounting(task_t *t); |
127 | extern uint64_t task_get_accounting(task_t *t); |
123 | 128 | ||
- | 129 | ||
124 | extern void cap_set(task_t *t, cap_t caps); |
130 | extern void cap_set(task_t *t, cap_t caps); |
125 | extern cap_t cap_get(task_t *t); |
131 | extern cap_t cap_get(task_t *t); |
126 | 132 | ||
127 | #ifndef task_create_arch |
133 | #ifndef task_create_arch |
128 | extern void task_create_arch(task_t *t); |
134 | extern void task_create_arch(task_t *t); |
Line 131... | Line 137... | ||
131 | #ifndef task_destroy_arch |
137 | #ifndef task_destroy_arch |
132 | extern void task_destroy_arch(task_t *t); |
138 | extern void task_destroy_arch(task_t *t); |
133 | #endif |
139 | #endif |
134 | 140 | ||
135 | extern unative_t sys_task_get_id(task_id_t *uspace_task_id); |
141 | extern unative_t sys_task_get_id(task_id_t *uspace_task_id); |
- | 142 | extern unative_t sys_task_spawn(task_id_t *uspace_task_id); |
|
136 | 143 | ||
137 | #endif |
144 | #endif |
138 | 145 | ||
139 | /** @} |
146 | /** @} |
140 | */ |
147 | */ |