From a0086b61e142ec2847d90b0ba6643a106d81f3f4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 26 Feb 2003 09:18:13 +0000 Subject: The new preprocessed version of this file allows us to use #defines and macros, and we now take advantage of that to set DRAM size. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3346 a1c6a512-1295-4272-9138-f99709370657 --- firmware/app.lds | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/app.lds b/firmware/app.lds index 3cbf38210e..c6149252cb 100644 --- a/firmware/app.lds +++ b/firmware/app.lds @@ -2,9 +2,11 @@ ENTRY(start) OUTPUT_FORMAT(elf32-sh) INPUT(crt0.o) +#define DRAMSIZE (MEMORYSIZE * 0x100000) + MEMORY { - DRAM : ORIGIN = 0x09000000, LENGTH = 0x200000 + DRAM : ORIGIN = 0x09000000, LENGTH = DRAMSIZE IRAM : ORIGIN = 0x0f000000, LENGTH = 0x1000 } -- cgit v1.2.3