URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [linux/] [uClibc/] [libc/] [sysdeps/] [linux/] [i386/] [vfork.S] - Rev 1765
Compare with Previous | Blame | View Log
/** June 3, 2003 Erik Andersen**/#define _ERRNO_H 1#include <bits/errno.h>#include <sys/syscall.h>#ifndef __NR_vfork/* No vfork so use fork instead */.weak vfork ; vfork = __libc_fork#else.text.globl __vfork;.type __vfork,@function;.align 1<<4;__vfork:popl %ecxmovl $__NR_vfork,%eaxint $0x80pushl %ecxcmpl $-4095,%eaxjae __syscall_errorret__syscall_error:negl %eaxpushl %eax#ifdef __PIC__call .Lthere.Lthere:popl %ebxaddl $_GLOBAL_OFFSET_TABLE_+[.- .Lthere ], %ebxcall __errno_location@PLT#elsecall __errno_location#endifpopl %ecxmovl %ecx, (%eax)xorl %eax, %eaxdecl %eax.Lsize:.size __vfork,.Lsize-__vfork.weak vfork ; vfork = __vfork#endif
