From d8331335ff1720ce28eba45afe1a02814b38b033 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 1 Dec 2014 21:49:22 +0100 Subject: finally implemented fork() syscall --- kernel/kernel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'kernel/kernel.c') diff --git a/kernel/kernel.c b/kernel/kernel.c index 5e52a68..a0aaa7f 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -48,6 +48,7 @@ void __stack_chk_fail(void) // mp informs us if this if this is the main processor void kernel_main(uint32_t initial_stack, int mp) { + log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"initial_stack: 0x%08X",initial_stack); // // Configuring the PIT timer. // @@ -97,8 +98,8 @@ void kernel_main(uint32_t initial_stack, int mp) panic(FOOLOS_MODULE_NAME,"ACPI and MP search failed! I do not want to continue!"); */ - task_init(); - while(1); + task_init(); //; this will never return! + // load and run foolshell // we will come back into the kernel only on interrupts... -- cgit v1.2.3