aboutsummaryrefslogtreecommitdiff
path: root/kernel/drivers
diff options
context:
space:
mode:
authorMarvin Borner2020-08-22 17:38:40 +0200
committerMarvin Borner2020-08-22 17:38:40 +0200
commit424dc57424ee17de77d689443f95d2e1bed72f4a (patch)
tree1ae2f071ee2de984a2f112de0e69208e593ddc51 /kernel/drivers
parentd748a6f54ce7af45afde487936d5a02cb2a91b05 (diff)
Added random number generator
Diffstat (limited to 'kernel/drivers')
-rw-r--r--kernel/drivers/timer.c5
1 files changed, 5 insertions, 0 deletions
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()
{