mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 02:00:31 -04:00
Change ambiguous (or invalid, depending on how strict you want to be :)
assembly instruction "movw %rcx,2(%rax)" to "movw %cx,2(%rax)", since the intent was to move 16 bits of data, in this case. Found by: clang Reviewed by: kib
This commit is contained in:
parent
57ce8ebf8c
commit
cfe92f33bc
1 changed files with 1 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ load_dr:
|
|||
do_tss: movq %rdx,PCPU(TSSP)
|
||||
movq %rdx,%rcx
|
||||
movq PCPU(TSS),%rax
|
||||
movw %rcx,2(%rax)
|
||||
movw %cx,2(%rax)
|
||||
shrq $16,%rcx
|
||||
movb %cl,4(%rax)
|
||||
shrq $8,%rcx
|
||||
|
|
|
|||
Loading…
Reference in a new issue