From 08bf2092e79d8238790b2e1c21b6dec748a2e80c Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 28 Jan 2005 12:30:58 +0000 Subject: Adjustments for the iriver boot loader git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5692 a1c6a512-1295-4272-9138-f99709370657 --- firmware/crt0.S | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'firmware') 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 @@ #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 -- cgit v1.2.3