summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-07-22 15:45:42 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-07-22 15:45:42 +0000
commit792dd33047a1e60aea9af4a0682a92fcbc2d2401 (patch)
tree52a195d59930233398ee24d8167781ffb9360eac /firmware/target/arm
parent56bc02c7a22fe20f66d30ba5befdfb0f7856e095 (diff)
downloadrockbox-792dd33047a1e60aea9af4a0682a92fcbc2d2401.tar.gz
rockbox-792dd33047a1e60aea9af4a0682a92fcbc2d2401.zip
imx233/fuze+: gives bootloader argument to main
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30193 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/imx233/crt0.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/crt0.S b/firmware/target/arm/imx233/crt0.S
index e233d439e0..b8b63e5f26 100644
--- a/firmware/target/arm/imx233/crt0.S
+++ b/firmware/target/arm/imx233/crt0.S
@@ -36,6 +36,8 @@
36.text 36.text
37.global start 37.global start
38start: 38start:
39 /* Save r0 */
40 mov r6, r0
39 msr cpsr_c, #0xd3 /* enter supervisor mode, disable IRQ/FIQ */ 41 msr cpsr_c, #0xd3 /* enter supervisor mode, disable IRQ/FIQ */
40 /* Zero out IBSS */ 42 /* Zero out IBSS */
41 ldr r2, =_iedata 43 ldr r2, =_iedata
@@ -101,6 +103,7 @@ start:
101 mcr p15, 0, r0, c1, c0, 0 103 mcr p15, 0, r0, c1, c0, 0
102 104
103 /* Jump to main */ 105 /* Jump to main */
106 mov r0, r6
104 bl main 107 bl main
1051: 1081:
106 b 1b 109 b 1b