diff mbox

[U-Boot,RESEND,24/24] r2dplus: fixup CONFIG_SYS_TEXT_BASE to account arch/sh changes

Message ID 20161127221536.9577-25-vz@mleia.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Vladimir Zapolskiy Nov. 27, 2016, 10:15 p.m. UTC
This change allows to reserve enough space at the end of board SDRAM
to store two copies of U-Boot and malloc heap.

Due to selection of the CONFIG_SYS_TEXT_BASE the second code/data
copying is not avoided, first of all this may depend on a used
toolchain, secondly at this point some level of volatility is wanted
to do more platform changes and do not care about probably changed
calculated in runtime relocation offset.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
---
 include/configs/r2dplus.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Dec. 4, 2016, 12:44 a.m. UTC | #1
On Mon, Nov 28, 2016 at 12:15:36AM +0200, Vladimir Zapolskiy wrote:

> This change allows to reserve enough space at the end of board SDRAM
> to store two copies of U-Boot and malloc heap.
> 
> Due to selection of the CONFIG_SYS_TEXT_BASE the second code/data
> copying is not avoided, first of all this may depend on a used
> toolchain, secondly at this point some level of volatility is wanted
> to do more platform changes and do not care about probably changed
> calculated in runtime relocation offset.
> 
> Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/include/configs/r2dplus.h b/include/configs/r2dplus.h
index e8f60b2..0e954af 100644
--- a/include/configs/r2dplus.h
+++ b/include/configs/r2dplus.h
@@ -29,7 +29,7 @@ 
 #define CONFIG_SYS_SDRAM_BASE		0x8C000000
 #define CONFIG_SYS_SDRAM_SIZE		0x04000000
 
-#define CONFIG_SYS_TEXT_BASE		0x8FFC0000
+#define CONFIG_SYS_TEXT_BASE		0x8FE00000
 #define CONFIG_SYS_LONGHELP
 #define CONFIG_SYS_CBSIZE		256
 #define CONFIG_SYS_PBSIZE		256