summaryrefslogtreecommitdiff
path: root/kc/core/timer.c
diff options
context:
space:
mode:
authorAda Christine <adachristine18@gmail.com>2022-02-14 16:13:23 +0000
committerAda Christine <adachristine18@gmail.com>2022-02-14 16:22:54 +0000
commite024c54be1b94093171eb4182c5fc21db5b2d7e2 (patch)
tree9125564493b48f0562da484c628e02730e581cc6 /kc/core/timer.c
parentf020142891decdf63e5908b4756bcaad9b0f5f7e (diff)
more task scheduling work, scheduler appears to work without crashing
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();
+}
+