summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/support.S
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2010-07-30 21:39:28 +0000
committerdelphij <delphij@FreeBSD.org>2010-07-30 21:39:28 +0000
commit67a2e7219ef654d05e0561ef15ef4f8a09d448d2 (patch)
tree0418eba6efa42a9e4739017ec675fecc2cdf6db4 /sys/amd64/amd64/support.S
parent037804af9d4e3734008ac04bb4cb6ef4dbb761de (diff)
downloadFreeBSD-src-67a2e7219ef654d05e0561ef15ef4f8a09d448d2.zip
FreeBSD-src-67a2e7219ef654d05e0561ef15ef4f8a09d448d2.tar.gz
In rdmsr_safe, use zero extend (by doing a 32-bit movl over
eax to itself) instead of a sign extend. Discussed with: stas MFC after: 1 month
Diffstat (limited to 'sys/amd64/amd64/support.S')
-rw-r--r--sys/amd64/amd64/support.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S
index b445cee..ab45e56 100644
--- a/sys/amd64/amd64/support.S
+++ b/sys/amd64/amd64/support.S
@@ -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
OpenPOWER on IntegriCloud