| Rev | Line |   | 
|---|
| [9] | 1 | #include "syslib.h"
 | 
|---|
 | 2 | 
 | 
|---|
 | 3 | /*===========================================================================*
 | 
|---|
 | 4 |  *                                sys_exit                                   *
 | 
|---|
 | 5 |  *===========================================================================*/
 | 
|---|
 | 6 | PUBLIC int sys_exit(proc)
 | 
|---|
 | 7 | int proc;                       /* which process has exited */
 | 
|---|
 | 8 | {
 | 
|---|
 | 9 | /* A process has exited. PM tells the kernel. In addition this call can be
 | 
|---|
 | 10 |  * used by system processes to directly exit without passing through the
 | 
|---|
 | 11 |  * PM. This should be used with care to prevent inconsistent PM tables. 
 | 
|---|
 | 12 |  */
 | 
|---|
 | 13 |   message m;
 | 
|---|
 | 14 | 
 | 
|---|
 | 15 |   m.PR_ENDPT = proc;
 | 
|---|
 | 16 |   return(_taskcall(SYSTASK, SYS_EXIT, &m));
 | 
|---|
 | 17 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.