summaryrefslogtreecommitdiff
path: root/src/arch/riscv/include/mcall.h
diff options
context:
space:
mode:
authorXiang Wang <wxjstz@126.com>2018-08-28 16:34:29 +0800
committerPatrick Georgi <pgeorgi@google.com>2018-09-10 15:03:08 +0000
commit2e38dbe5f1a9db76cdf529679faee63fcb6a9c34 (patch)
tree3656f083f5aad2fc009d1038c313b8cfd695895f /src/arch/riscv/include/mcall.h
parent0370bcf40ce3a07e6e2d33b8bcebf28a0ac98807 (diff)
riscv: update mtime initialization
Add a interface, which is implemented by SoC. Change-Id: I5524732f6eb3841e43afd176644119b03b5e5e27 Signed-off-by: Xiang Wang <wxjstz@126.com> Reviewed-on: https://review.coreboot.org/28372 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Diffstat (limited to 'src/arch/riscv/include/mcall.h')
-rw-r--r--src/arch/riscv/include/mcall.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch/riscv/include/mcall.h b/src/arch/riscv/include/mcall.h
index 114808aae7..d1e414a42f 100644
--- a/src/arch/riscv/include/mcall.h
+++ b/src/arch/riscv/include/mcall.h
@@ -61,6 +61,9 @@ typedef struct {
void hls_init(uint32_t hart_id); // need to call this before launching linux
+/* This function is used to initialize HLS()->time/HLS()->timecmp */
+void mtime_init(void);
+
#endif // __ASSEMBLER__
#endif