apache / nuttx

Apache NuttX is a mature, real-time embedded operating system (RTOS)
https://nuttx.apache.org/
Apache License 2.0
2.74k stars 1.14k forks source link

bug report, armv7-a, arm_addrenv.c, function <up_addrenv_destroy> #12618

Open xyluo555 opened 3 months ago

xyluo555 commented 3 months ago

arch>arm>src>armv7-a>arm_addrenv.c : up_addrenv_destroy() for nuttx v12.4.0, the first arg in the following code(Line 351) should be "addrenv->shm". is that right? `

ifdef CONFIG_ARCH_VMA_MAPPING

/* Destroy the shared memory region (without freeing the physical page

acassis commented 3 months ago

@xyluo555 I think you are right since ARCH_SHM_NSECTS is used to create *shm[ARCH_SHM_NSECTS].

@xiaoxiang781216 @masayuki2009 @phfbertoleti please take a look