]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/sparc/mm/ultra.S
sparc64: Do not clobber %g2 in xcall_fetch_glob_regs().
[karo-tx-linux.git] / arch / sparc / mm / ultra.S
index b57a5942ba64f13f079898219f5e7479782b4b84..874162a11ceb824eb9e1af311c81be052a934927 100644 (file)
@@ -495,11 +495,11 @@ xcall_fetch_glob_regs:
        stx             %o7, [%g1 + GR_SNAP_O7]
        stx             %i7, [%g1 + GR_SNAP_I7]
        /* Don't try this at home kids... */
-       rdpr            %cwp, %g2
-       sub             %g2, 1, %g7
+       rdpr            %cwp, %g3
+       sub             %g3, 1, %g7
        wrpr            %g7, %cwp
        mov             %i7, %g7
-       wrpr            %g2, %cwp
+       wrpr            %g3, %cwp
        stx             %g7, [%g1 + GR_SNAP_RPC]
        sethi           %hi(trap_block), %g7
        or              %g7, %lo(trap_block), %g7