Skip to content

Commit ca3e8dc

Browse files
authored
Merge pull request #454 from danielinux/armv8_ns_vtor
Set VTOR_NS instead of VTOR upon staging when TrustZone is enabled
2 parents 53a7f64 + 9575bbc commit ca3e8dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/boot_arm.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,10 +326,12 @@ void isr_empty(void)
326326
* - Call the application entry point
327327
*
328328
*/
329-
#define VTOR (*(volatile uint32_t *)(0xE000ED08))
330329

331330
#ifdef TZEN
332331
#include "hal.h"
332+
#define VTOR (*(volatile uint32_t *)(0xE002ED08))
333+
#else
334+
#define VTOR (*(volatile uint32_t *)(0xE000ED08))
333335
#endif
334336

335337

0 commit comments

Comments
 (0)