From 9575bbc7250c26515571be597aed9915e176e1e1 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Tue, 4 Jun 2024 17:35:53 +0200 Subject: [PATCH] Set VTOR_NS instead of VTOR upon staging [TZEN] --- src/boot_arm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/boot_arm.c b/src/boot_arm.c index 7b0ade2c6..6ef20b6ea 100644 --- a/src/boot_arm.c +++ b/src/boot_arm.c @@ -326,10 +326,12 @@ void isr_empty(void) * - Call the application entry point * */ -#define VTOR (*(volatile uint32_t *)(0xE000ED08)) #ifdef TZEN #include "hal.h" +#define VTOR (*(volatile uint32_t *)(0xE002ED08)) +#else +#define VTOR (*(volatile uint32_t *)(0xE000ED08)) #endif