diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-10-01 08:31:12 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-10-01 08:31:12 +0000 |
commit | c5b8559cee0c955fb454de2450245b51485ef06c (patch) | |
tree | f47fc43f84c40d1f0dff92a983cf3ee6c0a8aeab | |
parent | 7a2c4c2462819ca41871ae949c9fff17134e2708 (diff) | |
download | ChibiOS-c5b8559cee0c955fb454de2450245b51485ef06c.tar.gz ChibiOS-c5b8559cee0c955fb454de2450245b51485ef06c.tar.bz2 ChibiOS-c5b8559cee0c955fb454de2450245b51485ef06c.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9832 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/common/startup/ARMCMx/devices/XMC1100/veneers_gcc.S | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/os/common/startup/ARMCMx/devices/XMC1100/veneers_gcc.S b/os/common/startup/ARMCMx/devices/XMC1100/veneers_gcc.S index 9a30508fc..07fa513c1 100644 --- a/os/common/startup/ARMCMx/devices/XMC1100/veneers_gcc.S +++ b/os/common/startup/ARMCMx/devices/XMC1100/veneers_gcc.S @@ -126,7 +126,19 @@ _unhandled_exception: .align 2
.thumb_func
.global __reset
-__reset: b Reset_Handler
+__reset: sub sp, #32
+ movs r0, #0
+ str r0, [sp, #4]
+ str r0, [sp, #8]
+ str r0, [sp, #12]
+ str r0, [sp, #16]
+ str r0, [sp, #20]
+ ldr r0, =Reset_Handler
+ str r0, [sp, #24]
+ ldr r0, =0x01000000
+ str r0, [sp, #28]
+ ldr r0, =0xFFFFFFF9
+ bx r0
.section .ram0_init, "ax", %progbits
.align 2
|