From 2e38dbe5f1a9db76cdf529679faee63fcb6a9c34 Mon Sep 17 00:00:00 2001 From: Xiang Wang Date: Tue, 28 Aug 2018 16:34:29 +0800 Subject: riscv: update mtime initialization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a interface, which is implemented by SoC. Change-Id: I5524732f6eb3841e43afd176644119b03b5e5e27 Signed-off-by: Xiang Wang Reviewed-on: https://review.coreboot.org/28372 Tested-by: build bot (Jenkins) Reviewed-by: Jonathan Neuschäfer --- src/arch/riscv/mcall.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/arch/riscv/mcall.c') 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); -- cgit v1.2.3