aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/kernel
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2012-05-09 02:59:46 -0400
committerGreg Ungerer <gerg@uclinux.org>2012-07-15 19:59:20 -0400
commit28d5445e94ab22198921b5c0c3e58c3b4a1a0116 (patch)
treea7656122c3ab7fd4bf90553a20b1aa8125de14ca /arch/m68k/kernel
parent5bd9dd450173bc1464e8218e717d218075b9f1a4 (diff)
m68k: use jbsr to call functions instead of bsrl
There is a few places that the m68k entry code uses the bsrl instruction to call other functions. That instruction is only supported on 68020 and higher CPU types. If we use jbsr instead the code will be clean for all 68k and ColdFire CPU types. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/kernel')
-rw-r--r--arch/m68k/kernel/entry_mm.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/m68k/kernel/entry_mm.S b/arch/m68k/kernel/entry_mm.S
index ff75368b18ee..1055a6e40e41 100644
--- a/arch/m68k/kernel/entry_mm.S
+++ b/arch/m68k/kernel/entry_mm.S
@@ -55,7 +55,7 @@ ENTRY(buserr)
55 SAVE_ALL_INT 55 SAVE_ALL_INT
56 GET_CURRENT(%d0) 56 GET_CURRENT(%d0)
57 movel %sp,%sp@- | stack frame pointer argument 57 movel %sp,%sp@- | stack frame pointer argument
58 bsrl buserr_c 58 jbsr buserr_c
59 addql #4,%sp 59 addql #4,%sp
60 jra ret_from_exception 60 jra ret_from_exception
61 61
@@ -63,7 +63,7 @@ ENTRY(trap)
63 SAVE_ALL_INT 63 SAVE_ALL_INT
64 GET_CURRENT(%d0) 64 GET_CURRENT(%d0)
65 movel %sp,%sp@- | stack frame pointer argument 65 movel %sp,%sp@- | stack frame pointer argument
66 bsrl trap_c 66 jbsr trap_c
67 addql #4,%sp 67 addql #4,%sp
68 jra ret_from_exception 68 jra ret_from_exception
69 69