diff options
| -rw-r--r-- | kernel/task.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/task.c b/kernel/task.c index df9367d..1515c5b 100644 --- a/kernel/task.c +++ b/kernel/task.c @@ -56,6 +56,7 @@ void task_create(int pid,void(*thread)()) Threads[pid].esp0 = pmmngr_alloc_block(); stack = (unsigned int*)Threads[pid].esp0+4000; //This makes a pointer to the stack for us + log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"new task : stack: 0x%08X ", stack); //First, this stuff is pushed by the processor *--stack = 0x0202; //This is EFLAGS |
