mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix atomic_store_64, it should write the value passed in, not the value
read by the load. Pointy Hat: andrew
This commit is contained in:
parent
f703e79990
commit
70888b7ed5
1 changed files with 1 additions and 1 deletions
|
|
@ -558,7 +558,7 @@ atomic_store_64(volatile uint64_t *p, uint64_t val)
|
|||
__asm __volatile(
|
||||
"1: \n"
|
||||
" ldrexd %Q[tmp], %R[tmp], [%[ptr]] \n"
|
||||
" strexd %[exf], %Q[tmp], %R[tmp], [%[ptr]] \n"
|
||||
" strexd %[exf], %Q[val], %R[val], [%[ptr]] \n"
|
||||
" teq %[exf], #0 \n"
|
||||
" it ne \n"
|
||||
" bne 1b \n"
|
||||
|
|
|
|||
Loading…
Reference in a new issue