projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
arm: make sure board_init_r() is being called using the right mode (ARM / THUMB)
[oweals/u-boot.git]
/
arch
/
arm
/
lib
/
crt0_64.S
diff --git
a/arch/arm/lib/crt0_64.S
b/arch/arm/lib/crt0_64.S
index b4fc760609700d122e731d0e49e3f20556a4a0a3..cad22c7b41fe4c7237acba611057255931d02fea 100644
(file)
--- a/
arch/arm/lib/crt0_64.S
+++ b/
arch/arm/lib/crt0_64.S
@@
-78,6
+78,8
@@
ENTRY(_main)
mov x0, sp
bl board_init_f_alloc_reserve
mov sp, x0
+ /* set up gd here, outside any C code */
+ mov x18, x0
bl board_init_f_init_reserve
mov x0, #0