aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2010-07-30 21:39:28 +0000
committerXin LI <delphij@FreeBSD.org>2010-07-30 21:39:28 +0000
commit16430b12a31872d4db5200fc9be804323bca892f (patch)
tree0418eba6efa42a9e4739017ec675fecc2cdf6db4 /sys/amd64
parentf6daba832949c020e311a47a31aca967d6d00d1b (diff)
Notes
Diffstat (limited to 'sys/amd64')
-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 b445ceef8b46..ab45e56a05f2 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