Skip to content

Commit

Permalink
m68k: use jbsr to call functions instead of bsrl
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Greg Ungerer committed Jul 15, 2012
1 parent 5bd9dd4 commit 28d5445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/m68k/kernel/entry_mm.S
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ ENTRY(buserr)
SAVE_ALL_INT
GET_CURRENT(%d0)
movel %sp,%sp@- | stack frame pointer argument
bsrl buserr_c
jbsr buserr_c
addql #4,%sp
jra ret_from_exception

ENTRY(trap)
SAVE_ALL_INT
GET_CURRENT(%d0)
movel %sp,%sp@- | stack frame pointer argument
bsrl trap_c
jbsr trap_c
addql #4,%sp
jra ret_from_exception

Expand Down

0 comments on commit 28d5445

Please sign in to comment.