summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/cpu_switch.S
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2010-11-24 18:35:11 +0000
committerdim <dim@FreeBSD.org>2010-11-24 18:35:11 +0000
commit6febd420298ec8b8ff8f0f166f529d08f2f17de5 (patch)
tree0d0c547e25ae7006e61d2e8b42814581842a4823 /sys/amd64/amd64/cpu_switch.S
parentf34281d968a95d789fd9c780a8cc580ac8783980 (diff)
downloadFreeBSD-src-6febd420298ec8b8ff8f0f166f529d08f2f17de5.zip
FreeBSD-src-6febd420298ec8b8ff8f0f166f529d08f2f17de5.tar.gz
Change ambiguous (or invalid, depending on how strict you want to be :)
assembly instruction "movw %rcx,2(%rax)" to "movw %cx,2(%rax)", since the intent was to move 16 bits of data, in this case. Found by: clang Reviewed by: kib
Diffstat (limited to 'sys/amd64/amd64/cpu_switch.S')
-rw-r--r--sys/amd64/amd64/cpu_switch.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/cpu_switch.S b/sys/amd64/amd64/cpu_switch.S
index 952a70b..3ad0ef7 100644
--- a/sys/amd64/amd64/cpu_switch.S
+++ b/sys/amd64/amd64/cpu_switch.S
@@ -276,7 +276,7 @@ load_dr:
do_tss: movq %rdx,PCPU(TSSP)
movq %rdx,%rcx
movq PCPU(TSS),%rax
- movw %rcx,2(%rax)
+ movw %cx,2(%rax)
shrq $16,%rcx
movb %cl,4(%rax)
shrq $8,%rcx
OpenPOWER on IntegriCloud