1
0
Fork 0
forked from len0rd/rockbox

Really fix bootloaders now.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25017 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2010-03-03 23:52:36 +00:00
parent 617ff557e8
commit 9b810734f8
3 changed files with 3 additions and 2 deletions

View file

@ -749,6 +749,7 @@ Lyre prototype 1 */
#endif
#if (defined(CPU_PP) || (CONFIG_CPU == AS3525)) && !defined(SIMULATOR) && !defined(BOOTLOADER)
#define INIT_ATTR __attribute__ ((section(".init")))
#define HAVE_INIT_ATTR
#else
#define INIT_ATTR
#endif

View file

@ -213,7 +213,7 @@ cpu_init:
strhi r5, [r3], #4
bhi 1b
#ifdef INIT_ATTR
#ifdef HAVE_INIT_ATTR
/* copy init code to codec buffer */
ldr r2, =_initstart
ldr r3, =_initend

View file

@ -83,7 +83,7 @@ newstart:
#endif
#ifdef INIT_ATTR
#ifdef HAVE_INIT_ATTR
/* copy init data to codec buffer */
/* must be done before bss is zeroed */
ldr r2, =_initcopy