diff --git a/arch/arm/include/arch.h b/arch/arm/include/arch.h index e2631b3cf8..d511574e7d 100644 --- a/arch/arm/include/arch.h +++ b/arch/arm/include/arch.h @@ -95,7 +95,7 @@ do { \ # define ARCH_HEAP_NSECTS ARCH_PG2SECT(CONFIG_ARCH_HEAP_NPAGES) # ifdef CONFIG_ARCH_VMA_MAPPING -# define ARCH_SHM_NSECTS ARCH_PG2SECT(ARCH_SHM_MAXPAGES) +# define ARCH_SHM_NSECTS ARCH_PG2SECT((CONFIG_ARCH_SHM_NPAGES * CONFIG_ARCH_SHM_MAXREGIONS)) # endif # ifdef CONFIG_ARCH_STACK_DYNAMIC