From 2e33ffd5e02f0021b9794b3918cd543bd1049905 Mon Sep 17 00:00:00 2001 From: jcar Date: Fri, 7 Sep 2012 09:56:20 +0200 Subject: [PATCH] Corrected error in crt --- arch/ppc/crt0.sx | 2 +- boards/mpc5606b_xpc560b/build_config.mk | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/ppc/crt0.sx b/arch/ppc/crt0.sx index 484fed07..23938200 100644 --- a/arch/ppc/crt0.sx +++ b/arch/ppc/crt0.sx @@ -99,7 +99,7 @@ init_RAM: #error SRAM_SIZE not defined. Add it to board//build_config.mk #endif - LOAD_ADDR_32(r4,SRAM_SIZE/(32*4)) + LOAD_ADDR_32(r12,SRAM_SIZE/(32*4)) mtctr r12 init_ram_loop: diff --git a/boards/mpc5606b_xpc560b/build_config.mk b/boards/mpc5606b_xpc560b/build_config.mk index ee230292..1315745c 100644 --- a/boards/mpc5606b_xpc560b/build_config.mk +++ b/boards/mpc5606b_xpc560b/build_config.mk @@ -27,3 +27,6 @@ MOD_USE += MCU KERNEL ECUM DET COMPILER?=cw DEFAULT_CROSS_COMPILE = /opt/powerpc-eabispe/bin/powerpc-eabispe- DEFAULT_CW_COMPILE= /opt/cw + +# Defines +def-y += SRAM_SIZE=0x14000 -- 2.39.2