diff options
author | jkim <jkim@FreeBSD.org> | 2010-07-29 16:49:20 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2010-07-29 16:49:20 +0000 |
commit | 68858723f91553ae1ec06804364070cb97492ced (patch) | |
tree | 5a9875d55e671864f5d7346c38944681d042dfb3 /sys/amd64/amd64/cpu_switch.S | |
parent | 36b672010dbc47ed5ef47459586fdf5c5e216e0a (diff) | |
download | FreeBSD-src-68858723f91553ae1ec06804364070cb97492ced.zip FreeBSD-src-68858723f91553ae1ec06804364070cb97492ced.tar.gz |
Fix another fallout from r208833. savectx() is used to save CPU context
for crash dump (dumppcb) and kdb (stoppcbs). For both cases, there cannot
have a valid pointer in pcb_save. This should restore the previous
behaviour.
Diffstat (limited to 'sys/amd64/amd64/cpu_switch.S')
-rw-r--r-- | sys/amd64/amd64/cpu_switch.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S index f3cfff3..0ffc567 100644 --- a/sys/amd64/amd64/cpu_switch.S +++ b/sys/amd64/amd64/cpu_switch.S @@ -347,7 +347,7 @@ ENTRY(savectx) lmsw %ax movq $PCB_SAVEFPU_SIZE,%rdx /* arg 3 */ - movq PCB_SAVEFPU(%rcx),%rsi /* arg 2 */ + leaq PCB_USERFPU(%rcx),%rsi /* arg 2 */ /* arg 1 (%rdi) already loaded */ call bcopy 1: |