Skip to content

Commit 4989e29

Browse files
committed
RSE: Tests: Move test code to SRAM
Move the test code to SRAM instead of the ROM to give the tests more space. This also means we do not have to limit the space of the ROM when compiling with tests. Change-Id: I624c60a5277012b8210ceb8e05615e72caaa94b1 Signed-off-by: Jackson Cooper-Driver <jackson.cooper-driver@arm.com>
1 parent 388adfe commit 4989e29

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

platform/ext/target/arm/rse/common/partition/region_defs.h

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -224,19 +224,16 @@
224224

225225
/* RSE test binary is XIP from ROM */
226226
#if defined(RSE_BL1_TEST_BINARY) && defined(RSE_TEST_BINARY_IN_ROM)
227-
#define RSE_TESTS_CODE_START (ROM_BASE_S + ROM_SIZE - ROM_DMA_ICS_SIZE - RSE_TESTS_CODE_SIZE)
228-
#define RSE_TESTS_CODE_SIZE (0x7000) /* 28 KiB */
229-
#define RSE_TESTS_DATA_START VM0_BASE_S
230-
#define RSE_TESTS_DATA_SIZE VM0_SIZE + VM1_SIZE
231-
#else
232-
#define RSE_TESTS_CODE_SIZE (0x0)
233-
#define RSE_TESTS_DATA_SIZE (0x0)
227+
#define RSE_TESTS_CODE_START (VM0_BASE_S + OTP_DMA_ICS_SIZE)
228+
#define RSE_TESTS_CODE_SIZE (VM1_BASE_S - RSE_TESTS_CODE_START)
229+
#define RSE_TESTS_DATA_START (VM1_BASE_S)
230+
#define RSE_TESTS_DATA_SIZE (VM1_SIZE - PERSISTENT_DATA_SIZE - RSE_OTP_EMULATION_SRAM_SIZE)
234231
#endif /* defined(RSE_BL1_TEST_BINARY) && defined(RSE_TEST_BINARY_IN_ROM) */
235232

236233
/* Bootloader regions */
237234
/* BL1_1 is XIP from ROM */
238235
#define BL1_1_CODE_START (ROM_BASE_S)
239-
#define BL1_1_CODE_SIZE (ROM_SIZE - ROM_DMA_ICS_SIZE - RSE_TESTS_CODE_SIZE)
236+
#define BL1_1_CODE_SIZE (ROM_SIZE - ROM_DMA_ICS_SIZE)
240237
#define BL1_1_CODE_LIMIT (BL1_1_CODE_START + BL1_1_CODE_SIZE - 1)
241238

242239
#define PROVISIONING_DATA_START (BL1_1_CODE_START + BL1_1_CODE_SIZE)

0 commit comments

Comments
 (0)