diff options
author | jake <jake@FreeBSD.org> | 2003-04-03 16:04:18 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2003-04-03 16:04:18 +0000 |
commit | 98b50a6e4704597dbdefa7e7a4ddf9c0d374ef81 (patch) | |
tree | 0663482d2e9353f74c6a0715c3bc0efb460420cc /sys | |
parent | 4c3ebbad6662b015c40657f65d6b7004d34c24b5 (diff) | |
download | FreeBSD-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.S | 2 |
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 |