Commit 4aa362bb authored by Yoshinori Sato's avatar Yoshinori Sato Committed by Paul Mundt

sh: Update SH-2 to use the debug trap jump table.

Signed-off-by: default avatarYoshinori Sato <ysato@users.sourceforge.jp>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 702dd803
...@@ -178,12 +178,10 @@ interrupt_entry: ...@@ -178,12 +178,10 @@ interrupt_entry:
8: .long do_exception_error 8: .long do_exception_error
trap_entry: trap_entry:
/* verbose BUG trapa entry check */ mov #0x30,r8
mov #0x3e,r8 cmp/ge r8,r9 ! vector 0x20-0x2f is systemcall
cmp/ge r8,r9 bt 1f
bf/s 1f add #-0x10,r9 ! convert SH2 to SH3/4 ABI
add #-0x10,r9
add #0x10,r9
1: 1:
shll2 r9 ! TRA shll2 r9 ! TRA
mov #OFF_TRA,r8 mov #OFF_TRA,r8
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment