tests: mem_protect: enlarge heap size of RISCV64
Because k_thread size in RISCV64 is near 512 bytes, (num_of_thread * 256) bytes heap size is not enough. Enlarge heap size in RISCV64 to the (num_of_thread * 1024) bytes like x86_64 and ARM64. Signed-off-by: Jim Shu <cwshu09@gmail.com>
This commit is contained in:
parent
fd2c07682e
commit
e2d67d60ba
1 changed files with 2 additions and 1 deletions
|
@ -136,7 +136,8 @@ static inline void set_fault_valid(bool valid)
|
|||
|
||||
|
||||
|
||||
#if defined(CONFIG_X86_64) || defined(CONFIG_ARM64)
|
||||
#if (defined(CONFIG_X86_64) || defined(CONFIG_ARM64) || \
|
||||
(defined(CONFIG_RISCV) && defined(CONFIG_64BIT)))
|
||||
#define TEST_HEAP_SIZE (2 << CONFIG_MAX_THREAD_BYTES) * 1024
|
||||
#define MAX_OBJ 512
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue