summaryrefslogtreecommitdiff
path: root/firmware/target/arm/tcc780x/crt0.S
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/tcc780x/crt0.S')
-rw-r--r--firmware/target/arm/tcc780x/crt0.S8
1 files changed, 3 insertions, 5 deletions
diff --git a/firmware/target/arm/tcc780x/crt0.S b/firmware/target/arm/tcc780x/crt0.S
index d328291a26..af5bd44192 100644
--- a/firmware/target/arm/tcc780x/crt0.S
+++ b/firmware/target/arm/tcc780x/crt0.S
@@ -35,18 +35,16 @@
35 35
36start: 36start:
37#ifdef TCCBOOT 37#ifdef TCCBOOT
38#ifdef BOOTLOADER
38 /* Add -DTCCBOOT to EXTRA_DEFINES in the bootloader Makefile to 39 /* Add -DTCCBOOT to EXTRA_DEFINES in the bootloader Makefile to
39 enable building the bootloader to be appended to the end of the 40 enable building the bootloader to be appended to the end of the
40 original firmware, dual-booting based on a key-press. 41 original firmware, dual-booting based on a key-press.
41 42
42 NB: On the D2 TCCBOOT currently only works in USB boot mode (via tcctool)
43 When flashed to the device, the OF will boot as normal - but holding a
44 key to boot Rockbox results in a blank screen and crashed player.
45
46 The following two values are filled in by mktccboot. 43 The following two values are filled in by mktccboot.
47 */ 44 */
48 .word 0 /* Saved entrypoint of original firmware*/ 45 .word 0 /* Saved entrypoint of original firmware*/
49 .word 0 /* Location in RAM of the start of our bootloader */ 46 .word 0 /* Location in RAM of the start of our bootloader */
47#endif
50#else 48#else
51 ldr pc, =start_loc /* jump to the main entry point */ 49 ldr pc, =start_loc /* jump to the main entry point */
52 50
@@ -79,7 +77,7 @@ start_loc:
79 #error No bootup key detection implemented for this target 77 #error No bootup key detection implemented for this target
80#endif 78#endif
81 79
82 /* Copy bootloader to safe area - 0x21000000 (DRAM) */ 80 /* Copy bootloader to safe area - 0x21F00000 (end of DRAM) */
83 /* TODO: Adjust this for other targets - DRAM + DRAMSIZE - 0x100000 */ 81 /* TODO: Adjust this for other targets - DRAM + DRAMSIZE - 0x100000 */
84 ldr r0, [pc, #-28] 82 ldr r0, [pc, #-28]
85 mov r1, #0x22000000 83 mov r1, #0x22000000