From db967b35d4c24000ef69283c2995010a08efb598 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Mon, 8 Sep 2014 22:14:26 +0200 Subject: working on mouse driver --- kernel/kernel.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'kernel/kernel.c') diff --git a/kernel/kernel.c b/kernel/kernel.c index ae5036a..f8b6571 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -142,15 +142,13 @@ void kernel_main(uint32_t initial_stack, int mp) // init spinlocks init_spinlocks(); - // - //vesa_init_doublebuff(); // // Start the other Processors (also before paging !) // smp_log_procdata(&procdata); - smp_start_aps(&procdata,0x80000); // starts at 0x90000 +// smp_start_aps(&procdata,0x80000); // starts at 0x90000 // but it will be copied over mbr @@ -194,14 +192,22 @@ void kernel_main(uint32_t initial_stack, int mp) // For now this starts three "tasks" which are scheduled // round robin style. // - task_init(); + //task_init(); // // Just hang around here, if its reached. // we do our tasks anyway. on the next clock tick. // - while(1)asm("hlt"); + // + //vesa_init_doublebuff(); + while(1) + { + + // lock_spin(0); +// log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"x: %d y:%d",mouse_get_x(), mouse_get_y()); + // lock_release(0); + } } -- cgit v1.2.3