source:
trunk/libs/newlib/src/newlib/libc/sys/sysvi386/waitpid.S
Last change on this file was 444, checked in by , 6 years ago | |
---|---|
File size: 225 bytes |
Line | |
---|---|
1 | .globl _waitpid |
2 | .globl waitpid |
3 | _waitpid: |
4 | waitpid: |
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) |
17 | bye: |
18 | ret |
Note: See TracBrowser
for help on using the repository browser.