OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [libc/] [sysdeps/] [linux/] [cris/] [fork.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
#include <sysdep.h>
2
 
3
SYSCALL__ (fork, 0)
4
        /* R1 is now 0 for the parent and 1 for the child.  Decrement it to
5
           make it -1 (all bits set) for the parent, and 0 (no bits set)
6
           for the child.  Then AND it with R0, so the parent gets
7
           R0&-1==R0, and the child gets R0&0==0.  */
8
     /* i dunno what the blurb above is useful for. we just return. */
9
__asm__("ret\n\tnop");
10
 

powered by: WebSVN 2.1.0

© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.