From db80f993967d9fe27be362df1fa38e6ec3b411d5 Mon Sep 17 00:00:00 2001 From: Nathaniel Graff Date: Wed, 10 Apr 2019 10:52:43 -0700 Subject: Add missing PMP nodes Signed-off-by: Nathaniel Graff --- bsp/coreip-e24-arty/metal.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bsp/coreip-e24-arty/metal.h') diff --git a/bsp/coreip-e24-arty/metal.h b/bsp/coreip-e24-arty/metal.h index 47e0f67..f04b38b 100644 --- a/bsp/coreip-e24-arty/metal.h +++ b/bsp/coreip-e24-arty/metal.h @@ -70,6 +70,9 @@ struct __metal_driver_cpu __metal_dt_cpu_0; asm (".weak __metal_dt_interrupt_controller"); struct __metal_driver_riscv_cpu_intc __metal_dt_interrupt_controller; +asm (".weak __metal_dt_pmp_0"); +struct metal_pmp __metal_dt_pmp_0; + /* From interrupt_controller@2000000 */ asm (".weak __metal_dt_interrupt_controller_2000000"); struct __metal_driver_sifive_clic0 __metal_dt_interrupt_controller_2000000; @@ -166,6 +169,11 @@ struct __metal_driver_riscv_cpu_intc __metal_dt_interrupt_controller = { .interrupt_controller = 1, }; +/* From pmp@0 */ +struct metal_pmp __metal_dt_pmp_0 = { + .num_regions = 4UL, +}; + /* From interrupt_controller@2000000 */ struct __metal_driver_sifive_clic0 __metal_dt_interrupt_controller_2000000 = { .vtable = &__metal_driver_vtable_sifive_clic0, @@ -549,6 +557,9 @@ struct __metal_driver_cpu *__metal_cpu_table[] = { #define __METAL_DT_INTERRUPT_CONTROLLER_HANDLE (&__metal_dt_interrupt_controller.controller) +/* From pmp@0 */ +#define __METAL_DT_PMP_HANDLE (&__metal_dt_pmp_0) + /* From interrupt_controller@2000000 */ #define __METAL_DT_SIFIVE_CLIC0_HANDLE (&__metal_dt_interrupt_controller_2000000.controller) -- cgit v1.2.1-18-gbd029