summaryrefslogtreecommitdiff
path: root/kc/core/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'kc/core/timer.c')
-rw-r--r--kc/core/timer.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kc/core/timer.c b/kc/core/timer.c
new file mode 100644
index 0000000..2b7d5f6
--- /dev/null
+++ b/kc/core/timer.c
@@ -0,0 +1,8 @@
+#include "timer.h"
+#include "pit8253.h"
+
+uint64_t timer_ticks(void)
+{
+ return pit8253_count();
+}
+