Browse Source
Add memory barrier to the blas_lock implementation for Linux
as recommended by cparrott73 in #2760
tags/v0.3.11^2
Martin Kroeker
GitHub
5 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
common_power.h
|
|
@@ -105,6 +105,7 @@ static void INLINE blas_lock(volatile unsigned long *address){ |
|
|
|
" bne- 1f\n" |
|
|
|
" stwcx. %2,0, %1\n" |
|
|
|
" bne- 0b\n" |
|
|
|
" isync\n" |
|
|
|
"1: " |
|
|
|
: "=&r"(ret) |
|
|
|
: "r"(address), "r" (val) |
|
|
|