diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2009-09-09 16:40:41 (GMT) |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-09-10 02:04:47 (GMT) |
commit | 6c97a20d0b2f56cb4f3745d94b1f96986e8cced5 (patch) | |
tree | ac799251a83a4c4bf6783f51d3e24553b40692fd /cpu/mpc85xx/u-boot.lds | |
parent | c348322ac7f76318295cf25ffab2cc2a4900a234 (diff) | |
download | u-boot-6c97a20d0b2f56cb4f3745d94b1f96986e8cced5.tar.xz |
ppc/85xx: Introduce RESET_VECTOR_ADDRESS to handle non-standard link address
Some board ports place TEXT_BASE at a location that would cause the
RESET_VECTOR_ADDRESS not to be at 0xfffffffc when we link. By default
we assume RESET_VECTOR_ADDRESS will be 0xfffffffc if the board doesn't
explicitly set it.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'cpu/mpc85xx/u-boot.lds')
-rw-r--r-- | cpu/mpc85xx/u-boot.lds | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cpu/mpc85xx/u-boot.lds b/cpu/mpc85xx/u-boot.lds index d6e22a7..ec47871 100644 --- a/cpu/mpc85xx/u-boot.lds +++ b/cpu/mpc85xx/u-boot.lds @@ -20,6 +20,10 @@ * MA 02111-1307 USA */ +#ifndef RESET_VECTOR_ADDRESS +#define RESET_VECTOR_ADDRESS 0xfffffffc +#endif + OUTPUT_ARCH(powerpc) /* Do we need any of these for elf? __DYNAMIC = 0; */ @@ -116,17 +120,17 @@ SECTIONS . = ALIGN(256); __init_end = .; - .bootpg ADDR(.text) + 0x7f000 : + .bootpg RESET_VECTOR_ADDRESS - 0xffc : { cpu/mpc85xx/start.o (.bootpg) } :text = 0xffff - .resetvec ADDR(.text) + 0x7fffc : + .resetvec RESET_VECTOR_ADDRESS : { *(.resetvec) } :text = 0xffff - . = ADDR(.text) + 0x80000; + . = RESET_VECTOR_ADDRESS + 0x4; __bss_start = .; .bss (NOLOAD) : |