summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-01-28 12:30:58 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-01-28 12:30:58 +0000
commit08bf2092e79d8238790b2e1c21b6dec748a2e80c (patch)
tree0b5f078a412546bbd4dd2538a11c22f568fefda9
parentb7225d165e2f62518f9f1620b887b5469970c26c (diff)
downloadrockbox-08bf2092e79d8238790b2e1c21b6dec748a2e80c.zip
rockbox-08bf2092e79d8238790b2e1c21b6dec748a2e80c.tar.gz
rockbox-08bf2092e79d8238790b2e1c21b6dec748a2e80c.tar.bz2
rockbox-08bf2092e79d8238790b2e1c21b6dec748a2e80c.tar.xz
Adjustments for the iriver boot loader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5692 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/crt0.S10
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/crt0.S b/firmware/crt0.S
index f2d4c81..1f385d4 100644
--- a/firmware/crt0.S
+++ b/firmware/crt0.S
@@ -19,8 +19,6 @@
#include "config.h"
#include "cpu.h"
-//#define BOOTLOADER
-
.section .init.text
.global start
start:
@@ -122,6 +120,9 @@ irq_handler:
/* Platform: iRiver H1xx */
move.w #0x2700,%sr
+ move.l #vectors,%d0
+ movec.l %d0,%vbr
+
move.l #MBAR+1,%d0
movec.l %d0,%mbar
@@ -218,7 +219,8 @@ irq_handler:
move.l #0x3100a520,%d0 /* Back to normal, the DRAM is now ready */
move.l %d0,(0x108,%a0)
#endif
-#if 1
+
+#ifndef BOOTLOADER
lea _iramcopy,%a2
lea _iramstart,%a3
lea _iramend,%a4
@@ -228,8 +230,8 @@ irq_handler:
move.w (%a2)+,(%a3)+
bra .iramloop
.iramloopend:
-
#endif
+
lea _edata,%a2
lea _end,%a4
clr.l %d0