1
0
Fork 0
forked from len0rd/rockbox

imx233/fuze+: rework crt0 and linker script to be able to load at any address and self-copy at the right one

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30587 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Amaury Pouly 2011-09-23 20:40:52 +00:00
parent d1e241f55a
commit 1322b58b17
4 changed files with 51 additions and 8 deletions

View file

@ -101,8 +101,8 @@ static void usb_mode(int connect_timeout)
}
#endif /* HAVE_BOOTLOADER_USB_MODE */
void main(uint32_t arg) NORETURN_ATTR;
void main(uint32_t arg)
void main(uint32_t arg, uint32_t addr) NORETURN_ATTR;
void main(uint32_t arg, uint32_t addr)
{
unsigned char* loadbuffer;
int buffer_size;
@ -124,7 +124,7 @@ void main(uint32_t arg)
button_init();
//button_debug_screen();
printf("arg=%x", arg);
printf("arg=%x addr=%x", arg, addr);
#ifdef SANSA_FUZEPLUS
extern void imx233_mmc_disable_window(void);