aboutsummaryrefslogtreecommitdiff
path: root/platform/template/platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'platform/template/platform.c')
-rw-r--r--platform/template/platform.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/platform/template/platform.c b/platform/template/platform.c
index 3f09d98..4528822 100644
--- a/platform/template/platform.c
+++ b/platform/template/platform.c
@@ -43,8 +43,12 @@ static struct aclint_mswi_data mswi = {
};
static struct aclint_mtimer_data mtimer = {
- .addr = PLATFORM_ACLINT_MTIMER_ADDR,
- .size = ACLINT_MTIMER_SIZE,
+ .mtime_addr = PLATFORM_ACLINT_MTIMER_ADDR +
+ ACLINT_DEFAULT_MTIME_OFFSET,
+ .mtime_size = ACLINT_DEFAULT_MTIME_SIZE,
+ .mtimecmp_addr = PLATFORM_ACLINT_MTIMER_ADDR +
+ ACLINT_DEFAULT_MTIMECMP_OFFSET,
+ .mtimecmp_size = ACLINT_DEFAULT_MTIMECMP_SIZE,
.first_hartid = 0,
.hart_count = PLATFORM_HART_COUNT,
.has_64bit_mmio = TRUE,