[SPARC64]: do_fptrap needs to load the thread reg into %g6.
David S. Miller [Thu, 16 Feb 2006 10:18:49 +0000 (02:18 -0800)]
Signed-off-by: David S. Miller <davem@davemloft.net>

arch/sparc64/kernel/entry.S

index a2842a7..bf40b06 100644 (file)
@@ -356,6 +356,7 @@ fitos_emul_fini:
        .globl          do_fptrap
        .align          32
 do_fptrap:
+       TRAP_LOAD_THREAD_REG(%g6, %g1)
        stx             %fsr, [%g6 + TI_XFSR]
 do_fptrap_after_fsr:
        ldub            [%g6 + TI_FPSAVED], %g3