Lines Matching refs:a0
154 // This function takes the number of threads to create in a0. It
160 mv t0, a0 // get the number of threads
167 sd a0, (sp)
168 mv t1, a0
174 sd a0, (sp)
175 mv t2, a0
181 li a0, CLONE_FLAGS
190 bltz a0, 2f // syscall error
191 beqz a0, _mt_test // only the new thread jumps to _mt_test
195 sd a0, (sp)
213 ld a0, (sp)
218 ld a0, (sp)
230 // space in a0
234 li a0, 0
260 // This function takes the number of threads to delete in a0
264 mv t0, a0 // get the number of threads to delete
271 ld a0, (sp)
276 ld a0, (sp)
291 // This function takes the pointer to the memory space in a0
320 // This function takes a number of threads to wait in a0
324 mv t0, a0 // get the number of threads
332 mv a0, sp // futex address (child_thread_id)