[SPARC64]: do_fptrap needs to load the thread reg into %g6.
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 16 Feb 2006 10:18:49 +0000 (02:18 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 20 Mar 2006 09:13:14 +0000 (01:13 -0800)
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/entry.S

index a2842a72f8e65ceadef2dba1b05c7a7ac1ba12f4..bf40b065bcc0a2b68b03933a60df2974e68e063f 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