summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-04-26 08:04:50 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-04-26 08:04:50 +0000
commit388f12dd0895e9e5162d31008994468b2db94b0a (patch)
treee8b42648714abb45d4faab7746b955ef98c68242 /firmware
parent02930523ad7530b1a1df384ebe9fe33e74e1a861 (diff)
More GDB friendly initializations
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@247 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/crt0.S50
1 files changed, 43 insertions, 7 deletions
diff --git a/firmware/crt0.S b/firmware/crt0.S
index 4ea67ba599..339caadb56 100644
--- a/firmware/crt0.S
+++ b/firmware/crt0.S
@@ -29,20 +29,56 @@ start:
mov.l vbr_k,r1
mov.l orig_vbr_k,r2
- /* Move the serial Rx interrupt vector */
- mov #0x69,r0
+ /* Move the invalid instruction vector (4) */
+ mov #4,r0
shll2 r0
mov.l @(r0,r2),r3
mov.l r3,@(r0,r1)
-
- /* Move the breakpoint trap vector as well (32) */
- mov #0x20,r0
+
+ /* Move the invalid slot vector (6) */
+ mov #6,r0
+ shll2 r0
+ mov.l @(r0,r2),r3
+ mov.l r3,@(r0,r1)
+
+ /* Move the bus error vector (9) */
+ mov #9,r0
+ shll2 r0
+ mov.l @(r0,r2),r3
+ mov.l r3,@(r0,r1)
+
+ /* Move the DMA bus error vector (10) */
+ mov #10,r0
+ shll2 r0
+ mov.l @(r0,r2),r3
+ mov.l r3,@(r0,r1)
+
+ /* Move the NMI vector as well (11) */
+ mov #11,r0
shll2 r0
mov.l @(r0,r2),r3
mov.l r3,@(r0,r1)
- /* Move the single step trap vector as well (127) */
- mov #0x7f,r0
+ /* Move the breakpoint trap vector (32) */
+ mov #32,r0
+ shll2 r0
+ mov.l @(r0,r2),r3
+ mov.l r3,@(r0,r1)
+
+ /* Move the IO trap vector (33) */
+ mov #33,r0
+ shll2 r0
+ mov.l @(r0,r2),r3
+ mov.l r3,@(r0,r1)
+
+ /* Move the serial Rx interrupt vector (105) */
+ mov #105,r0
+ shll2 r0
+ mov.l @(r0,r2),r3
+ mov.l r3,@(r0,r1)
+
+ /* Move the single step trap vector (127) */
+ mov #127,r0
shll2 r0
mov.l @(r0,r2),r3
mov.l r3,@(r0,r1)