diff options
Diffstat (limited to 'os/common')
-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
|