MIPS: Tracing: Fix 32-bit support with -mmcount-ra-address
authorWu Zhangjin <wuzhangjin@gmail.com>
Fri, 14 May 2010 11:08:30 +0000 (19:08 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 5 Jul 2010 16:17:28 +0000 (17:17 +0100)
commit3a2af2dc1bcbfe86b1f39e9e5f9c2c5447943f16
tree3c94d93dadcf93ffea7881a7ba0e5a84bda355a3
parent56b49cd35fd56e29adb8f97ba051a1670d24d133
MIPS: Tracing: Fix 32-bit support with -mmcount-ra-address

For 32-bit kernel the -mmcount-ra-address option of gcc 4.5 emits one
extra instruction before calling to _mcount so we need to use a different
"b 1f" for it.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips <linux-mips@linux-mips.org>
Cc: David Daney <david.s.daney@gmail.com>
Patchwork: http://patchwork.linux-mips.org/patch/1228/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/ftrace.c