aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/timer.c
diff options
context:
space:
mode:
authorMarvin Borner2021-02-25 17:42:46 +0100
committerMarvin Borner2021-02-25 17:42:46 +0100
commit34885f1c73824a0fe47aa095e9d55a57021239d2 (patch)
treeb59dfe47069d1f42bd8123e647fadf74bff835a6 /kernel/drivers/timer.c
parentb85ba196c47920b9d1b6622718a34f8f6f23bef3 (diff)
Added *many* static keywords
Diffstat (limited to 'kernel/drivers/timer.c')
-rw-r--r--kernel/drivers/timer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/drivers/timer.c b/kernel/drivers/timer.c
index 766512f..8887279 100644
--- a/kernel/drivers/timer.c
+++ b/kernel/drivers/timer.c
@@ -4,11 +4,12 @@
#include <def.h>
#include <interrupts.h>
#include <proc.h>
+#include <timer.h>
static u32 timer_ticks = 0;
static u8 call_scheduler = 0;
-void timer_phase(int hz)
+static void timer_phase(int hz)
{
int divisor = 3579545 / 3 / hz;
outb(0x43, 0x36); // 01 10 11 0b // CTR, RW, MODE, BCD