From 082f8bc38f1f1776377d9e0a602a1b3658b3905b Mon Sep 17 00:00:00 2001 From: isiora Date: Fri, 22 Sep 2017 10:18:07 +0000 Subject: Reset points to Boot_Handler. For backward compatibility, Boot_Handler is defined weak and is defaulted to jump to Reset_Handler. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10672 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/common/startup/ARM/compilers/GCC/vectors.S | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'os') diff --git a/os/common/startup/ARM/compilers/GCC/vectors.S b/os/common/startup/ARM/compilers/GCC/vectors.S index 39bd6db73..0584b4edc 100644 --- a/os/common/startup/ARM/compilers/GCC/vectors.S +++ b/os/common/startup/ARM/compilers/GCC/vectors.S @@ -56,7 +56,7 @@ _start: ldr pc, _fiq _reset: - .word Reset_Handler + .word Boot_Handler _undefined: .word Und_Handler _swi: @@ -92,6 +92,12 @@ Irq_Handler: .weak _unhandled_exception _unhandled_exception: b _unhandled_exception +/* + * Default boot handler. Jump to Reset_Handler + */ + .weak Boot_Handler +Boot_Handler: + b Reset_Handler #endif -- cgit v1.2.3