diff options
author | isiora <none@example.com> | 2017-08-14 09:22:19 +0000 |
---|---|---|
committer | isiora <none@example.com> | 2017-08-14 09:22:19 +0000 |
commit | 16ff9e3b59a0aaaa2ef9ac89eea76dbff6775564 (patch) | |
tree | c25a3404291baa822e18d04167402e4c7335b98b /os/common/startup | |
parent | e9043d1d77c61828cfbffa0c9241b42977090567 (diff) | |
download | ChibiOS-16ff9e3b59a0aaaa2ef9ac89eea76dbff6775564.tar.gz ChibiOS-16ff9e3b59a0aaaa2ef9ac89eea76dbff6775564.tar.bz2 ChibiOS-16ff9e3b59a0aaaa2ef9ac89eea76dbff6775564.zip |
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
Diffstat (limited to 'os/common/startup')
-rw-r--r-- | os/common/startup/ARM/compilers/GCC/crt0.S | 5 |
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.
*/
|