From 60f843bf181fba3fc509955195ecea786cc002b2 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 11 Jun 2010 14:39:35 +0000 Subject: Configure Gigabeat S with EABI compiler by default. Implement the INIT section that this enables (due to selective need for long calls). Remove pcm_postinit from INIT section since it's asynchronous. Disable strict aliasing on SPC codec for now just to shut it up. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26779 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/imx31/crt0.S | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'firmware/target/arm/imx31/crt0.S') diff --git a/firmware/target/arm/imx31/crt0.S b/firmware/target/arm/imx31/crt0.S index d241fcb8ae..53e18c17df 100644 --- a/firmware/target/arm/imx31/crt0.S +++ b/firmware/target/arm/imx31/crt0.S @@ -231,20 +231,18 @@ remap_end: bhi 1b #endif /* BOOTLOADER */ -#ifndef BOOTLOADER - /* Copy discardable SDMA code - loaded in the stack section - * and so must be done first. Destination is the plugin buffer - * which is safe when SDMA init takes place just after kernel - * init. */ - ldr r4, =_sdmacodecopy - ldr r3, =_sdmacodeend - ldr r2, =_sdmacodestart +#ifdef HAVE_INIT_ATTR + /* copy init data to codec buffer */ + /* must be done before bss is zeroed */ + ldr r4, =_initcopy + ldr r3, =_initend + ldr r2, =_initstart 1: cmp r3, r2 ldrhi r5, [r4], #4 strhi r5, [r2], #4 bhi 1b -#endif /* BOOTLOADER */ +#endif /* HAVE_INIT_ATTR */ /* Initialise bss and ncbss sections to zero */ ldr r2, =_edata -- cgit v1.2.3