source: trunk/libs/newlib/src/newlib/libc/sys/sysvi386/waitpid.S

Last change on this file was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 225 bytes
Line 
1        .globl  _waitpid
2        .globl  waitpid
3_waitpid:
4waitpid:       
5        pushfl
6        popl    %eax
7        orl     $0x8c4,%eax
8        pushl   %eax
9        popfl
10        movl    $0x7, %eax
11        lcall   $7,$0
12        jb      _cerror
13        movl    8(%esp), %ecx
14        testl   %ecx, %ecx
15        je      bye
16        movl    %edx, (%ecx)
17bye:
18        ret
Note: See TracBrowser for help on using the repository browser.