diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-02-12 19:32:43 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2005-10-29 14:30:32 -0400 |
commit | 85b6e8184b798d06c854463cdd6c63dd1d4ff47c (patch) | |
tree | 0b8a31d1843182ea38bdaa2fe69701f21382db2f /include/asm-mips | |
parent | f4b7cdb4814e9ad1ec662bad5fccc4d37bcc6d4c (diff) |
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 <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/stackframe.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 @@ | |||
78 | MFC0 k1, CP0_CONTEXT | 78 | MFC0 k1, CP0_CONTEXT |
79 | dsrl k1, 23 | 79 | dsrl k1, 23 |
80 | dsll k1, k1, 3 | 80 | dsll k1, k1, 3 |
81 | LONG_L k1, kernelsp(k1) | 81 | lui k0, %highest(kernelsp) |
82 | daddiu k0, %higher(kernelsp) | ||
83 | dsll k0, k0, 16 | ||
84 | daddiu k0, %hi(kernelsp) | ||
85 | daddu k1, k1, k0 | ||
86 | LONG_L k1, %lo(kernelsp)(k1) | ||
82 | #endif | 87 | #endif |
83 | .endm | 88 | .endm |
84 | 89 | ||