added atomic_read

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4359 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper 2003-08-21 17:55:56 +00:00
parent e9ac8260a6
commit fb16941a02

View File

@ -61,3 +61,12 @@ lost5: lwarx %r6, 0, %r3
out5: mr %r3, %r6
blr
/* int atomic_read(int *value)
* r3
*/
FUNCTION(atomic_read):
lost6: lwarx %r5, 0, %r3
stwcx. %r5, 0, %r3
bne- lost6
mr %r3, %r5
blr