Skip to content

Commit c9d3267

Browse files
authored
Add memory barrier to the blas_lock implementation for Linux
as recommended by cparrott73 in #2760
1 parent 9eb897c commit c9d3267

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common_power.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ static void INLINE blas_lock(volatile unsigned long *address){
105105
" bne- 1f\n"
106106
" stwcx. %2,0, %1\n"
107107
" bne- 0b\n"
108+
" isync\n"
108109
"1: "
109110
: "=&r"(ret)
110111
: "r"(address), "r" (val)

0 commit comments

Comments
 (0)