Mercurial > lcfOS
diff kernel/process.c3 @ 408:ad6be5454067
Added image build task
author | Windel Bouwman |
---|---|
date | Sat, 21 Feb 2015 12:17:47 +0100 |
parents | 9eb1fc6aad6c |
children | 6aa9743ed362 |
line wrap: on
line diff
--- a/kernel/process.c3 Fri Feb 20 15:47:54 2015 +0100 +++ b/kernel/process.c3 Sat Feb 21 12:17:47 2015 +0100 @@ -14,6 +14,7 @@ var process_t* first_process; var process_t* last_process; var int next_pid; +var process_t* current; function void init() { @@ -69,3 +70,17 @@ return 0; } + +function void execute_next() +{ + var process.process_t *old; + + old = 0; + + if (old != current) + { + //execute(current); + } + + kernel.panic(); +}