From 95d66ee7e4be21c58d3f2f33db2160034f9bf98b Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Fri, 6 Mar 2020 15:02:58 +0000 Subject: [PATCH] Fixed PORT_USE_GUARD_MPU_REGION port option name. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13393 27425a3e-05d8-49a3-a47f-9c15f0e5edd8 --- os/common/ports/ARMCMx/chcore_v7m.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/common/ports/ARMCMx/chcore_v7m.c b/os/common/ports/ARMCMx/chcore_v7m.c index 5160789b1..186736df7 100644 --- a/os/common/ports/ARMCMx/chcore_v7m.c +++ b/os/common/ports/ARMCMx/chcore_v7m.c @@ -275,7 +275,7 @@ void port_init(void) { /* Setting up the guard page on the main() function stack base initially.*/ - mpuConfigureRegion(PORT_USE_MPU_REGION, + mpuConfigureRegion(PORT_USE_GUARD_MPU_REGION, &__main_thread_stack_base__, MPU_RASR_ATTR_AP_NA_NA | MPU_RASR_ATTR_NON_CACHEABLE | @@ -298,7 +298,7 @@ void port_init(void) { */ void _port_set_region(void) { - mpuSetRegionAddress(PORT_USE_MPU_REGION, + mpuSetRegionAddress(PORT_USE_GUARD_MPU_REGION, chThdGetSelfX()->wabase); } #endif