svn commit: r212006 - stable/7/sys/amd64/amd64
Xin LI
delphij at FreeBSD.org
Mon Aug 30 18:50:19 UTC 2010
Author: delphij
Date: Mon Aug 30 18:50:18 2010
New Revision: 212006
URL: http://svn.freebsd.org/changeset/base/212006
Log:
MFC r210665:
In rdmsr_safe, use zero extend (by doing a 32-bit movl over
eax to itself) instead of a sign extend.
Discussed with: stas
Modified:
stable/7/sys/amd64/amd64/support.S
Directory Properties:
stable/7/sys/ (props changed)
stable/7/sys/cddl/contrib/opensolaris/ (props changed)
stable/7/sys/contrib/dev/acpica/ (props changed)
stable/7/sys/contrib/pf/ (props changed)
Modified: stable/7/sys/amd64/amd64/support.S
==============================================================================
--- stable/7/sys/amd64/amd64/support.S Mon Aug 30 18:23:48 2010 (r212005)
+++ stable/7/sys/amd64/amd64/support.S Mon Aug 30 18:50:18 2010 (r212006)
@@ -729,7 +729,7 @@ ENTRY(rdmsr_safe)
rdmsr /* Read MSR pointed by %ecx. Returns
hi byte in edx, lo in %eax */
salq $32,%rdx /* sign-shift %rdx left */
- cltq /* sign-extend %eax -> %rax */
+ movl %eax,%eax /* zero-extend %eax -> %rax */
orq %rdx,%rax
movq %rax,(%rsi)
xorq %rax,%rax
More information about the svn-src-stable-7
mailing list