From 16ff9e3b59a0aaaa2ef9ac89eea76dbff6775564 Mon Sep 17 00:00:00 2001 From: isiora Date: Mon, 14 Aug 2017 09:22:19 +0000 Subject: Added init code to setup the secure VBAR. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10429 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/common/startup/ARM/compilers/GCC/crt0.S | 5 +++++ 1 file changed, 5 insertions(+) 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. */ -- cgit v1.2.3