From: Ralf Baechle Date: Sun, 13 Feb 2005 00:32:43 +0000 (+0000) Subject: Rewrite to avoid the use of $at. Unfortunately binutils 2.15 and CVS X-Git-Tag: MMI-PSA29.97-13-9~54848^2~1^2~301 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=85b6e8184b798d06c854463cdd6c63dd1d4ff47c;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git Rewrite to avoid the use of $at. Unfortunately binutils 2.15 and CVS binutils are broken and don't warn about this use of $at even though gas is in .set noat mode so this for now is an accident waiting to happen. Signed-off-by: Ralf Baechle --- diff --git a/include/asm-mips/stackframe.h b/include/asm-mips/stackframe.h index 7b5e64600bc8..e33e302c3429 100644 --- a/include/asm-mips/stackframe.h +++ b/include/asm-mips/stackframe.h @@ -78,7 +78,12 @@ MFC0 k1, CP0_CONTEXT dsrl k1, 23 dsll k1, k1, 3 - LONG_L k1, kernelsp(k1) + lui k0, %highest(kernelsp) + daddiu k0, %higher(kernelsp) + dsll k0, k0, 16 + daddiu k0, %hi(kernelsp) + daddu k1, k1, k0 + LONG_L k1, %lo(kernelsp)(k1) #endif .endm