mirror of
https://github.com/apache/nuttx.git
synced 2025-12-07 10:03:38 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user