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:
parent
617ff557e8
commit
9b810734f8
3 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue