From c5b8559cee0c955fb454de2450245b51485ef06c Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 1 Oct 2016 08:31:12 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9832 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/common/startup/ARMCMx/devices/XMC1100/veneers_gcc.S | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'os') 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 -- cgit v1.2.3