diff options
Diffstat (limited to 'platform/template')
| -rw-r--r-- | platform/template/platform.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/template/platform.c b/platform/template/platform.c index 86381ca2..4b3f2acf 100644 --- a/platform/template/platform.c +++ b/platform/template/platform.c @@ -19,6 +19,8 @@ #include <sbi_utils/timer/aclint_mtimer.h> #define PLATFORM_PLIC_ADDR 0xc000000 +#define PLATFORM_PLIC_SIZE (0x200000 + \ + (PLATFORM_HART_COUNT * 0x1000)) #define PLATFORM_PLIC_NUM_SOURCES 128 #define PLATFORM_HART_COUNT 4 #define PLATFORM_CLINT_ADDR 0x2000000 @@ -33,6 +35,7 @@ static struct plic_data plic = { .addr = PLATFORM_PLIC_ADDR, + .size = PLATFORM_PLIC_SIZE, .num_src = PLATFORM_PLIC_NUM_SOURCES, }; |
