summaryrefslogtreecommitdiff
path: root/kernel/timer.c
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-09-04 15:16:13 +0200
committerMichal Idziorek <m.i@gmx.at>2014-09-04 15:16:13 +0200
commit06e382afcbf199e5e4ec92574a3872ab04fb6e9e (patch)
tree08bb57d147d31cd4eefc26567849b1c6a2dbbe7f /kernel/timer.c
parent706d8edc5abf15960ff8bebf9a2a6dc76b23eeac (diff)
Improved physical memory manager and cleaning up.
Diffstat (limited to 'kernel/timer.c')
-rw-r--r--kernel/timer.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/kernel/timer.c b/kernel/timer.c
index b713674..da9e6bd 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -1,4 +1,3 @@
-
/// PIT /// Timer stuff
/*
@@ -37,39 +36,6 @@
#include "../lib/logger/log.h" // logger facilities
#define FOOLOS_MODULE_NAME "timer"
-static uint64_t timer64=0;
-static uint8_t timer8=0;
-uint16_t timer16=0;
-
-// clock handler
-/*
-void int_clock_handler()
-{
- X86_IRQ_BEGIN;
-
- timer64++;
-
- timer8++;
-
- if(timer8==25)
- {
- timer16++;
- }
-
- if(timer8==25)
- {
-#ifdef DEBUG
- scr_put_string(".");
-#endif
- timer8=0;
- task_switch();
-
- }
-
- X86_IRQ_END;
-
-}
-*/
void timer_init()
{