summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-08-30 20:50:47 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-08-30 20:50:47 +0000
commitf02f29e59e6090b0bd5df09432ea1a788b85a8e8 (patch)
treefe5035a664fdf209f9ca288ceef3e8f7aa503ab6
parenteef58cd44c9624b467896d7b224fb94125e4487b (diff)
downloadrockbox-f02f29e59e6090b0bd5df09432ea1a788b85a8e8.tar.gz
rockbox-f02f29e59e6090b0bd5df09432ea1a788b85a8e8.tar.bz2
rockbox-f02f29e59e6090b0bd5df09432ea1a788b85a8e8.zip
Archos: Trap UserBrk in the gdb debugger
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7429 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/crt0.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/crt0.S b/firmware/crt0.S
index 65577e02b9..4459f2eb15 100644
--- a/firmware/crt0.S
+++ b/firmware/crt0.S
@@ -360,6 +360,12 @@ vectors:
mov.l @(r0,r2),r3
mov.l r3,@(r0,r1)
+ /* Move the UserBreak vector as well (12) */
+ mov #12,r0
+ shll2 r0
+ mov.l @(r0,r2),r3
+ mov.l r3,@(r0,r1)
+
/* Move the breakpoint trap vector (32) */
mov #32,r0
shll2 r0