From e024c54be1b94093171eb4182c5fc21db5b2d7e2 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Mon, 14 Feb 2022 16:13:23 +0000 Subject: more task scheduling work, scheduler appears to work without crashing --- kc/core/timer.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 kc/core/timer.c (limited to 'kc/core/timer.c') 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(); +} + -- cgit v1.3.1-1-g115d