svn commit: r215801 - head/sys/amd64/amd64

Dimitry Andric dim at FreeBSD.org
Wed Nov 24 18:35:11 UTC 2010


Author: dim
Date: Wed Nov 24 18:35:11 2010
New Revision: 215801
URL: http://svn.freebsd.org/changeset/base/215801

Log:
  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

Modified:
  head/sys/amd64/amd64/cpu_switch.S

Modified: head/sys/amd64/amd64/cpu_switch.S
==============================================================================
--- head/sys/amd64/amd64/cpu_switch.S	Wed Nov 24 16:02:58 2010	(r215800)
+++ head/sys/amd64/amd64/cpu_switch.S	Wed Nov 24 18:35:11 2010	(r215801)
@@ -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


More information about the svn-src-head mailing list