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:
parent
f6daba8329
commit
16430b12a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210665
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user