From 3d1f0b2cc16ba6a5bb1d47e24f4bb9e33a7e1aaf Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 17 Nov 2014 21:21:07 +0100 Subject: minor fixes and testing --- kernel/kernel.c | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) (limited to 'kernel/kernel.c') diff --git a/kernel/kernel.c b/kernel/kernel.c index 5628e84..b45703a 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -8,7 +8,6 @@ #include "lib/buffer/ringbuffer.h" #include "smp.h" -#include "time.h" #include "timer.h" #include "spinlock.h" #include "syscalls.h" @@ -80,22 +79,22 @@ void kernel_main(uint32_t initial_stack, int mp) /////////////////// BULLSHIT ABOVE THIS LINE: TODO: CLEANUP // - // init system log ringbugger - // - log_init(); + // Print initial address of the esp stack pointer + // + log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"initial esp: 0x%08X",initial_stack); - // - // The System Time // - task_system_clock=0; - + // Configuring the PIT timer. + // + timer_init(); + // // Memory Init // // after this is set up we will be able to allocate and deallocate // blocks of physical memory :) // - // we know that here, the bootloader placed the mamory map and + // we know that here, the bootloader placed the memory map and // the number of entries. // mem_init(0x7c00+1,*((uint16_t *)(0x7c00))); @@ -108,21 +107,12 @@ void kernel_main(uint32_t initial_stack, int mp) // log buffered messages to console log_log(); - // - // Print initial address of the esp stack pointer - // - log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"initial esp: 0x%08X",initial_stack); - // // Setup PIC // log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"setting up PIC."); pic_setup(); - // - // Configuring the PIT timer. - // - timer_init(); // mouse and kb driver init (before interrupts) // mouse_init(); -- cgit v1.2.3