diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-08-30 20:28:07 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-08-30 20:28:07 +0200 |
| commit | 7e35ac6593bce5ed3f0a00a2483bc82e23bb9fb9 (patch) | |
| tree | 00dc49705e3980e46a575fabd4af839b3cd5d3d9 /kernel/task.c | |
| parent | 38aa3f316ce503e2da52b86c4a8976a3cdaf54d5 (diff) | |
added logging of stack address of new tasks
Diffstat (limited to 'kernel/task.c')
| -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 |
