home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / rom / dos / addprocess.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-27  |  800 b   |  29 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: addprocess.c,v 1.3 1997/01/27 00:36:13 ldp Exp $
  4.     $Log: addprocess.c,v $
  5.     Revision 1.3  1997/01/27 00:36:13  ldp
  6.     Polish
  7.  
  8.     Revision 1.2  1996/08/01 17:40:47  digulla
  9.     Added standard header for all files
  10.  
  11.     Desc:
  12.     Lang: english
  13. */
  14. #include <dos/dosextens.h>
  15. #include <proto/exec.h>
  16. #include "dos_intern.h"
  17.  
  18. struct Process *AddProcess(struct Process *process, STRPTR argPtr,
  19. ULONG argSize, APTR initialPC, APTR finalPC, struct DosLibrary *DOSBase)
  20. {
  21.     APTR *sp=process->pr_Task.tc_SPUpper;
  22.     *--sp=SysBase;
  23.     argSize=0;
  24.     argPtr=NULL;
  25.     process->pr_ReturnAddr=sp-1;
  26.     process->pr_Task.tc_SPReg=(STRPTR)sp-SP_OFFSET;
  27.     return (struct Process *)AddTask(&process->pr_Task,initialPC,finalPC);
  28. } /* AddProcess */
  29.