diff options
author | delphij <delphij@FreeBSD.org> | 2010-07-30 21:39:28 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2010-07-30 21:39:28 +0000 |
commit | 67a2e7219ef654d05e0561ef15ef4f8a09d448d2 (patch) | |
tree | 0418eba6efa42a9e4739017ec675fecc2cdf6db4 /sys/amd64/amd64/support.S | |
parent | 037804af9d4e3734008ac04bb4cb6ef4dbb761de (diff) | |
download | FreeBSD-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.S | 2 |
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 |