From 3238ced93283a167675f20244ec9fd6310eb8002 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 2 Oct 2019 20:01:17 +0200 Subject: Finally fixed VESA auto resolution finder This was quite hard and strange but it works now! --- src/kernel/timer/timer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/kernel/timer/timer.c') diff --git a/src/kernel/timer/timer.c b/src/kernel/timer/timer.c index 45b254e..f332429 100644 --- a/src/kernel/timer/timer.c +++ b/src/kernel/timer/timer.c @@ -1,7 +1,7 @@ #include "../interrupts/interrupts.h" #include "../io/io.h" -volatile unsigned int timer_ticks = 0; +static unsigned int timer_ticks = 0; void timer_phase(int hz) { int divisor = 1193180 / hz; @@ -25,6 +25,10 @@ void timer_wait(int ticks) { } } +unsigned int get_time() { + return timer_ticks; +} + // Install timer handler into IRQ0 void timer_install() { timer_phase(100); -- cgit v1.2.3