summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-02-16 11:18:49 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 10:13:14 +0100
commit8e42550c683b2ad4869fc4fa438204841fd9b7cc (patch)
treef636a779506cee076b7434327184b4ef9914c1c1
parent[SPARC64]: Fix bogus call to sun4v_mna in winfixup code. (diff)
downloadlinux-8e42550c683b2ad4869fc4fa438204841fd9b7cc.tar.xz
linux-8e42550c683b2ad4869fc4fa438204841fd9b7cc.zip
[SPARC64]: do_fptrap needs to load the thread reg into %g6.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--arch/sparc64/kernel/entry.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc64/kernel/entry.S b/arch/sparc64/kernel/entry.S
index a2842a72f8e6..bf40b065bcc0 100644
--- a/arch/sparc64/kernel/entry.S
+++ b/arch/sparc64/kernel/entry.S
@@ -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