aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/timer.c')
-rw-r--r--kernel/drivers/timer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/drivers/timer.c b/kernel/drivers/timer.c
index 3bc1811..e9e90a0 100644
--- a/kernel/drivers/timer.c
+++ b/kernel/drivers/timer.c
@@ -11,11 +11,11 @@ void timer_phase(int hz)
{
int divisor = 3579545 / 3 / hz;
outb(0x43, 0x36); // 01 10 11 0b // CTR, RW, MODE, BCD
- outb(0x40, divisor & 0xFF);
- outb(0x40, divisor >> 8);
+ outb(0x40, (u8)(divisor & 0xFF));
+ outb(0x40, (u8)(divisor >> 8));
}
-u32 timer_get()
+u32 timer_get(void)
{
return timer_ticks;
}
@@ -38,7 +38,7 @@ void timer_wait(u32 ticks)
}
// Install timer handler into IRQ0
-void timer_install()
+void timer_install(void)
{
/* hpet_install(10000); // TODO: Find optimal femtosecond period */
/* if (!hpet) */