mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 13:18:50 +08:00
mm/shm: Fix ARCH_SHM_VEND
The last address is base+size-1
This commit is contained in:
parent
48b9a8d6f4
commit
f8a6ec2cdf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue