Lines Matching refs:r1
79 jz L2 // parent, since r1 == 0 in parent, 1 in child
121 jz L2 // parent, since r1 == 0 in parent, 1 in child
141 ldrex r1, [r3]
142 subs r1, r1, #1 // if __current_pid <= 0, decrement it
143 movpl r1, #-1 // otherwise put -1 in there
144 strex r2, r1, [r3]
150 swp r1, r2, [r3] // look at the value, lock others out
151 cmp r1, r2 // anyone else trying to look?
153 subs r1, r1, #1 // if __current_pid <= 0, decrement it
154 movpl r1, #-1 // otherwise put -1 in there
155 str r1, [r3]
158 mov r1, #1 // prime results
162 cmp r1, #0 // parent (r1=0) or child(r1=1)
181 ldrex r1, [r3]
182 add r1, r1, #1 // we're back, decrement vfork count
183 strex r2, r1, [r3]
187 swp r1, r2, [r3] // look at the value, lock others out
188 cmp r1, r2 // anyone else trying to look?
190 add r1, r1, #1 // we're back, decrement vfork count
191 str r1, [r3]