diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-09-08 22:14:26 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-09-08 22:14:26 +0200 |
| commit | db967b35d4c24000ef69283c2995010a08efb598 (patch) | |
| tree | be0a20b9a18c04429b85afe14abe97dfe4440752 /kernel/kernel.c | |
| parent | 52f3e224fb4d3e05202134f7747fdee00a03ed61 (diff) | |
working on mouse driver
Diffstat (limited to 'kernel/kernel.c')
| -rw-r--r-- | kernel/kernel.c | 16 |
1 files changed, 11 insertions, 5 deletions
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); + } } |
