OSDN Git Service

[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 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