diff options
author | Jakob Odersky <jodersky@gmail.com> | 2014-04-03 18:48:59 +0200 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2014-04-03 18:48:59 +0200 |
commit | b6181e4a21b1bc3b5615604e175c6a297b661687 (patch) | |
tree | b9b47c10159eef591c6085ab49bee34e2b284b71 /kernel/task/include/task | |
parent | f93ab955074e213ad6f2bf60522cc86952d57d83 (diff) | |
download | mux-b6181e4a21b1bc3b5615604e175c6a297b661687.tar.gz mux-b6181e4a21b1bc3b5615604e175c6a297b661687.tar.bz2 mux-b6181e4a21b1bc3b5615604e175c6a297b661687.zip |
add uniform io interface
Diffstat (limited to 'kernel/task/include/task')
-rw-r--r-- | kernel/task/include/task/sched.h | 6 | ||||
-rw-r--r-- | kernel/task/include/task/task.h | 18 |
2 files changed, 1 insertions, 23 deletions
diff --git a/kernel/task/include/task/sched.h b/kernel/task/include/task/sched.h index 6dcd67c..b8946db 100644 --- a/kernel/task/include/task/sched.h +++ b/kernel/task/include/task/sched.h @@ -17,12 +17,6 @@ extern struct tcb_t* volatile current; */ extern struct list_head ready; -/** - * Stack pointer for operations performed out of task context, including any - * calls made after context save. - */ -extern void* volatile kstack; - /** * Makes the current task sleep on a specific queue. * This moves the current task to the given queue's tail. diff --git a/kernel/task/include/task/task.h b/kernel/task/include/task/task.h index 99f16dc..120bda4 100644 --- a/kernel/task/include/task/task.h +++ b/kernel/task/include/task/task.h @@ -4,18 +4,6 @@ #include "collection/list.h" /** - * Wakeup sources define the minimum power level - * at which a task that is waiting in a queue - * can be woken up - */ -enum wakeup_src { - WAKEUP_SRC_OFF = 0, //processor off, external interrupts may trigger this source - WAKEUP_SRC_CLOCK = 1, //main clock required - WAKEUP_SRC_IDLE = 2, //processor can be put in idle state - WAKEUP_SRC_ON = 3 //processor must stay on -}; - -/** * Task control block, contains runtime * information about tasks. */ @@ -38,9 +26,6 @@ struct tcb_t { /** ID of task. */ char id; - - enum wakeup_src wakeup_src; - }; /** @@ -55,8 +40,7 @@ struct tcb_t { .mem_high = _declared_stack_##name + stack_size - 1, \ .entry = entry_function, \ .queue = {}, \ - .id = pid, \ - .wakeup_src = WAKEUP_SRC_ON \ + .id = pid \ }; #endif
\ No newline at end of file |