From 4326dada61ff5d48550b5cf0bff29e370bc7257c Mon Sep 17 00:00:00 2001 From: Nathaniel Graff Date: Thu, 3 Jan 2019 09:38:12 -0800 Subject: Update BSPs for PMPs Signed-off-by: Nathaniel Graff --- bsp/coreip-s51-arty/mee.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bsp/coreip-s51-arty') diff --git a/bsp/coreip-s51-arty/mee.h b/bsp/coreip-s51-arty/mee.h index 0e9cc9c..d8a3ebb 100644 --- a/bsp/coreip-s51-arty/mee.h +++ b/bsp/coreip-s51-arty/mee.h @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -69,6 +70,9 @@ struct __mee_driver_sifive_gpio0 __mee_dt_gpio_20002000; asm (".weak __mee_dt_serial_20000000"); struct __mee_driver_sifive_uart0 __mee_dt_serial_20000000; +asm (".weak __mee_dt_pmp_0"); +struct mee_pmp __mee_dt_pmp_0; + /* From led@0red */ asm (".weak __mee_dt_led_0red"); struct __mee_driver_sifive_gpio_led __mee_dt_led_0red; @@ -401,6 +405,13 @@ struct __mee_driver_sifive_gpio_switch __mee_dt_switch_3 = { .label = "SW3", }; +/* From pmp@0 */ +struct mee_pmp __mee_dt_pmp_0 = { + .num_regions = 8UL, +}; + +#define __MEE_DT_PMP_HANDLE (&__mee_dt_pmp_0) + /* From teststatus@4000 */ struct __mee_driver_sifive_test0 __mee_dt_teststatus_4000 = { .vtable = &__mee_driver_vtable_sifive_test0, -- cgit v1.2.3