mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
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
This commit is contained in:
parent
6e5330f663
commit
fd715fa95c
12 changed files with 200 additions and 198 deletions
|
|
@ -6,39 +6,31 @@ OUTPUT_FORMAT(elf32-littlearm)
|
|||
OUTPUT_ARCH(arm)
|
||||
STARTUP(target/arm/crt0.o)
|
||||
|
||||
#ifdef SANSA_CLIPV2
|
||||
#define RAMORIG 0x0 /* DRAM */
|
||||
#define RAMSIZE (MEM*0x100000)
|
||||
#else
|
||||
#define RAMORIG 0x81000000 /* IRAM */
|
||||
#define RAMSIZE 0x50000
|
||||
#endif
|
||||
#define LOAD_SIZE 0x100000 /* Reserve 1MB for loading the firmware */
|
||||
|
||||
MEMORY
|
||||
{
|
||||
RAM : ORIGIN = RAMORIG, LENGTH = RAMSIZE
|
||||
IRAM : ORIGIN = IRAM_ORIG, LENGTH = IRAM_SIZE
|
||||
DRAM : ORIGIN = DRAM_ORIG + LOAD_SIZE, LENGTH = DRAM_SIZE - LOAD_SIZE - TTB_SIZE
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
. = RAMORIG;
|
||||
. = IRAM_ORIG;
|
||||
|
||||
.text : {
|
||||
*(.init.text)
|
||||
*(.glue_7)
|
||||
*(.glue_7t)
|
||||
*(.text*)
|
||||
} > RAM
|
||||
*(.icode)
|
||||
} > IRAM
|
||||
|
||||
.data : {
|
||||
*(.icode)
|
||||
*(.irodata)
|
||||
*(.idata)
|
||||
*(.data*)
|
||||
*(.ncdata*)
|
||||
*(.rodata*)
|
||||
_dataend = . ;
|
||||
} > RAM
|
||||
} > IRAM
|
||||
|
||||
.stack (NOLOAD) :
|
||||
{
|
||||
|
|
@ -48,14 +40,12 @@ SECTIONS
|
|||
. += 0x2000;
|
||||
_stackend = .;
|
||||
stackend = .;
|
||||
} > RAM
|
||||
} > IRAM
|
||||
|
||||
.bss (NOLOAD) : {
|
||||
_edata = .;
|
||||
*(.bss*);
|
||||
*(.ibss);
|
||||
*(COMMON)
|
||||
*(.ncbss*);
|
||||
_end = .;
|
||||
} > RAM
|
||||
} > DRAM
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue