From 424dc57424ee17de77d689443f95d2e1bed72f4a Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 22 Aug 2020 17:38:40 +0200 Subject: Added random number generator --- kernel/drivers/timer.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kernel/drivers/timer.c') diff --git a/kernel/drivers/timer.c b/kernel/drivers/timer.c index 0207cc0..79e3cd8 100644 --- a/kernel/drivers/timer.c +++ b/kernel/drivers/timer.c @@ -14,6 +14,11 @@ void timer_phase(int hz) outb(0x40, divisor >> 8); } +u32 timer_get() +{ + return timer_ticks; +} + // Executed 1000 times per second void timer_handler() { -- cgit v1.2.3