Skip to content

Commit

Permalink
sh: Update SH-2 to use the debug trap jump table.
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Yoshinori Sato authored and Paul Mundt committed Feb 13, 2007
1 parent 702dd80 commit 4aa362b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions arch/sh/kernel/cpu/sh2/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,10 @@ interrupt_entry:
8: .long do_exception_error
trap_entry:
/* verbose BUG trapa entry check */
mov #0x3e,r8
cmp/ge r8,r9
bf/s 1f
add #-0x10,r9
add #0x10,r9
mov #0x30,r8
cmp/ge r8,r9 ! vector 0x20-0x2f is systemcall
bt 1f
add #-0x10,r9 ! convert SH2 to SH3/4 ABI
1:
shll2 r9 ! TRA
mov #OFF_TRA,r8
Expand Down

0 comments on commit 4aa362b

Please sign in to comment.