aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--os/common/startup/ARM/compilers/GCC/crt0.S5
1 files changed, 5 insertions, 0 deletions
diff --git a/os/common/startup/ARM/compilers/GCC/crt0.S b/os/common/startup/ARM/compilers/GCC/crt0.S
index 43cb723ab..963e4fafb 100644
--- a/os/common/startup/ARM/compilers/GCC/crt0.S
+++ b/os/common/startup/ARM/compilers/GCC/crt0.S
@@ -44,6 +44,11 @@
*/
.global Reset_Handler
Reset_Handler:
+ /*
+ * Set secure VBAR to system vectors table
+ */
+ ldr r0, =_start
+ mcr p15, 0, r0, c12, c0, 0
/*
* Stack pointers initialization.
*/