summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-09-23 20:40:52 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-09-23 20:40:52 +0000
commit1322b58b17201ba70d35e6121ddaa87c0dceaf5b (patch)
treee18ac4ea1ca21a4c1ad00c987cf2e9038d19f883 /bootloader
parentd1e241f55a4b09149019d459f4db1ae79e6d8c1b (diff)
downloadrockbox-1322b58b17201ba70d35e6121ddaa87c0dceaf5b.tar.gz
rockbox-1322b58b17201ba70d35e6121ddaa87c0dceaf5b.tar.bz2
rockbox-1322b58b17201ba70d35e6121ddaa87c0dceaf5b.zip
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
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/imx233.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bootloader/imx233.c b/bootloader/imx233.c
index 86edc24cc2..41dd3e90b7 100644
--- a/bootloader/imx233.c
+++ b/bootloader/imx233.c
@@ -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);