rockbox/firmware/target/arm/as3525/boot.lds
Rafaël Carré fd715fa95c as3525*: enable MMU in bootloader
Reserve 1MB of DRAM for loading rockbox and use the rest as BSS
Write sdram setup in assembler and move it to a separate file, together
with MMU init code

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26926 a1c6a512-1295-4272-9138-f99709370657
2010-06-18 17:33:51 +00:00

51 lines
798 B
Text

#include "config.h"
#include "cpu.h"
ENTRY(start)
OUTPUT_FORMAT(elf32-littlearm)
OUTPUT_ARCH(arm)
STARTUP(target/arm/crt0.o)
#define LOAD_SIZE 0x100000 /* Reserve 1MB for loading the firmware */
MEMORY
{
IRAM : ORIGIN = IRAM_ORIG, LENGTH = IRAM_SIZE
DRAM : ORIGIN = DRAM_ORIG + LOAD_SIZE, LENGTH = DRAM_SIZE - LOAD_SIZE - TTB_SIZE
}
SECTIONS
{
. = IRAM_ORIG;
.text : {
*(.init.text)
*(.glue_7)
*(.glue_7t)
*(.text*)
*(.icode)
} > IRAM
.data : {
*(.data*)
*(.rodata*)
_dataend = . ;
} > IRAM
.stack (NOLOAD) :
{
*(.stack)
_stackbegin = .;
stackbegin = .;
. += 0x2000;
_stackend = .;
stackend = .;
} > IRAM
.bss (NOLOAD) : {
_edata = .;
*(.bss*);
*(COMMON)
_end = .;
} > DRAM
}