diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-11-17 21:21:07 +0100 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-11-17 21:21:07 +0100 |
| commit | 3d1f0b2cc16ba6a5bb1d47e24f4bb9e33a7e1aaf (patch) | |
| tree | 4e9f4e18563985c20b3406fe0f4241bf90674a2b /kernel/task.c | |
| parent | 3e151cb6371ecba06e21c3e56e0a95c8af4e93f9 (diff) | |
minor fixes and testing
Diffstat (limited to 'kernel/task.c')
| -rw-r--r-- | kernel/task.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/task.c b/kernel/task.c index 29ccaa4..6d571cb 100644 --- a/kernel/task.c +++ b/kernel/task.c @@ -5,6 +5,7 @@ #include "lib/logger/log.h" // logger facilities #include "lib/int/stdint.h" #include "mem.h" +#include "timer.h" #include "syscalls.h" #include "fs/fs.h" @@ -12,7 +13,6 @@ #define FOOLOS_MODULE_NAME "task" int started; -uint64_t task_system_clock; static uint32_t c1,c2,c3; @@ -99,8 +99,7 @@ void task_create(int pid,void(*thread)()) uint32_t task_switch_next(uint32_t oldesp) { - task_system_clock++; - + timer_tick(); if(started!=0xabcde) return oldesp; if(CurrentTask!=-1)Threads[CurrentTask].esp0=oldesp; |
