1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

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
This commit is contained in:
Xin LI 2010-07-30 21:39:28 +00:00
parent f6daba8329
commit 16430b12a3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210665

View File

@ -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