This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 8c6be8e1f3 riscv/addrenv: Fix the user VMA end address 8c6be8e1f3 is described below commit 8c6be8e1f358d3929d5fc675fa7e671530ff6d64 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