aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/timer/timer.c
diff options
context:
space:
mode:
authorMarvin Borner2020-01-20 23:12:54 +0100
committerMarvin Borner2020-01-20 23:12:54 +0100
commit391ed256d21a6ae2e2456d1809f357e6e96e15d1 (patch)
tree0fe9ffb3c59bbfeb3d8a04ab7fc6efba60d81e79 /src/kernel/timer/timer.c
parentd5d1749257ff8b9aa6b5ace4b4720b484a2860f3 (diff)
Added pure awesomeness
Actually quite some days of work but ok
Diffstat (limited to 'src/kernel/timer/timer.c')
-rw-r--r--src/kernel/timer/timer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/timer/timer.c b/src/kernel/timer/timer.c
index dd4e165..cc98bc4 100644
--- a/src/kernel/timer/timer.c
+++ b/src/kernel/timer/timer.c
@@ -8,8 +8,8 @@ void timer_phase(int hz)
{
int divisor = (int) (3579545.0 / 3.0 / (double) hz);
outb(0x43, 0x36); // 01 10 11 0b // CTR, RW, MODE, BCD
- outb(0x40, divisor & 0xFF);
- outb(0x40, divisor >> 8);
+ outb(0x40, (uint8_t) (divisor & 0xFF));
+ outb(0x40, (uint8_t) (divisor >> 8));
}
// Executed 1000 times per second