mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
arm: make sure board_init_r() is being called using the right mode (ARM / THUMB)
Signed-off-by: David Müller <d.mueller@elsoft.ch>
This commit is contained in:
parent
7101c4ce8d
commit
03a3a8aec8
1 changed files with 5 additions and 1 deletions
|
@ -167,8 +167,12 @@ clbss_l:cmp r0, r1 /* while not at end of BSS */
|
|||
mov r0, r9 /* gd_t */
|
||||
ldr r1, [r9, #GD_RELOCADDR] /* dest_addr */
|
||||
/* call board_init_r */
|
||||
#if defined(CONFIG_SYS_THUMB_BUILD)
|
||||
ldr lr, =board_init_r /* this is auto-relocated! */
|
||||
bx lr
|
||||
#else
|
||||
ldr pc, =board_init_r /* this is auto-relocated! */
|
||||
|
||||
#endif
|
||||
/* we should not return here. */
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue