Rev 623 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 623 | Rev 624 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | #include <arch.h> |
35 | #include <arch.h> |
36 | #include <panic.h> |
36 | #include <panic.h> |
37 | #include <list.h> |
37 | #include <list.h> |
38 | 38 | ||
39 | SPINLOCK_INITIALIZE(tasks_lock); |
39 | SPINLOCK_INITIALIZE(tasks_lock); |
40 | link_t tasks_head; |
40 | LIST_INITIALIZE(tasks_head); |
41 | - | ||
42 | 41 | ||
43 | /** Initialize tasks |
42 | /** Initialize tasks |
44 | * |
43 | * |
45 | * Initialize kernel tasks support. |
44 | * Initialize kernel tasks support. |
46 | * |
45 | * |
47 | */ |
46 | */ |
48 | void task_init(void) |
47 | void task_init(void) |
49 | { |
48 | { |
50 | TASK = NULL; |
49 | TASK = NULL; |
51 | list_initialize(&tasks_head); |
- | |
52 | } |
50 | } |
53 | 51 | ||
54 | 52 | ||
55 | /** Create new task |
53 | /** Create new task |
56 | * |
54 | * |