2011-01-02 23:16:27 +00:00
|
|
|
#define ASM
|
|
|
|
#include "config.h"
|
|
|
|
#include "cpu.h"
|
|
|
|
|
|
|
|
ENTRY(start)
|
|
|
|
|
|
|
|
OUTPUT_FORMAT(elf32-littlearm)
|
|
|
|
OUTPUT_ARCH(arm)
|
|
|
|
STARTUP(target/arm/s5l8702/crt0.o)
|
|
|
|
|
|
|
|
#define PLUGINSIZE PLUGIN_BUFFER_SIZE
|
|
|
|
#define CODECSIZE CODEC_SIZE
|
|
|
|
|
|
|
|
#define IRAMORIG 0x0
|
|
|
|
#define DRAMORIG 0x08000000
|
|
|
|
|
|
|
|
/* End of the audio buffer, where the codec buffer starts */
|
|
|
|
#define ENDAUDIOADDR (DRAMORIG + DRAMSIZE)
|
|
|
|
|
|
|
|
#define DRAMSIZE (DRAM_SIZE - PLUGINSIZE - CODECSIZE - TTB_SIZE)
|
|
|
|
#define CODECORIG (ENDAUDIOADDR)
|
2017-01-13 19:51:07 +00:00
|
|
|
#define IRAMSIZE (48*1024) /* 256KB total - 48KB for core, 200KB for codecs */
|
2011-01-02 23:16:27 +00:00
|
|
|
|
|
|
|
/* Where the codec buffer ends, and the plugin buffer starts */
|
|
|
|
#define ENDADDR (ENDAUDIOADDR + CODECSIZE)
|
|
|
|
|
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
|
|
|
|
DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
|
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
loadaddress = DRAMORIG;
|
|
|
|
|
|
|
|
.intvect : {
|
|
|
|
_intvectstart = . ;
|
|
|
|
*(.intvect)
|
|
|
|
_intvectend = _newstart ;
|
|
|
|
} >IRAM AT> DRAM
|
|
|
|
_intvectcopy = LOADADDR(.intvect) ;
|
|
|
|
|
|
|
|
.text :
|
|
|
|
{
|
|
|
|
_loadaddress = .;
|
|
|
|
_textstart = .;
|
|
|
|
*(.init.text)
|
|
|
|
*(.text*)
|
|
|
|
*(.glue_7)
|
|
|
|
*(.glue_7t)
|
|
|
|
. = ALIGN(0x4);
|
|
|
|
} > DRAM
|
|
|
|
|
|
|
|
.rodata :
|
|
|
|
{
|
|
|
|
*(.rodata*)
|
|
|
|
. = ALIGN(0x4);
|
|
|
|
} > DRAM
|
|
|
|
|
|
|
|
.data :
|
|
|
|
{
|
|
|
|
*(.data*)
|
|
|
|
. = ALIGN(0x4);
|
|
|
|
} > DRAM
|
|
|
|
|
|
|
|
/DISCARD/ :
|
|
|
|
{
|
|
|
|
*(.eh_frame)
|
|
|
|
}
|
|
|
|
|
|
|
|
.iram :
|
|
|
|
{
|
|
|
|
_iramstart = .;
|
2011-12-17 02:00:59 +00:00
|
|
|
*(.icode*)
|
|
|
|
*(.irodata*)
|
|
|
|
*(.idata*)
|
2011-01-02 23:16:27 +00:00
|
|
|
. = ALIGN(0x4);
|
|
|
|
_iramend = .;
|
|
|
|
} > IRAM AT> DRAM
|
|
|
|
_iramcopy = LOADADDR(.iram) ;
|
|
|
|
|
|
|
|
.ibss (NOLOAD) :
|
|
|
|
{
|
|
|
|
_iedata = .;
|
|
|
|
*(.qharray)
|
2011-12-17 02:00:59 +00:00
|
|
|
*(.ibss*)
|
2011-01-02 23:16:27 +00:00
|
|
|
. = ALIGN(0x4);
|
|
|
|
_iend = .;
|
|
|
|
} > IRAM
|
|
|
|
|
|
|
|
.stack (NOLOAD) :
|
|
|
|
{
|
|
|
|
*(.stack)
|
|
|
|
stackbegin = .;
|
|
|
|
_stackbegin = .;
|
2011-02-27 22:47:55 +00:00
|
|
|
. += 0x2000;
|
2011-01-02 23:16:27 +00:00
|
|
|
stackend = .;
|
|
|
|
_stackend = .;
|
|
|
|
_irqstackbegin = .;
|
|
|
|
. += 0x400;
|
|
|
|
_irqstackend = .;
|
|
|
|
_fiqstackbegin = .;
|
|
|
|
. += 0x400;
|
|
|
|
_fiqstackend = .;
|
|
|
|
} > IRAM
|
|
|
|
|
|
|
|
.bss (NOLOAD) :
|
|
|
|
{
|
|
|
|
_edata = .;
|
|
|
|
*(.bss*)
|
|
|
|
*(COMMON)
|
|
|
|
. = ALIGN(0x4);
|
|
|
|
_end = .;
|
|
|
|
} > DRAM
|
|
|
|
|
|
|
|
.audiobuf (NOLOAD) :
|
|
|
|
{
|
|
|
|
. = ALIGN(4);
|
|
|
|
_audiobuffer = .;
|
|
|
|
audiobuffer = .;
|
|
|
|
} > DRAM
|
|
|
|
|
|
|
|
.audiobufend ENDAUDIOADDR (NOLOAD) :
|
|
|
|
{
|
|
|
|
audiobufend = .;
|
|
|
|
_audiobufend = .;
|
|
|
|
} > DRAM
|
|
|
|
|
|
|
|
.codec CODECORIG (NOLOAD) :
|
|
|
|
{
|
|
|
|
codecbuf = .;
|
|
|
|
_codecbuf = .;
|
|
|
|
} > DRAM
|
|
|
|
|
|
|
|
.plugin ENDADDR (NOLOAD) :
|
|
|
|
{
|
|
|
|
_pluginbuf = .;
|
|
|
|
pluginbuf = .;
|
|
|
|
}
|
|
|
|
}
|