mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 21:21:37 +00:00
ARM: SPL: do not set gd again
Just before calling board_init_f, crt0.S has already reserved space for the initial gd on the stack. There should be no need to allocate it again. cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
This commit is contained in:
parent
47a602eab4
commit
f0c3a6c4ad
1 changed files with 0 additions and 3 deletions
|
@ -28,9 +28,6 @@ void __weak board_init_f(ulong dummy)
|
||||||
/* Clear the BSS. */
|
/* Clear the BSS. */
|
||||||
memset(__bss_start, 0, __bss_end - __bss_start);
|
memset(__bss_start, 0, __bss_end - __bss_start);
|
||||||
|
|
||||||
/* Set global data pointer. */
|
|
||||||
gd = &gdata;
|
|
||||||
|
|
||||||
board_init_r(NULL, 0);
|
board_init_r(NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue