summaryrefslogtreecommitdiff
path: root/src/arch/riscv/mcall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/riscv/mcall.c')
-rw-r--r--src/arch/riscv/mcall.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/arch/riscv/mcall.c b/src/arch/riscv/mcall.c
index 2e44fb76fe..47cdd88d4d 100644
--- a/src/arch/riscv/mcall.c
+++ b/src/arch/riscv/mcall.c
@@ -40,9 +40,7 @@ void hls_init(uint32_t hart_id)
memset(HLS(), 0, sizeof(*HLS()));
HLS()->hart_id = hart_id;
- /* Initialize these pointers with dummy values, for now */
- HLS()->time = NULL;
- HLS()->timecmp = NULL;
+ mtime_init();
printk(BIOS_SPEW, "Time is %p and timecmp is %p\n",
HLS()->time, HLS()->timecmp);