riscv/addrenv: Fix the user VMA end address

The end address was off by 1, making it overflow to 0 (u32 value).
This commit is contained in:
Ville Juven 2023-09-29 14:37:25 +03:00 committed by Xiang Xiao
parent 0cb54c1959
commit 8fdb56b5f2

View file

@ -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