forked from len0rd/rockbox
Adapted for iRiver H1xx
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5187 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f8e1183a52
commit
c00e4b29e9
1 changed files with 20 additions and 7 deletions
|
@ -1,25 +1,38 @@
|
|||
#include "config.h"
|
||||
|
||||
ENTRY(start)
|
||||
#if CONFIG_CPU == MCF5249
|
||||
OUTPUT_FORMAT(elf32-m68k)
|
||||
#else
|
||||
OUTPUT_FORMAT(elf32-sh)
|
||||
#endif
|
||||
INPUT(crt0.o)
|
||||
|
||||
#define PLUGINSIZE 0x8000
|
||||
|
||||
#ifdef DEBUG
|
||||
#define DRAMSIZE 0x1f0000 - PLUGINSIZE
|
||||
#define ORIGADDR 0x09010000
|
||||
|
||||
#define STUBOFFSET 0x10000
|
||||
#else
|
||||
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE
|
||||
#define ORIGADDR 0x09000000
|
||||
#define STUBOFFSET 0
|
||||
#endif
|
||||
|
||||
#define DRAMSIZE (MEMORYSIZE * 0x100000) - PLUGINSIZE - STUBOFFSET
|
||||
#define ENDADDR (ORIGADDR + DRAMSIZE)
|
||||
|
||||
#ifdef IRIVER_H100
|
||||
#define DRAMORIG 0x20000000 + STUBOFFSET
|
||||
#define IRAMORIG 0x10000000
|
||||
#define IRAMSIZE 0x18000
|
||||
#else
|
||||
#define DRAMORIG 0x09000000 + STUBOFFSET
|
||||
#define IRAMORIG 0x0f000000
|
||||
#define IRAMSIZE 0x1000
|
||||
#endif
|
||||
|
||||
MEMORY
|
||||
{
|
||||
DRAM : ORIGIN = ORIGADDR, LENGTH = DRAMSIZE
|
||||
IRAM : ORIGIN = 0x0f000000, LENGTH = 0x1000
|
||||
DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
|
||||
IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
|
||||
}
|
||||
|
||||
SECTIONS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue