This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch releases/12.3 in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/releases/12.3 by this push: new 8fdb56b5f2 riscv/addrenv: Fix the user VMA end address 8fdb56b5f2 is described below commit 8fdb56b5f2124de351a48125a252ba4264665e3d Author: Ville Juven <ville.ju...@unikie.com> AuthorDate: Fri Sep 29 14:37:25 2023 +0300 riscv/addrenv: Fix the user VMA end address The end address was off by 1, making it overflow to 0 (u32 value). --- arch/risc-v/src/common/addrenv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/risc-v/src/common/addrenv.h b/arch/risc-v/src/common/addrenv.h index 8cb949af31..7be666e84e 100644 --- a/arch/risc-v/src/common/addrenv.h +++ b/arch/risc-v/src/common/addrenv.h @@ -58,7 +58,7 @@ /* User address environment end */ -#define ARCH_ADDRENV_VEND (ARCH_ADDRENV_VBASE + ARCH_ADDRENV_MAX_SIZE) +#define ARCH_ADDRENV_VEND (ARCH_ADDRENV_VBASE + ARCH_ADDRENV_MAX_SIZE - 1) /**************************************************************************** * Public Function Prototypes