From: Wu Zhangjin Date: Fri, 14 May 2010 11:08:29 +0000 (+0800) Subject: MIPS: Tracing: Fix argument passing of the 32bit support with gcc 4.5 X-Git-Tag: v2.6.35-rc5~20^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56b49cd35fd56e29adb8f97ba051a1670d24d133;p=pandora-kernel.git 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 Cc: linux-mips Cc: David Daney Patchwork: http://patchwork.linux-mips.org/patch/1227/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed