Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Nov 2010 18:35:11 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r215801 - head/sys/amd64/amd64
Message-ID:  <201011241835.oAOIZBtO079680@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011241835.oAOIZBtO079680>