1: /*
   2:  * Copyright (c) 1987 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  */
   6: 
   7: #ifdef SYSLIBC_SCCS
   8: _sccsid: <@(#)fork.s	2.6 (2.11BSD GTE) 1995/05/10\0>
   9:         .even
  10: #endif SYSLIBC_SCCS
  11: 
  12: /*
  13:  * XXX - this routine can't use SYSCALL!!!
  14:  */
  15: #include "SYS.h"
  16: 
  17: ENTRY(fork)
  18:         SYS(fork)
      /
      /   trap 2 -> [kernel] -> syscall() -> via sysent[] -> handler: fork
      /
  19:         br      1f                      / child returns here
  20:         bcs     2f                      / parent returns here
  21:         rts     pc
  22: 1:
  23:         clr     r0                      / child gets a zero
  24:         rts     pc
  25: 2:
  26:         jmp     x_error

Defined functions

_fork defined in line 17; used 234 times
_sccsid defined in line 8; never used
Last modified: 1995-05-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2804
Valid CSS Valid XHTML 1.0 Strict