mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-19 13:41:31 +00:00
armv8: update gd after relocate
We need to update gd in assamble code after relocate,
this is a fix to:
adc421e
arm: move gd handling outside of C code
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
This commit is contained in:
parent
49e93875a6
commit
21f4486faa
1 changed files with 2 additions and 0 deletions
|
@ -120,6 +120,8 @@ relocation_return:
|
||||||
#endif /* !CONFIG_SPL_BUILD */
|
#endif /* !CONFIG_SPL_BUILD */
|
||||||
#if defined(CONFIG_SPL_BUILD)
|
#if defined(CONFIG_SPL_BUILD)
|
||||||
bl spl_relocate_stack_gd /* may return NULL */
|
bl spl_relocate_stack_gd /* may return NULL */
|
||||||
|
/* set up gd here, outside any C code */
|
||||||
|
mov x18, x0
|
||||||
/*
|
/*
|
||||||
* Perform 'sp = (x0 != NULL) ? x0 : sp' while working
|
* Perform 'sp = (x0 != NULL) ? x0 : sp' while working
|
||||||
* around the constraint that conditional moves can not
|
* around the constraint that conditional moves can not
|
||||||
|
|
Loading…
Add table
Reference in a new issue