[U-Boot] [PATCH] ppc/85xx: Introduce RESET_VECTOR_ADDRESS to handle non-standard link address
Wolfgang Denk
wd at denx.de
Wed Sep 9 22:18:18 CEST 2009
Dear Kumar Gala,
In message <1252514873-7782-1-git-send-email-galak at kernel.crashing.org> you wrote:
> 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 at kernel.crashing.org>
> ---
> board/freescale/mpc8536ds/config.mk | 2 ++
> board/freescale/mpc8572ds/config.mk | 2 ++
> board/freescale/p1_p2_rdb/config.mk | 2 ++
> board/freescale/p2020ds/config.mk | 2 ++
> cpu/mpc85xx/u-boot.lds | 10 +++++++---
> 5 files changed, 15 insertions(+), 3 deletions(-)
>
> diff --git a/board/freescale/mpc8536ds/config.mk b/board/freescale/mpc8536ds/config.mk
> index f030876..c5fe1ba 100644
> --- a/board/freescale/mpc8536ds/config.mk
> +++ b/board/freescale/mpc8536ds/config.mk
> @@ -26,3 +26,5 @@
> ifndef TEXT_BASE
> TEXT_BASE = 0xeff80000
> endif
> +
> +PLATFORM_CPPFLAGS += -DRESET_VECTOR_ADDRESS=0xeffffffc
I suggest we handle this the same way as we do with TEXT_BASE, i. e.
only add a "RESET_VECTOR_ADDRESS=0xeffffffc" in the board config. The
auto-export it to the preprocessor in the toplevel config.mk as done
for TEXT_BASE.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"I believe the use of noise to make music will increase until we
reach a music produced through the aid of electrical instruments
which will make available for musical purposes any and all sounds
that can be heard." - composer John Cage, 1937
More information about the U-Boot
mailing list