This is an automated email from the ASF dual-hosted git repository. pkarashchenko pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit f8a6ec2cdfb4665d848ac6f9ca2912ef0135f9ac Author: Ville Juven <ville.ju...@unikie.com> AuthorDate: Fri Nov 18 13:34:28 2022 +0200 mm/shm: Fix ARCH_SHM_VEND The last address is base+size-1 --- include/nuttx/addrenv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/nuttx/addrenv.h b/include/nuttx/addrenv.h index 1e5e2d4fe9..43a0ea92ce 100644 --- a/include/nuttx/addrenv.h +++ b/include/nuttx/addrenv.h @@ -187,7 +187,7 @@ # define ARCH_SHM_MAXPAGES (CONFIG_ARCH_SHM_NPAGES * CONFIG_ARCH_SHM_MAXREGIONS) # define ARCH_SHM_REGIONSIZE (CONFIG_ARCH_SHM_NPAGES * CONFIG_MM_PGSIZE) # define ARCH_SHM_SIZE (CONFIG_ARCH_SHM_MAXREGIONS * ARCH_SHM_REGIONSIZE) -# define ARCH_SHM_VEND (CONFIG_ARCH_SHM_VBASE + ARCH_SHM_SIZE) +# define ARCH_SHM_VEND (CONFIG_ARCH_SHM_VBASE + ARCH_SHM_SIZE - 1) # define ARCH_SCRATCH_VBASE ARCH_SHM_VEND #else