1#include <architecture/ppc/asm_help.h> 2 3LEAF(__tas) 4 sync 5 mr r4,r3 6 addi r5,0,0x1 71: 8 lwarx r3,0,r4 9 cmpwi r3,0x0 10 bne- 2f 11 stwcx. r5,0,r4 12 bne- 1b /* Lost reservation, try again */ 132: 14 sync 15 blr 16END(__tas) 17