summaryrefslogtreecommitdiffstats
path: root/bsps/arm/shared/start/start.S
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-19 10:59:20 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-12-19 10:59:20 +0100
commit2497da06de6f35ccd4a08ff3942a67b9ef972a70 (patch)
treeea9b08683e90ebbd4f9d2e887ea3d02ca0274866 /bsps/arm/shared/start/start.S
parentconfig: Fix CONFIGURE_MAXIMUM_POSIX_THREADS (diff)
downloadrtems-2497da06de6f35ccd4a08ff3942a67b9ef972a70.tar.bz2
bsps/arm: Export bsp_start_hook_0_done
Close #3789.
Diffstat (limited to 'bsps/arm/shared/start/start.S')
-rw-r--r--bsps/arm/shared/start/start.S13
1 files changed, 8 insertions, 5 deletions
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