linux-cvs-patches
[Top] [All Lists]

CVS Update@linux-mips.org: linux

To: linux-cvs-patches@linux-mips.org
Subject: CVS Update@linux-mips.org: linux
From: ralf@linux-mips.org
Date: Sun, 13 Feb 2005 00:32:49 +0000
Reply-to: linux-mips@linux-mips.org
Sender: linux-cvs-patches-bounce@linux-mips.org
CVSROOT:        /home/cvs
Module name:    linux
Changes by:     ralf@ftp.linux-mips.org 05/02/13 00:32:44

Modified files:
        include/asm-mips: stackframe.h 

Log message:
        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.

diff -urN linux/include/asm-mips/stackframe.h 
linux/include/asm-mips/stackframe.h
--- linux/include/asm-mips/stackframe.h 2005/01/08 15:03:53     1.35
+++ linux/include/asm-mips/stackframe.h 2005/02/13 00:32:43     1.36
@@ -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
 

<Prev in Thread] Current Thread [Next in Thread>