os/libc/__helpers.asm

10 lines
165 B
NASM
Raw Permalink Normal View History

2020-08-30 09:35:12 -05:00
global __pthread_spin_lock_helper
__pthread_spin_lock_helper:
mov ebx,[esp+4]
mov eax,1
xchg eax,[ebx]
test eax, eax
jnz __pthread_spin_lock_helper
ret