summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-04-03 16:04:18 +0000
committerjake <jake@FreeBSD.org>2003-04-03 16:04:18 +0000
commit98b50a6e4704597dbdefa7e7a4ddf9c0d374ef81 (patch)
tree0663482d2e9353f74c6a0715c3bc0efb460420cc /sys
parent4c3ebbad6662b015c40657f65d6b7004d34c24b5 (diff)
downloadFreeBSD-src-98b50a6e4704597dbdefa7e7a4ddf9c0d374ef81.zip
FreeBSD-src-98b50a6e4704597dbdefa7e7a4ddf9c0d374ef81.tar.gz
Don't assume the fp state is at offset 0 in the pcb.
Diffstat (limited to 'sys')
-rw-r--r--sys/sparc64/sparc64/swtch.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/swtch.S b/sys/sparc64/sparc64/swtch.S
index 4e2128b..21f5a9b 100644
--- a/sys/sparc64/sparc64/swtch.S
+++ b/sys/sparc64/sparc64/swtch.S
@@ -271,7 +271,7 @@ ENTRY(savectx)
save %sp, -CCFSZ, %sp
flushw
call savefpctx
- mov %i0, %o0
+ add %i0, PCB_UFP, %o0
stx %fp, [%i0 + PCB_SP]
stx %i7, [%i0 + PCB_PC]
ret
OpenPOWER on IntegriCloud