From 7e35ac6593bce5ed3f0a00a2483bc82e23bb9fb9 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Sat, 30 Aug 2014 20:28:07 +0200 Subject: added logging of stack address of new tasks --- kernel/task.c | 1 + 1 file changed, 1 insertion(+) (limited to 'kernel') 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 -- cgit v1.2.3