summaryrefslogtreecommitdiff
path: root/kernel/timer.c
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-07-08 23:19:51 +0200
committerMichal Idziorek <m.i@gmx.at>2014-07-08 23:19:51 +0200
commitd00e64542cb58b25cd67e8c3b682d0e07312f441 (patch)
tree725231947c9425e0aae45fb674f8c02a955e7632 /kernel/timer.c
parent1d5e33d5cc2c68dbe63d9a889432316a514a6fd6 (diff)
added basic shell with one command.
Diffstat (limited to 'kernel/timer.c')
-rw-r--r--kernel/timer.c11
1 files changed, 11 insertions, 0 deletions
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");