Wu Zhangjin 56b49cd35f MIPS: Tracing: Fix argument passing of the 32bit support with gcc 4.5
As documented in the GCC 4.5 docs [1] -mmcount-ra-address uses register
$12 to pass the stack offset of the return address to the _mcount function.
On 64-bit kernels $12 is t0 but in 32-bit kernels it is t4 so we need to
use $12 instead of t0 here to be correct for both kernel types.

[1] GCC documentation: MIPS Options
http://gcc.gnu.org/onlinedocs/gcc/MIPS-Options.html

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/1227/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2010-07-05 17:17:28 +01:00
..
2010-05-21 21:31:14 +01:00
2008-05-01 08:03:58 -07:00
2009-12-10 15:02:50 +01:00
2010-04-12 17:26:14 +01:00
2010-05-21 21:31:14 +01:00
2009-08-03 17:52:40 +01:00
2009-07-12 12:22:34 -07:00
2010-03-12 15:52:39 -08:00
2010-05-21 21:31:17 +01:00
2010-04-12 17:26:14 +01:00
2009-06-24 18:34:40 +01:00
2009-12-17 01:57:30 +00:00
2010-04-12 17:26:14 +01:00