mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
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
|
#endif
|
||||||
#if (defined(CPU_PP) || (CONFIG_CPU == AS3525)) && !defined(SIMULATOR) && !defined(BOOTLOADER)
|
#if (defined(CPU_PP) || (CONFIG_CPU == AS3525)) && !defined(SIMULATOR) && !defined(BOOTLOADER)
|
||||||
#define INIT_ATTR __attribute__ ((section(".init")))
|
#define INIT_ATTR __attribute__ ((section(".init")))
|
||||||
|
#define HAVE_INIT_ATTR
|
||||||
#else
|
#else
|
||||||
#define INIT_ATTR
|
#define INIT_ATTR
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -213,7 +213,7 @@ cpu_init:
|
||||||
strhi r5, [r3], #4
|
strhi r5, [r3], #4
|
||||||
bhi 1b
|
bhi 1b
|
||||||
|
|
||||||
#ifdef INIT_ATTR
|
#ifdef HAVE_INIT_ATTR
|
||||||
/* copy init code to codec buffer */
|
/* copy init code to codec buffer */
|
||||||
ldr r2, =_initstart
|
ldr r2, =_initstart
|
||||||
ldr r3, =_initend
|
ldr r3, =_initend
|
||||||
|
|
|
@ -83,7 +83,7 @@ newstart:
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef INIT_ATTR
|
#ifdef HAVE_INIT_ATTR
|
||||||
/* copy init data to codec buffer */
|
/* copy init data to codec buffer */
|
||||||
/* must be done before bss is zeroed */
|
/* must be done before bss is zeroed */
|
||||||
ldr r2, =_initcopy
|
ldr r2, =_initcopy
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue