From d00e64542cb58b25cd67e8c3b682d0e07312f441 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Tue, 8 Jul 2014 23:19:51 +0200 Subject: added basic shell with one command. --- kernel/timer.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'kernel/timer.c') diff --git a/kernel/timer.c b/kernel/timer.c index 1f97c92..ee78bd5 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -35,6 +35,7 @@ static uint64_t timer64=0; static uint8_t timer8=0; +uint16_t timer16=0; // clock handler void int_clock_handler() @@ -43,6 +44,9 @@ void int_clock_handler() timer64++; + + +#ifdef DEBUG timer8++; // show point once every 1 second @@ -51,7 +55,14 @@ void int_clock_handler() scr_put_string("."); timer8=0; } +#endif + timer8++; + if(timer8==25) + { + timer16++; + timer8=0; + } // todo also the other pic!// TODO __asm__("mov $0x20, %al"); -- cgit v1.2.3