Re: [uClinux-dev] [PATCH v2 2/3] m68k: use jbsr to call functions instead of bsrl

2012-05-20 Thread Geert Uytterhoeven
On Fri, May 18, 2012 at 6:22 AM,   wrote:
> From: Greg Ungerer 
>
> 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 

Acked-by: Geert Uytterhoeven 

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

[uClinux-dev] [PATCH v2 2/3] m68k: use jbsr to call functions instead of bsrl

2012-05-17 Thread gerg
From: Greg Ungerer 

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 
---
 arch/m68k/kernel/entry_mm.S |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/m68k/kernel/entry_mm.S b/arch/m68k/kernel/entry_mm.S
index f3cd173..2385539 100644
--- a/arch/m68k/kernel/entry_mm.S
+++ b/arch/m68k/kernel/entry_mm.S
@@ -55,7 +55,7 @@ ENTRY(buserr)
SAVE_ALL_INT
GET_CURRENT(%d0)
movel   %sp,%sp@-   | stack frame pointer argument
-   bsrlbuserr_c
+   jbsrbuserr_c
addql   #4,%sp
jra ret_from_exception
 
@@ -63,7 +63,7 @@ ENTRY(trap)
SAVE_ALL_INT
GET_CURRENT(%d0)
movel   %sp,%sp@-   | stack frame pointer argument
-   bsrltrap_c
+   jbsrtrap_c
addql   #4,%sp
jra ret_from_exception
 
-- 
1.7.0.4

___
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev