From 678b6d02aca2fab258c3101a05331bd3b6367a62 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Tue, 18 Nov 2008 17:15:56 +0000 Subject: Sansa AMS: Use IRAM (in app linker script and crt0.S) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19137 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/app.lds | 41 +++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 12 deletions(-) (limited to 'firmware/target/arm/as3525') diff --git a/firmware/target/arm/as3525/app.lds b/firmware/target/arm/as3525/app.lds index 08b119eb3f..c2d3ed83ee 100644 --- a/firmware/target/arm/as3525/app.lds +++ b/firmware/target/arm/as3525/app.lds @@ -38,20 +38,11 @@ SECTIONS { loadaddress = 0x30000000; - .vectors DRAMORIG : - { - _vectorstart = .; - *(.vectors*); - *(.init.text) - . = ALIGN(0x4); - } > DRAM - .text : { _textstart = .; *(.text) *(.text*) - *(.icode) *(.glue_7) *(.glue_7t) . = ALIGN(0x4); @@ -63,14 +54,12 @@ SECTIONS *(.rodata*) *(.rodata.str1.1) *(.rodata.str1.4) - *(.irodata*) . = ALIGN(0x4); } > DRAM .data : { *(.data*) - *(.idata*) . = ALIGN(0x4); } > DRAM @@ -93,12 +82,40 @@ SECTIONS { _edata = .; *(.bss*) - *(.ibss*) *(COMMON) . = ALIGN(0x4); _end = .; } > DRAM + .vectors IRAMORIG: + { + _vectors_start = .; + *(.init.text) + } > IRAM AT > DRAM + + _vectorscopy = LOADADDR(.vectors); + + .ibss (NOLOAD) : + { + _iedata = .; + *(.qharray) + *(.ibss) + . = ALIGN(0x4); + _iend = .; + } > IRAM + + .iram _iend : + { + _iramstart = .; + *(.icode) + *(.irodata) + *(.idata) + . = ALIGN(0x4); + _iramend = .; + } > IRAM AT> DRAM + + _iramcopy = LOADADDR(.iram); + .audiobuf (NOLOAD) : { . = ALIGN(4); -- cgit v1.2.3