diff options
author | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 20:03:33 +1100 |
---|---|---|
committer | Graeme Russ <graeme.russ@gmail.com> | 2010-10-07 20:03:33 +1100 |
commit | c868af3e57610b41c6ed4fd8d8744d8cc0a21b29 (patch) | |
tree | 6d2d1efd72aa3e7fc506f7ac65f106d163410ea5 /arch/i386/include | |
parent | f2ff75c0a25eb78b4b86fd96c5f0be9dd327e2d7 (diff) | |
download | u-boot-imx-c868af3e57610b41c6ed4fd8d8744d8cc0a21b29.zip u-boot-imx-c868af3e57610b41c6ed4fd8d8744d8cc0a21b29.tar.gz u-boot-imx-c868af3e57610b41c6ed4fd8d8744d8cc0a21b29.tar.bz2 |
x86: Implement fully relocatable image
u-boot.bin can be loaded at any 4-byte aligned memory location and directly
'jumped' to using the 'go' command using the load address as the start
address. Doing so performs a 'warm boot' which skips memory initialisation
and other low-level initialisations, relocates U-Boot to upper memory and
starts U-Boot in RAM as per normal 'cold boot'
Diffstat (limited to 'arch/i386/include')
-rw-r--r-- | arch/i386/include/asm/global_data.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/arch/i386/include/asm/global_data.h b/arch/i386/include/asm/global_data.h index a15c598..5971123 100644 --- a/arch/i386/include/asm/global_data.h +++ b/arch/i386/include/asm/global_data.h @@ -41,6 +41,7 @@ typedef struct { unsigned long baudrate; unsigned long have_console; /* serial_init() was called */ unsigned long reloc_off; /* Relocation Offset */ + unsigned long load_off; /* Load Offset */ unsigned long env_addr; /* Address of Environment struct */ unsigned long env_valid; /* Checksum of Environment valid? */ unsigned long cpu_clk; /* CPU clock in Hz! */ @@ -56,20 +57,21 @@ extern gd_t *gd; #endif /* Word Offsets into Global Data - MUST match struct gd_t */ -#define GD_BD 0 -#define GD_FLAGS 1 -#define GD_BAUDRATE 2 -#define GD_HAVE_CONSOLE 3 -#define GD_RELOC_OFF 4 -#define GD_ENV_ADDR 5 -#define GD_ENV_VALID 6 -#define GD_CPU_CLK 7 -#define GD_BUS_CLK 8 -#define GD_RAM_SIZE 9 -#define GD_RESET_STATUS 10 -#define GD_JT 11 +#define GD_BD 0 +#define GD_FLAGS 1 +#define GD_BAUDRATE 2 +#define GD_HAVE_CONSOLE 3 +#define GD_RELOC_OFF 4 +#define GD_LOAD_OFF 5 +#define GD_ENV_ADDR 6 +#define GD_ENV_VALID 7 +#define GD_CPU_CLK 8 +#define GD_BUS_CLK 9 +#define GD_RAM_SIZE 10 +#define GD_RESET_STATUS 11 +#define GD_JT 12 -#define GD_SIZE 12 +#define GD_SIZE 13 /* * Global Data Flags |