diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-04-24 14:30:04 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-04-24 14:30:04 +0300 |
| commit | 105f3d0dab75f669d1fc404c06b73289b343591c (patch) | |
| tree | 0cb27e308124bdf25daa03cce4a47d06d079026a /arch/riscv64/kernel/timer.c | |
| parent | be3696bd5853819212b1240751efd8d85f282c68 (diff) | |
| download | kmi-105f3d0dab75f669d1fc404c06b73289b343591c.tar.gz kmi-105f3d0dab75f669d1fc404c06b73289b343591c.zip | |
fix rv32 compile errors
Diffstat (limited to 'arch/riscv64/kernel/timer.c')
| -rw-r--r-- | arch/riscv64/kernel/timer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv64/kernel/timer.c b/arch/riscv64/kernel/timer.c index b6d828e..02f080c 100644 --- a/arch/riscv64/kernel/timer.c +++ b/arch/riscv64/kernel/timer.c @@ -1,4 +1,5 @@ #include <arch/timer.h> +#include <sbi.h> ticks_t stat_timer(const void *fdt) { @@ -9,6 +10,7 @@ ticks_t stat_timer(const void *fdt) void set_timer(ticks_t ticks) { /* TODO */ + sbi_set_timer(ticks); } ticks_t current_ticks() |
