mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue