Skip to content

Commit

Permalink
Rewrite to avoid the use of $at. Unfortunately binutils 2.15 and CVS
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ralf Baechle committed Oct 29, 2005
1 parent f4b7cdb commit 85b6e81
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/asm-mips/stackframe.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 85b6e81

Please sign in to comment.