diff options
author | Marvin Borner | 2020-08-22 17:38:40 +0200 |
---|---|---|
committer | Marvin Borner | 2020-08-22 17:38:40 +0200 |
commit | 424dc57424ee17de77d689443f95d2e1bed72f4a (patch) | |
tree | 1ae2f071ee2de984a2f112de0e69208e593ddc51 /kernel/drivers | |
parent | d748a6f54ce7af45afde487936d5a02cb2a91b05 (diff) |
Added random number generator
Diffstat (limited to 'kernel/drivers')
-rw-r--r-- | kernel/drivers/timer.c | 5 |
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() { |