
Dear Kumar Gala,
In message 1252514873-7782-1-git-send-email-galak@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@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