mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
x86: Forward declare gd_t
So it can be used as a type in struct global_data and remove an ugly typecast Signed-off-by: Graeme Russ <graeme.russ@gmail.com> Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
d41b3cc16f
commit
e4fb611649
3 changed files with 7 additions and 5 deletions
|
@ -126,7 +126,7 @@ int copy_gd_to_ram_f_r(void)
|
|||
* in-RAM copy of Global Data (calculate_relocation_address()
|
||||
* has already calculated the in-RAM location of the GDT)
|
||||
*/
|
||||
ram_gd->gd_addr = (ulong)ram_gd;
|
||||
ram_gd->gd_addr = ram_gd;
|
||||
init_gd(ram_gd, (u64 *)gd->gdt_addr);
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue