mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-15 08:02:34 -05:00
Initial commit of work-in-progress iPod port
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7781 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3cd5c646d0
commit
77372d1218
24 changed files with 2178 additions and 21 deletions
|
|
@ -3,10 +3,14 @@
|
|||
ENTRY(start)
|
||||
#ifdef CPU_COLDFIRE
|
||||
OUTPUT_FORMAT(elf32-m68k)
|
||||
INPUT(crt0.o)
|
||||
#elif CONFIG_CPU == PP5020
|
||||
OUTPUT_FORMAT(elf32-littlearm)
|
||||
OUTPUT_ARCH(arm)
|
||||
#else
|
||||
OUTPUT_FORMAT(elf32-sh)
|
||||
#endif
|
||||
INPUT(crt0.o)
|
||||
#endif
|
||||
|
||||
#if MEMORYSIZE >= 32
|
||||
#define PLUGINSIZE 0xC0000
|
||||
|
|
@ -22,6 +26,12 @@ INPUT(crt0.o)
|
|||
#define IRAMSIZE 0x18000
|
||||
#define FLASHORIG 0x001f0000
|
||||
#define FLASHSIZE 2M
|
||||
#elif CONFIG_CPU == PP5020
|
||||
#define DRAMORIG 0x10000000
|
||||
#define IRAMORIG 0x40000000
|
||||
#define IRAMSIZE 0x18000
|
||||
#define FLASHORIG 0x001f0000
|
||||
#define FLASHSIZE 2M
|
||||
#else
|
||||
#define DRAMORIG 0x09000000
|
||||
#define IRAMORIG 0x0f000000
|
||||
|
|
@ -32,13 +42,55 @@ INPUT(crt0.o)
|
|||
|
||||
#define ENDADDR (IRAMORIG + IRAMSIZE)
|
||||
|
||||
#if CONFIG_CPU!=PP5020
|
||||
MEMORY
|
||||
{
|
||||
DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
|
||||
IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
|
||||
FLASH : ORIGIN = FLASHORIG, LENGTH = FLASHSIZE
|
||||
}
|
||||
#endif
|
||||
|
||||
SECTIONS
|
||||
#if CONFIG_CPU==PP5020
|
||||
{
|
||||
. = IRAMORIG;
|
||||
|
||||
.text : {
|
||||
*(.init.text)
|
||||
*(.text)
|
||||
}
|
||||
|
||||
.data : {
|
||||
*(.icode)
|
||||
*(.irodata)
|
||||
*(.idata)
|
||||
*(.data)
|
||||
_dataend = . ;
|
||||
}
|
||||
|
||||
.stack :
|
||||
{
|
||||
*(.stack)
|
||||
_stackbegin = .;
|
||||
stackbegin = .;
|
||||
. += 0x2000;
|
||||
_stackend = .;
|
||||
stackend = .;
|
||||
}
|
||||
|
||||
/* The bss section is too large for IRAM - we just move it near the
|
||||
end of the regular RAM. */
|
||||
|
||||
. = 0x11c00000;
|
||||
.bss : {
|
||||
_bssstart = .;
|
||||
*(.bss);
|
||||
*(.ibss);
|
||||
_bssend = . ;
|
||||
}
|
||||
}
|
||||
#else
|
||||
{
|
||||
.vectors :
|
||||
{
|
||||
|
|
@ -114,3 +166,4 @@ SECTIONS
|
|||
_pluginbuf = .;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue