diff options
-rw-r--r-- | firmware/crt0.S | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/crt0.S b/firmware/crt0.S index f2d4c81ddc..1f385d4ce5 100644 --- a/firmware/crt0.S +++ b/firmware/crt0.S | |||
@@ -19,8 +19,6 @@ | |||
19 | #include "config.h" | 19 | #include "config.h" |
20 | #include "cpu.h" | 20 | #include "cpu.h" |
21 | 21 | ||
22 | //#define BOOTLOADER | ||
23 | |||
24 | .section .init.text | 22 | .section .init.text |
25 | .global start | 23 | .global start |
26 | start: | 24 | start: |
@@ -122,6 +120,9 @@ irq_handler: | |||
122 | /* Platform: iRiver H1xx */ | 120 | /* Platform: iRiver H1xx */ |
123 | move.w #0x2700,%sr | 121 | move.w #0x2700,%sr |
124 | 122 | ||
123 | move.l #vectors,%d0 | ||
124 | movec.l %d0,%vbr | ||
125 | |||
125 | move.l #MBAR+1,%d0 | 126 | move.l #MBAR+1,%d0 |
126 | movec.l %d0,%mbar | 127 | movec.l %d0,%mbar |
127 | 128 | ||
@@ -218,7 +219,8 @@ irq_handler: | |||
218 | move.l #0x3100a520,%d0 /* Back to normal, the DRAM is now ready */ | 219 | move.l #0x3100a520,%d0 /* Back to normal, the DRAM is now ready */ |
219 | move.l %d0,(0x108,%a0) | 220 | move.l %d0,(0x108,%a0) |
220 | #endif | 221 | #endif |
221 | #if 1 | 222 | |
223 | #ifndef BOOTLOADER | ||
222 | lea _iramcopy,%a2 | 224 | lea _iramcopy,%a2 |
223 | lea _iramstart,%a3 | 225 | lea _iramstart,%a3 |
224 | lea _iramend,%a4 | 226 | lea _iramend,%a4 |
@@ -228,8 +230,8 @@ irq_handler: | |||
228 | move.w (%a2)+,(%a3)+ | 230 | move.w (%a2)+,(%a3)+ |
229 | bra .iramloop | 231 | bra .iramloop |
230 | .iramloopend: | 232 | .iramloopend: |
231 | |||
232 | #endif | 233 | #endif |
234 | |||
233 | lea _edata,%a2 | 235 | lea _edata,%a2 |
234 | lea _end,%a4 | 236 | lea _end,%a4 |
235 | clr.l %d0 | 237 | clr.l %d0 |