kolibrios/contrib/sdk/sources/libsync/mutex.asm
Sergey Semyonov (Serge) 1918b713af newlib: struct dirent
pixlib3: enable linear texture filtration
libsync: user space synchronization

git-svn-id: svn://kolibrios.org@5602 a494cfbc-eb01-0410-851d-a64ba20cac60
2015-07-23 10:10:52 +00:00

20 lines
374 B
NASM

format MS COFF
use32
MUTEX.lock equ 0
MUTEX.handle equ 4
section '.text' align 16 code readable executable
public @mutex_init@4
@mutex_init@4:
push ebx
xor ebx, ebx
mov eax, 77
mov [ecx+MUTEX.lock], ebx
int 0x40
mov [ecx+MUTEX.handle], eax
pop ebx
ret