* Fix atomic_get :$
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39000 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
60beb9c01e
commit
a9de9aea54
@ -160,8 +160,7 @@ FUNCTION_END(atomic_test_and_set)
|
|||||||
/* int atomic_get(int *value)
|
/* int atomic_get(int *value)
|
||||||
*/
|
*/
|
||||||
FUNCTION(atomic_get):
|
FUNCTION(atomic_get):
|
||||||
mov r1, r0
|
ldr r0, [r0]
|
||||||
swp r0, r0, [r1]
|
|
||||||
bx lr
|
bx lr
|
||||||
FUNCTION_END(atomic_get)
|
FUNCTION_END(atomic_get)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user