diff options
Diffstat (limited to 'firmware/target/arm')
-rw-r--r-- | firmware/target/arm/as3525/app.lds | 22 | ||||
-rw-r--r-- | firmware/target/arm/imx31/app.lds | 10 | ||||
-rw-r--r-- | firmware/target/arm/ipod/app.lds | 10 | ||||
-rw-r--r-- | firmware/target/arm/iriver/app.lds | 10 | ||||
-rw-r--r-- | firmware/target/arm/olympus/app.lds | 10 | ||||
-rw-r--r-- | firmware/target/arm/pbell/app.lds | 10 | ||||
-rw-r--r-- | firmware/target/arm/philips/app.lds | 10 | ||||
-rw-r--r-- | firmware/target/arm/s3c2440/app.lds | 10 | ||||
-rw-r--r-- | firmware/target/arm/s5l8700/app.lds | 9 | ||||
-rw-r--r-- | firmware/target/arm/samsung/app.lds | 10 | ||||
-rw-r--r-- | firmware/target/arm/sandisk/app.lds | 10 | ||||
-rw-r--r-- | firmware/target/arm/tatung/app.lds | 10 | ||||
-rw-r--r-- | firmware/target/arm/tcc77x/app.lds | 8 | ||||
-rw-r--r-- | firmware/target/arm/tcc780x/app.lds | 10 | ||||
-rw-r--r-- | firmware/target/arm/tms320dm320/app.lds | 10 | ||||
-rw-r--r-- | firmware/target/arm/tms320dm320/boot.lds | 8 |
16 files changed, 33 insertions, 134 deletions
diff --git a/firmware/target/arm/as3525/app.lds b/firmware/target/arm/as3525/app.lds index e19ff13878..b24a2cf00b 100644 --- a/firmware/target/arm/as3525/app.lds +++ b/firmware/target/arm/as3525/app.lds | |||
@@ -10,28 +10,18 @@ STARTUP(target/arm/crt0.o) | |||
10 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE | 10 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE |
11 | #define CODECSIZE CODEC_SIZE | 11 | #define CODECSIZE CODEC_SIZE |
12 | 12 | ||
13 | #ifdef DEBUG | ||
14 | #define STUBOFFSET 0x10000 | ||
15 | #else | ||
16 | #define STUBOFFSET 0 | ||
17 | #endif | ||
18 | |||
19 | |||
20 | #define IRAMORIG IRAM_ORIG | ||
21 | #define DRAMORIG (DRAM_ORIG + STUBOFFSET) | ||
22 | |||
23 | /* End of the audio buffer, where the codec buffer starts */ | 13 | /* End of the audio buffer, where the codec buffer starts */ |
24 | #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE) | 14 | #define ENDAUDIOADDR (DRAM_ORIG + DRAMSIZE) |
25 | 15 | ||
26 | #define CODEC_BUFFER_FILLS_IRAM defined(AMS_LOWMEM) || (CONFIG_CPU == AS3525v2) | 16 | #define CODEC_BUFFER_FILLS_IRAM defined(AMS_LOWMEM) || (CONFIG_CPU == AS3525v2) |
27 | 17 | ||
28 | #if CODEC_BUFFER_FILLS_IRAM | 18 | #if CODEC_BUFFER_FILLS_IRAM |
29 | /* Entire codec buffer in IRAM */ | 19 | /* Entire codec buffer in IRAM */ |
30 | #define DRAMSIZE (DRAM_SIZE - STUBOFFSET - PLUGINSIZE - TTB_SIZE) | 20 | #define DRAMSIZE (DRAM_SIZE - PLUGINSIZE - TTB_SIZE) |
31 | #define CODECORIG (IRAMORIG + (IRAM_SIZE - CODEC_SIZE)) | 21 | #define CODECORIG (IRAM_ORIG + (IRAM_SIZE - CODEC_SIZE)) |
32 | #define IRAMSIZE (IRAM_SIZE - CODEC_SIZE) | 22 | #define IRAMSIZE (IRAM_SIZE - CODEC_SIZE) |
33 | #else | 23 | #else |
34 | #define DRAMSIZE (DRAM_SIZE - STUBOFFSET - PLUGINSIZE - CODECSIZE - TTB_SIZE) | 24 | #define DRAMSIZE (DRAM_SIZE - PLUGINSIZE - CODECSIZE - TTB_SIZE) |
35 | #define CODECORIG (ENDAUDIOADDR) | 25 | #define CODECORIG (ENDAUDIOADDR) |
36 | #define IRAMSIZE (0x20000) | 26 | #define IRAMSIZE (0x20000) |
37 | #endif | 27 | #endif |
@@ -49,8 +39,8 @@ MEMORY | |||
49 | #if CODEC_BUFFER_FILLS_IRAM | 39 | #if CODEC_BUFFER_FILLS_IRAM |
50 | CODEC_IRAM : ORIGIN = CODECORIG, LENGTH = CODEC_SIZE | 40 | CODEC_IRAM : ORIGIN = CODECORIG, LENGTH = CODEC_SIZE |
51 | #endif | 41 | #endif |
52 | IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE | 42 | IRAM : ORIGIN = IRAM_ORIG, LENGTH = IRAMSIZE |
53 | DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE | 43 | DRAM : ORIGIN = DRAM_ORIG, LENGTH = DRAMSIZE |
54 | } | 44 | } |
55 | 45 | ||
56 | SECTIONS | 46 | SECTIONS |
diff --git a/firmware/target/arm/imx31/app.lds b/firmware/target/arm/imx31/app.lds index d8d7f4c642..ebfd2e9c60 100644 --- a/firmware/target/arm/imx31/app.lds +++ b/firmware/target/arm/imx31/app.lds | |||
@@ -9,18 +9,12 @@ STARTUP(target/arm/imx31/crt0.o) | |||
9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE | 9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE |
10 | #define CODECSIZE CODEC_SIZE | 10 | #define CODECSIZE CODEC_SIZE |
11 | 11 | ||
12 | #ifdef DEBUG | ||
13 | #define STUBOFFSET 0x10000 | ||
14 | #else | ||
15 | #define STUBOFFSET 0 | ||
16 | #endif | ||
17 | |||
18 | #include "imx31l.h" | 12 | #include "imx31l.h" |
19 | /* Subtract 1MB for the FRAME/TTB section */ | 13 | /* Subtract 1MB for the FRAME/TTB section */ |
20 | #define DRAMSIZE ((MEMORYSIZE * 0x100000) - STUBOFFSET - CODECSIZE - \ | 14 | #define DRAMSIZE ((MEMORYSIZE * 0x100000) - CODECSIZE - \ |
21 | PLUGINSIZE - QHARRAY_SIZE - FRAME_SIZE - TTB_SIZE) | 15 | PLUGINSIZE - QHARRAY_SIZE - FRAME_SIZE - TTB_SIZE) |
22 | 16 | ||
23 | #define DRAMORIG (0x0 + STUBOFFSET) | 17 | #define DRAMORIG 0x0 |
24 | /* #define IRAMORIG 0x1FFFC000 */ | 18 | /* #define IRAMORIG 0x1FFFC000 */ |
25 | #define IRAMORIG DRAMORIG | 19 | #define IRAMORIG DRAMORIG |
26 | #define IRAM DRAM | 20 | #define IRAM DRAM |
diff --git a/firmware/target/arm/ipod/app.lds b/firmware/target/arm/ipod/app.lds index f8e6906a4c..3fe08feddd 100644 --- a/firmware/target/arm/ipod/app.lds +++ b/firmware/target/arm/ipod/app.lds | |||
@@ -9,15 +9,9 @@ STARTUP(target/arm/crt0-pp.o) | |||
9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE | 9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE |
10 | #define CODECSIZE CODEC_SIZE | 10 | #define CODECSIZE CODEC_SIZE |
11 | 11 | ||
12 | #ifdef DEBUG | 12 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - CODECSIZE |
13 | #define STUBOFFSET 0x10000 | ||
14 | #else | ||
15 | #define STUBOFFSET 0 | ||
16 | #endif | ||
17 | |||
18 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE | ||
19 | 13 | ||
20 | #define DRAMORIG 0x00000000 + STUBOFFSET | 14 | #define DRAMORIG 0x00000000 |
21 | #define IRAMORIG 0x40000000 | 15 | #define IRAMORIG 0x40000000 |
22 | #define IRAMSIZE 0xc000 | 16 | #define IRAMSIZE 0xc000 |
23 | 17 | ||
diff --git a/firmware/target/arm/iriver/app.lds b/firmware/target/arm/iriver/app.lds index ec26fdbe38..de355c30b0 100644 --- a/firmware/target/arm/iriver/app.lds +++ b/firmware/target/arm/iriver/app.lds | |||
@@ -9,15 +9,9 @@ STARTUP(target/arm/crt0-pp.o) | |||
9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE | 9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE |
10 | #define CODECSIZE CODEC_SIZE | 10 | #define CODECSIZE CODEC_SIZE |
11 | 11 | ||
12 | #ifdef DEBUG | 12 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - CODECSIZE |
13 | #define STUBOFFSET 0x10000 | ||
14 | #else | ||
15 | #define STUBOFFSET 0 | ||
16 | #endif | ||
17 | |||
18 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE | ||
19 | 13 | ||
20 | #define DRAMORIG 0x00000000 + STUBOFFSET | 14 | #define DRAMORIG 0x00000000 |
21 | #define IRAMORIG 0x40000000 | 15 | #define IRAMORIG 0x40000000 |
22 | #define IRAMSIZE 0xc000 | 16 | #define IRAMSIZE 0xc000 |
23 | 17 | ||
diff --git a/firmware/target/arm/olympus/app.lds b/firmware/target/arm/olympus/app.lds index ec26fdbe38..de355c30b0 100644 --- a/firmware/target/arm/olympus/app.lds +++ b/firmware/target/arm/olympus/app.lds | |||
@@ -9,15 +9,9 @@ STARTUP(target/arm/crt0-pp.o) | |||
9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE | 9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE |
10 | #define CODECSIZE CODEC_SIZE | 10 | #define CODECSIZE CODEC_SIZE |
11 | 11 | ||
12 | #ifdef DEBUG | 12 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - CODECSIZE |
13 | #define STUBOFFSET 0x10000 | ||
14 | #else | ||
15 | #define STUBOFFSET 0 | ||
16 | #endif | ||
17 | |||
18 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE | ||
19 | 13 | ||
20 | #define DRAMORIG 0x00000000 + STUBOFFSET | 14 | #define DRAMORIG 0x00000000 |
21 | #define IRAMORIG 0x40000000 | 15 | #define IRAMORIG 0x40000000 |
22 | #define IRAMSIZE 0xc000 | 16 | #define IRAMSIZE 0xc000 |
23 | 17 | ||
diff --git a/firmware/target/arm/pbell/app.lds b/firmware/target/arm/pbell/app.lds index ec26fdbe38..de355c30b0 100644 --- a/firmware/target/arm/pbell/app.lds +++ b/firmware/target/arm/pbell/app.lds | |||
@@ -9,15 +9,9 @@ STARTUP(target/arm/crt0-pp.o) | |||
9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE | 9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE |
10 | #define CODECSIZE CODEC_SIZE | 10 | #define CODECSIZE CODEC_SIZE |
11 | 11 | ||
12 | #ifdef DEBUG | 12 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - CODECSIZE |
13 | #define STUBOFFSET 0x10000 | ||
14 | #else | ||
15 | #define STUBOFFSET 0 | ||
16 | #endif | ||
17 | |||
18 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE | ||
19 | 13 | ||
20 | #define DRAMORIG 0x00000000 + STUBOFFSET | 14 | #define DRAMORIG 0x00000000 |
21 | #define IRAMORIG 0x40000000 | 15 | #define IRAMORIG 0x40000000 |
22 | #define IRAMSIZE 0xc000 | 16 | #define IRAMSIZE 0xc000 |
23 | 17 | ||
diff --git a/firmware/target/arm/philips/app.lds b/firmware/target/arm/philips/app.lds index ec26fdbe38..de355c30b0 100644 --- a/firmware/target/arm/philips/app.lds +++ b/firmware/target/arm/philips/app.lds | |||
@@ -9,15 +9,9 @@ STARTUP(target/arm/crt0-pp.o) | |||
9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE | 9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE |
10 | #define CODECSIZE CODEC_SIZE | 10 | #define CODECSIZE CODEC_SIZE |
11 | 11 | ||
12 | #ifdef DEBUG | 12 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - CODECSIZE |
13 | #define STUBOFFSET 0x10000 | ||
14 | #else | ||
15 | #define STUBOFFSET 0 | ||
16 | #endif | ||
17 | |||
18 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE | ||
19 | 13 | ||
20 | #define DRAMORIG 0x00000000 + STUBOFFSET | 14 | #define DRAMORIG 0x00000000 |
21 | #define IRAMORIG 0x40000000 | 15 | #define IRAMORIG 0x40000000 |
22 | #define IRAMSIZE 0xc000 | 16 | #define IRAMSIZE 0xc000 |
23 | 17 | ||
diff --git a/firmware/target/arm/s3c2440/app.lds b/firmware/target/arm/s3c2440/app.lds index a436d65770..bfd672d1a3 100644 --- a/firmware/target/arm/s3c2440/app.lds +++ b/firmware/target/arm/s3c2440/app.lds | |||
@@ -9,16 +9,10 @@ STARTUP(target/arm/s3c2440/crt0.o) | |||
9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE | 9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE |
10 | #define CODECSIZE CODEC_SIZE | 10 | #define CODECSIZE CODEC_SIZE |
11 | 11 | ||
12 | #ifdef DEBUG | ||
13 | #define STUBOFFSET 0x10000 | ||
14 | #else | ||
15 | #define STUBOFFSET 0 | ||
16 | #endif | ||
17 | |||
18 | #include "cpu.h" | 12 | #include "cpu.h" |
19 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - STUBOFFSET - PLUGINSIZE - CODECSIZE - LCD_BUFFER_SIZE - TTB_SIZE | 13 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - CODECSIZE - LCD_BUFFER_SIZE - TTB_SIZE |
20 | 14 | ||
21 | #define DRAMORIG 0x00000000 + STUBOFFSET | 15 | #define DRAMORIG 0x00000000 |
22 | 16 | ||
23 | /* End of the audio buffer, where the codec buffer starts */ | 17 | /* End of the audio buffer, where the codec buffer starts */ |
24 | #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE) | 18 | #define ENDAUDIOADDR (DRAMORIG + DRAMSIZE) |
diff --git a/firmware/target/arm/s5l8700/app.lds b/firmware/target/arm/s5l8700/app.lds index 7020c725e0..f055dffd79 100644 --- a/firmware/target/arm/s5l8700/app.lds +++ b/firmware/target/arm/s5l8700/app.lds | |||
@@ -10,13 +10,6 @@ STARTUP(target/arm/s5l8700/crt0.o) | |||
10 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE | 10 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE |
11 | #define CODECSIZE CODEC_SIZE | 11 | #define CODECSIZE CODEC_SIZE |
12 | 12 | ||
13 | #ifdef DEBUG | ||
14 | #define STUBOFFSET 0x10000 | ||
15 | #else | ||
16 | #define STUBOFFSET 0 | ||
17 | #endif | ||
18 | |||
19 | |||
20 | #define IRAMORIG 0x0 | 13 | #define IRAMORIG 0x0 |
21 | #define DRAMORIG 0x08000000 | 14 | #define DRAMORIG 0x08000000 |
22 | 15 | ||
@@ -25,7 +18,7 @@ STARTUP(target/arm/s5l8700/crt0.o) | |||
25 | 18 | ||
26 | #define DRAM_SIZE (MEMORYSIZE * 0x100000) | 19 | #define DRAM_SIZE (MEMORYSIZE * 0x100000) |
27 | 20 | ||
28 | #define DRAMSIZE (DRAM_SIZE - STUBOFFSET - PLUGINSIZE - CODECSIZE) | 21 | #define DRAMSIZE (DRAM_SIZE - PLUGINSIZE - CODECSIZE) |
29 | #define CODECORIG (ENDAUDIOADDR) | 22 | #define CODECORIG (ENDAUDIOADDR) |
30 | #if CONFIG_CPU==S5L8700 | 23 | #if CONFIG_CPU==S5L8700 |
31 | #define IRAMSIZE (128*1024) /* 256KB total - 128KB for core, 128KB for plugins */ | 24 | #define IRAMSIZE (128*1024) /* 256KB total - 128KB for core, 128KB for plugins */ |
diff --git a/firmware/target/arm/samsung/app.lds b/firmware/target/arm/samsung/app.lds index ec26fdbe38..de355c30b0 100644 --- a/firmware/target/arm/samsung/app.lds +++ b/firmware/target/arm/samsung/app.lds | |||
@@ -9,15 +9,9 @@ STARTUP(target/arm/crt0-pp.o) | |||
9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE | 9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE |
10 | #define CODECSIZE CODEC_SIZE | 10 | #define CODECSIZE CODEC_SIZE |
11 | 11 | ||
12 | #ifdef DEBUG | 12 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - CODECSIZE |
13 | #define STUBOFFSET 0x10000 | ||
14 | #else | ||
15 | #define STUBOFFSET 0 | ||
16 | #endif | ||
17 | |||
18 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE | ||
19 | 13 | ||
20 | #define DRAMORIG 0x00000000 + STUBOFFSET | 14 | #define DRAMORIG 0x00000000 |
21 | #define IRAMORIG 0x40000000 | 15 | #define IRAMORIG 0x40000000 |
22 | #define IRAMSIZE 0xc000 | 16 | #define IRAMSIZE 0xc000 |
23 | 17 | ||
diff --git a/firmware/target/arm/sandisk/app.lds b/firmware/target/arm/sandisk/app.lds index ec26fdbe38..de355c30b0 100644 --- a/firmware/target/arm/sandisk/app.lds +++ b/firmware/target/arm/sandisk/app.lds | |||
@@ -9,15 +9,9 @@ STARTUP(target/arm/crt0-pp.o) | |||
9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE | 9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE |
10 | #define CODECSIZE CODEC_SIZE | 10 | #define CODECSIZE CODEC_SIZE |
11 | 11 | ||
12 | #ifdef DEBUG | 12 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - CODECSIZE |
13 | #define STUBOFFSET 0x10000 | ||
14 | #else | ||
15 | #define STUBOFFSET 0 | ||
16 | #endif | ||
17 | |||
18 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE | ||
19 | 13 | ||
20 | #define DRAMORIG 0x00000000 + STUBOFFSET | 14 | #define DRAMORIG 0x00000000 |
21 | #define IRAMORIG 0x40000000 | 15 | #define IRAMORIG 0x40000000 |
22 | #define IRAMSIZE 0xc000 | 16 | #define IRAMSIZE 0xc000 |
23 | 17 | ||
diff --git a/firmware/target/arm/tatung/app.lds b/firmware/target/arm/tatung/app.lds index d7159e8e1e..cda0190809 100644 --- a/firmware/target/arm/tatung/app.lds +++ b/firmware/target/arm/tatung/app.lds | |||
@@ -9,15 +9,9 @@ STARTUP(target/arm/crt0-pp.o) | |||
9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE | 9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE |
10 | #define CODECSIZE CODEC_SIZE | 10 | #define CODECSIZE CODEC_SIZE |
11 | 11 | ||
12 | #ifdef DEBUG | 12 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - CODECSIZE |
13 | #define STUBOFFSET 0x10000 | ||
14 | #else | ||
15 | #define STUBOFFSET 0 | ||
16 | #endif | ||
17 | |||
18 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE | ||
19 | 13 | ||
20 | #define DRAMORIG 0x00000000 + STUBOFFSET | 14 | #define DRAMORIG 0x00000000 |
21 | #define IRAMORIG 0x40000000 | 15 | #define IRAMORIG 0x40000000 |
22 | #define IRAMSIZE 0xc000 | 16 | #define IRAMSIZE 0xc000 |
23 | 17 | ||
diff --git a/firmware/target/arm/tcc77x/app.lds b/firmware/target/arm/tcc77x/app.lds index c50367cb08..991b7156fe 100644 --- a/firmware/target/arm/tcc77x/app.lds +++ b/firmware/target/arm/tcc77x/app.lds | |||
@@ -7,14 +7,8 @@ STARTUP(target/arm/tcc77x/crt0.o) | |||
7 | 7 | ||
8 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE | 8 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE |
9 | #define CODECSIZE CODEC_SIZE | 9 | #define CODECSIZE CODEC_SIZE |
10 | |||
11 | #ifdef DEBUG | ||
12 | #define STUBOFFSET 0x10000 | ||
13 | #else | ||
14 | #define STUBOFFSET 0 | ||
15 | #endif | ||
16 | 10 | ||
17 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET - CODECSIZE | 11 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - CODECSIZE |
18 | 12 | ||
19 | #define DRAMORIG 0x20000000 | 13 | #define DRAMORIG 0x20000000 |
20 | #define IRAMORIG 0x00000000 | 14 | #define IRAMORIG 0x00000000 |
diff --git a/firmware/target/arm/tcc780x/app.lds b/firmware/target/arm/tcc780x/app.lds index e31e46fde7..9d5570a487 100644 --- a/firmware/target/arm/tcc780x/app.lds +++ b/firmware/target/arm/tcc780x/app.lds | |||
@@ -9,16 +9,10 @@ STARTUP(target/arm/tcc780x/crt0.o) | |||
9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE | 9 | #define PLUGINSIZE PLUGIN_BUFFER_SIZE |
10 | #define CODECSIZE CODEC_SIZE | 10 | #define CODECSIZE CODEC_SIZE |
11 | 11 | ||
12 | #ifdef DEBUG | ||
13 | #define STUBOFFSET 0x10000 | ||
14 | #else | ||
15 | #define STUBOFFSET 0 | ||
16 | #endif | ||
17 | |||
18 | #include "cpu.h" | 12 | #include "cpu.h" |
19 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - STUBOFFSET - PLUGINSIZE - CODECSIZE - TTB_SIZE | 13 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - CODECSIZE - TTB_SIZE |
20 | 14 | ||
21 | #define DRAMORIG 0x20000000 + STUBOFFSET | 15 | #define DRAMORIG 0x20000000 |
22 | #define ITCMORIG 0x00000000 | 16 | #define ITCMORIG 0x00000000 |
23 | #define ITCMSIZE 0x1000 | 17 | #define ITCMSIZE 0x1000 |
24 | #define DTCMORIG 0xA0000000 | 18 | #define DTCMORIG 0xA0000000 |
diff --git a/firmware/target/arm/tms320dm320/app.lds b/firmware/target/arm/tms320dm320/app.lds index 4e23b533a9..3a9c01708a 100644 --- a/firmware/target/arm/tms320dm320/app.lds +++ b/firmware/target/arm/tms320dm320/app.lds | |||
@@ -6,12 +6,6 @@ OUTPUT_FORMAT(elf32-littlearm) | |||
6 | OUTPUT_ARCH(arm) | 6 | OUTPUT_ARCH(arm) |
7 | STARTUP(target/arm/tms320dm320/crt0.o) | 7 | STARTUP(target/arm/tms320dm320/crt0.o) |
8 | 8 | ||
9 | #ifdef DEBUG | ||
10 | #define STUBOFFSET 0x10000 | ||
11 | #else | ||
12 | #define STUBOFFSET 0 | ||
13 | #endif | ||
14 | |||
15 | #ifndef LCD_NATIVE_WIDTH | 9 | #ifndef LCD_NATIVE_WIDTH |
16 | #define LCD_NATIVE_WIDTH LCD_WIDTH | 10 | #define LCD_NATIVE_WIDTH LCD_WIDTH |
17 | #endif | 11 | #endif |
@@ -33,9 +27,9 @@ STARTUP(target/arm/tms320dm320/crt0.o) | |||
33 | */ | 27 | */ |
34 | #define LCD_TTB_AREA 0x100000*((LCD_BUFFER_SIZE>>19)+1) | 28 | #define LCD_TTB_AREA 0x100000*((LCD_BUFFER_SIZE>>19)+1) |
35 | 29 | ||
36 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - STUBOFFSET | 30 | #define DRAMSIZE (MEMORYSIZE * 0x100000) |
37 | 31 | ||
38 | #define DRAMORIG 0x00900000 + STUBOFFSET | 32 | #define DRAMORIG 0x00900000 |
39 | #define IRAMORIG 0x00000000 | 33 | #define IRAMORIG 0x00000000 |
40 | #define IRAMSIZE 0x4000 | 34 | #define IRAMSIZE 0x4000 |
41 | 35 | ||
diff --git a/firmware/target/arm/tms320dm320/boot.lds b/firmware/target/arm/tms320dm320/boot.lds index c4223ddb62..11fc79c24a 100644 --- a/firmware/target/arm/tms320dm320/boot.lds +++ b/firmware/target/arm/tms320dm320/boot.lds | |||
@@ -6,12 +6,6 @@ OUTPUT_FORMAT(elf32-littlearm) | |||
6 | OUTPUT_ARCH(arm) | 6 | OUTPUT_ARCH(arm) |
7 | STARTUP(target/arm/tms320dm320/crt0.o) | 7 | STARTUP(target/arm/tms320dm320/crt0.o) |
8 | 8 | ||
9 | #ifdef DEBUG | ||
10 | #define STUBOFFSET 0x10000 | ||
11 | #else | ||
12 | #define STUBOFFSET 0 | ||
13 | #endif | ||
14 | |||
15 | #ifndef LCD_NATIVE_WIDTH | 9 | #ifndef LCD_NATIVE_WIDTH |
16 | #define LCD_NATIVE_WIDTH LCD_WIDTH | 10 | #define LCD_NATIVE_WIDTH LCD_WIDTH |
17 | #endif | 11 | #endif |
@@ -35,7 +29,7 @@ STARTUP(target/arm/tms320dm320/crt0.o) | |||
35 | 29 | ||
36 | #define BOOT_OFFSET 0x1000000 | 30 | #define BOOT_OFFSET 0x1000000 |
37 | 31 | ||
38 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - STUBOFFSET - BOOT_OFFSET | 32 | #define DRAMSIZE (MEMORYSIZE * 0x100000) - BOOT_OFFSET |
39 | 33 | ||
40 | #define DRAMORIG (0x00900000+BOOT_OFFSET) /* actually it's 0x00900000 */ | 34 | #define DRAMORIG (0x00900000+BOOT_OFFSET) /* actually it's 0x00900000 */ |
41 | #define IRAMORIG 0x00000000 | 35 | #define IRAMORIG 0x00000000 |