1
0
Fork 0
forked from len0rd/rockbox

D2: Fix IRAM usage, but disable it for now as Tremor does not fit ('make zip' works now). Fix duplicate CONFIG_LCD value.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16623 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rob Purchase 2008-03-10 21:39:04 +00:00
parent 292f139f4c
commit 9603e4e92f
3 changed files with 24 additions and 5 deletions

View file

@ -261,7 +261,6 @@ SECTIONS
.itcm :
{
_itcmstart = .;
*(.icode)
_itcmend = .;
} > ITCM AT> DRAM
@ -270,13 +269,23 @@ SECTIONS
.dtcm :
{
_dtcmstart = .;
*(.irodata)
*(.idata)
_dtcmend = .;
} > DTCM AT> DRAM
_dtcmcopy = LOADADDR(.dtcm);
.iram :
{
_iramstart = .;
*(.irodata)
*(.idata)
*(.icode)
. = ALIGN(0x4);
_iramend = .;
} > SRAM AT> DRAM
_iramcopy = LOADADDR(.iram);
.ibss (NOLOAD) :
{
_iedata = .;

View file

@ -114,9 +114,9 @@
#define LCD_MROBE100 19 /* as used by Olympus M:Robe 100 */
#define LCD_LOGIKDAX 20 /* as used by Logik DAX - SSD1815 */
#define LCD_IAUDIO67 21 /* as used by iAudio 6/7 - unknown */
#define LCD_COWOND2 21 /* as used by Cowon D2 - LTV250QV, TCC7801 driver */
#define LCD_CREATIVEZVM 22 /* as used by Creative Zen Vision:M */
#define LCD_TL0350A 23 /* as used by the iAudio M3 remote, treated as main LCD */
#define LCD_COWOND2 24 /* as used by Cowon D2 - LTV250QV, TCC7801 driver */
/* LCD_PIXELFORMAT */
#define HORIZONTAL_PACKING 1
@ -402,7 +402,7 @@
defined(CPU_COLDFIRE) || /* Coldfire: core, plugins, codecs */ \
defined(CPU_PP) || /* PortalPlayer: core, plugins, codecs */ \
defined(CPU_TCC77X) || /* Telechips: core, plugins, codecs */ \
defined(CPU_TCC780X) || /* Telechips: core, plugins, codecs */ \
/*defined(CPU_TCC780X) || /. Telechips: core, plugins, codecs */ \
(CONFIG_CPU == PNX0101))
#define ICODE_ATTR __attribute__ ((section(".icode")))
#define ICONST_ATTR __attribute__ ((section(".irodata")))

View file

@ -133,6 +133,16 @@ copied_start:
ldrhi r5, [r4], #4
strhi r5, [r2], #4
bhi 1b
/* Copy the IRAM (SRAM) */
ldr r2, =_iramcopy
ldr r3, =_iramstart
ldr r4, =_iramend
1:
cmp r4, r3
ldrhi r5, [r2], #4
strhi r5, [r3], #4
bhi 1b
/* Zero out IBSS */
ldr r2, =_iedata