diff options
Diffstat (limited to 'arch/sh/kernel/cpu/sh2/entry.S')
-rw-r--r-- | arch/sh/kernel/cpu/sh2/entry.S | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/sh/kernel/cpu/sh2/entry.S b/arch/sh/kernel/cpu/sh2/entry.S index d51fa5e9904a..7f7d292f36ec 100644 --- a/arch/sh/kernel/cpu/sh2/entry.S +++ b/arch/sh/kernel/cpu/sh2/entry.S | |||
@@ -178,12 +178,10 @@ interrupt_entry: | |||
178 | 8: .long do_exception_error | 178 | 8: .long do_exception_error |
179 | 179 | ||
180 | trap_entry: | 180 | trap_entry: |
181 | /* verbose BUG trapa entry check */ | 181 | mov #0x30,r8 |
182 | mov #0x3e,r8 | 182 | cmp/ge r8,r9 ! vector 0x20-0x2f is systemcall |
183 | cmp/ge r8,r9 | 183 | bt 1f |
184 | bf/s 1f | 184 | add #-0x10,r9 ! convert SH2 to SH3/4 ABI |
185 | add #-0x10,r9 | ||
186 | add #0x10,r9 | ||
187 | 1: | 185 | 1: |
188 | shll2 r9 ! TRA | 186 | shll2 r9 ! TRA |
189 | mov #OFF_TRA,r8 | 187 | mov #OFF_TRA,r8 |
@@ -206,7 +204,7 @@ trap_entry: | |||
206 | 204 | ||
207 | #if defined(CONFIG_SH_STANDARD_BIOS) | 205 | #if defined(CONFIG_SH_STANDARD_BIOS) |
208 | /* Unwind the stack and jmp to the debug entry */ | 206 | /* Unwind the stack and jmp to the debug entry */ |
209 | debug_kernel_fw: | 207 | ENTRY(sh_bios_handler) |
210 | mov r15,r0 | 208 | mov r15,r0 |
211 | add #(22-4)*4-4,r0 | 209 | add #(22-4)*4-4,r0 |
212 | ldc.l @r0+,gbr | 210 | ldc.l @r0+,gbr |