mirror of
https://xff.cz/git/u-boot/
synced 2025-10-26 16:13:55 +01:00
x86: Move gd_addr into arch_global_data
Move this field into arch_global_data and tidy up. Signed-off-by: Simon Glass <sjg@chromium.org> [trini: Add arch/x86/cpu/cpu.c changes after Graeme's comments] Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
|
||||
/* Architecture-specific global data */
|
||||
struct arch_global_data {
|
||||
struct global_data *gd_addr; /* Location of Global Data */
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -44,8 +45,6 @@ typedef struct global_data gd_t;
|
||||
|
||||
struct global_data {
|
||||
struct arch_global_data arch; /* architecture-specific data */
|
||||
/* NOTE: gd_addr MUST be first member of struct global_data! */
|
||||
gd_t *gd_addr; /* Location of Global Data */
|
||||
bd_t *bd;
|
||||
unsigned long flags;
|
||||
unsigned int baudrate;
|
||||
|
||||
Reference in New Issue
Block a user