From 2497da06de6f35ccd4a08ff3942a67b9ef972a70 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 19 Dec 2019 10:59:20 +0100 Subject: bsps/arm: Export bsp_start_hook_0_done Close #3789. --- bsps/arm/shared/start/start.S | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'bsps/arm/shared/start/start.S') diff --git a/bsps/arm/shared/start/start.S b/bsps/arm/shared/start/start.S index 4fd748477c..e56b07fefe 100644 --- a/bsps/arm/shared/start/start.S +++ b/bsps/arm/shared/start/start.S @@ -5,7 +5,7 @@ */ /* - * Copyright (c) 2008, 2018 embedded brains GmbH. All rights reserved. + * Copyright (c) 2008, 2019 embedded brains GmbH. All rights reserved. * * embedded brains GmbH * Dornierstr. 4 @@ -33,6 +33,7 @@ /* Global symbols */ .globl _start + .globl bsp_start_hook_0_done .globl bsp_start_vector_table_begin .globl bsp_start_vector_table_end .globl bsp_start_vector_table_size @@ -388,7 +389,7 @@ _start: * the start hook 0 address instead corrected by the address offset. */ - ldr lr, =.Lstart_hook_0_done + ldr lr, =bsp_start_hook_0_done mov r0, pc ldr r1, =.Lget_absolute_pc .Lget_absolute_pc: @@ -402,7 +403,8 @@ _start: bx r7 -.Lstart_hook_0_done: + /* Allow bsp_start_hook_0() hooks to jump to this label */ +bsp_start_hook_0_done: /* * Initialize the exception vectors. This includes the exceptions @@ -483,10 +485,11 @@ _start: #endif ldr sp, =_ISR_Stack_area_end - ldr lr, =.Lstart_hook_0_done + 1 + ldr lr, =bsp_start_hook_0_done + 1 b bsp_start_hook_0 -.Lstart_hook_0_done: + /* Allow bsp_start_hook_0() hooks to jump to this label */ +bsp_start_hook_0_done: bl bsp_start_hook_1 movs r0, #0 -- cgit v1.2.3