diff options
Diffstat (limited to 'firmware/app.lds')
-rw-r--r-- | firmware/app.lds | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/firmware/app.lds b/firmware/app.lds index 965d7950af..1053437106 100644 --- a/firmware/app.lds +++ b/firmware/app.lds | |||
@@ -45,9 +45,10 @@ INPUT(target/sh/crt0.o) | |||
45 | #define IRAMORIG 0x400000 | 45 | #define IRAMORIG 0x400000 |
46 | #define IRAMSIZE 0x7000 | 46 | #define IRAMSIZE 0x7000 |
47 | #elif CONFIG_CPU==S3C2440 | 47 | #elif CONFIG_CPU==S3C2440 |
48 | #define DRAMORIG 0x30000000 + STUBOFFSET | 48 | #define DRAMORIG 0x100 + STUBOFFSET |
49 | #define IRAMORIG 0x40000000 | 49 | #define IRAMORIG DRAMORIG |
50 | #define IRAMSIZE 4K | 50 | #define IRAMSIZE 4K |
51 | #define IRAM DRAM | ||
51 | #else | 52 | #else |
52 | #define DRAMORIG 0x09000000 + STUBOFFSET | 53 | #define DRAMORIG 0x09000000 + STUBOFFSET |
53 | #define IRAMORIG 0x0f000000 | 54 | #define IRAMORIG 0x0f000000 |
@@ -63,7 +64,9 @@ INPUT(target/sh/crt0.o) | |||
63 | MEMORY | 64 | MEMORY |
64 | { | 65 | { |
65 | DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE | 66 | DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE |
67 | #if CONFIG_CPU != S3C2440 | ||
66 | IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE | 68 | IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE |
69 | #endif | ||
67 | #if CONFIG_CPU==PNX0101 | 70 | #if CONFIG_CPU==PNX0101 |
68 | IRAM0 : ORIGIN = 0x0, LENGTH = IRAMSIZE | 71 | IRAM0 : ORIGIN = 0x0, LENGTH = IRAMSIZE |
69 | #endif | 72 | #endif |
@@ -146,6 +149,8 @@ SECTIONS | |||
146 | 149 | ||
147 | #if CONFIG_CPU==PNX0101 | 150 | #if CONFIG_CPU==PNX0101 |
148 | .iram IRAMORIG + SIZEOF(.vectors) : | 151 | .iram IRAMORIG + SIZEOF(.vectors) : |
152 | #elif CONFIG_CPU==S3C2440 | ||
153 | .iram : | ||
149 | #else | 154 | #else |
150 | .iram IRAMORIG : | 155 | .iram IRAMORIG : |
151 | #endif | 156 | #endif |
@@ -200,7 +205,7 @@ SECTIONS | |||
200 | 205 | ||
201 | #if defined(CPU_COLDFIRE) | 206 | #if defined(CPU_COLDFIRE) |
202 | .bss ADDR(.data) + SIZEOF(.data) + SIZEOF(.iram): | 207 | .bss ADDR(.data) + SIZEOF(.data) + SIZEOF(.iram): |
203 | #elif defined(CPU_ARM) | 208 | #elif defined(CPU_ARM) && CONFIG_CPU != S3C2440 |
204 | .bss ADDR(.data) + SIZEOF(.data) + SIZEOF(.iram) + SIZEOF(.vectors): | 209 | .bss ADDR(.data) + SIZEOF(.data) + SIZEOF(.iram) + SIZEOF(.vectors): |
205 | #else | 210 | #else |
206 | .bss : | 211 | .bss : |