Rev 1 | Rev 35 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1 | Rev 15 | ||
---|---|---|---|
Line 38... | Line 38... | ||
38 | spinlock_t tasks_lock; |
38 | spinlock_t tasks_lock; |
39 | link_t tasks_head; |
39 | link_t tasks_head; |
40 | 40 | ||
41 | void task_init(void) |
41 | void task_init(void) |
42 | { |
42 | { |
43 | the->task = NULL; |
43 | TASK = NULL; |
44 | spinlock_initialize(&tasks_lock); |
44 | spinlock_initialize(&tasks_lock); |
45 | list_initialize(&tasks_head); |
45 | list_initialize(&tasks_head); |
46 | } |
46 | } |
47 | 47 | ||
48 | task_t *task_create(vm_t *m) |
48 | task_t *task_create(vm_t *m) |