Skip to content

Commit c1bced8

Browse files
ydamigosnashif
authored andcommitted
tests: arm_sw_vector_relay: Take into account CONFIG_SRAM_VECTOR_TABLE
Take into account vector table RAM relocation. Signed-off-by: Ioannis Damigos <[email protected]>
1 parent ac4aabc commit c1bced8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/arch/arm/arm_sw_vector_relay/src/arm_sw_vector_relay.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ ZTEST(arm_sw_vector_relay, test_arm_sw_vector_relay)
5757
/* Verify that the VTOR points to the real vector table,
5858
* NOT the table that contains the forwarding function.
5959
*/
60+
#ifdef CONFIG_SRAM_VECTOR_TABLE
61+
zassert_true(SCB->VTOR == (uint32_t)&_sram_vector_start,
62+
#else
6063
zassert_true(SCB->VTOR == (uint32_t)_vector_start,
64+
#endif
6165
"VTOR not pointing to the real vector table\n");
6266
#else
6367
/* If VTOR is not present then we already need to forward interrupts

0 commit comments

Comments
 (0)