Skip to content

Commit e2d67d6

Browse files
cwshunashif
authored andcommitted
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 <[email protected]>
1 parent fd2c076 commit e2d67d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/kernel/mem_protect/mem_protect/src/mem_protect.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ static inline void set_fault_valid(bool valid)
136136

137137

138138

139-
#if defined(CONFIG_X86_64) || defined(CONFIG_ARM64)
139+
#if (defined(CONFIG_X86_64) || defined(CONFIG_ARM64) || \
140+
(defined(CONFIG_RISCV) && defined(CONFIG_64BIT)))
140141
#define TEST_HEAP_SIZE (2 << CONFIG_MAX_THREAD_BYTES) * 1024
141142
#define MAX_OBJ 512
142143
#else

0 commit comments

Comments
 (0)