home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / exec / execfunctions.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-12  |  5.9 KB  |  263 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: execfunctions.c,v 1.5 1996/09/11 16:54:24 digulla Exp $
  4.     $Log: execfunctions.c,v $
  5.     Revision 1.5  1996/09/11 16:54:24  digulla
  6.     Always use __AROS_SLIB_ENTRY() to access shared external symbols, because
  7.         some systems name an external symbol "x" as "_x" and others as "x".
  8.         (The problem arises with assembler symbols which might differ)
  9.  
  10.     Revision 1.4  1996/08/23 17:07:22  digulla
  11.     The number of functions is hardcoded in init.c, so it should be the same here.
  12.  
  13.     Revision 1.3  1996/08/01 17:41:10  digulla
  14.     Added standard header for all files
  15.  
  16.     Desc:
  17.     Lang:
  18. */
  19. #ifndef NULL
  20. #define NULL ((void *)0)
  21. #endif
  22.  
  23. void _Exec_Supervisor();
  24. void _Exec_Switch();
  25. void _Exec_Dispatch();
  26. void _Exec_Exception();
  27. void _Exec_PrepareContext();
  28. void _Exec_InitStruct();
  29. void _Exec_MakeLibrary();
  30. void _Exec_MakeFunctions();
  31. void _Exec_InitResident();
  32. void _Exec_Alert();
  33. void _Exec_Disable();
  34. void _Exec_Enable();
  35. void _Exec_Forbid();
  36. void _Exec_Permit();
  37. void _Exec_SetSR();
  38. void _Exec_SuperState();
  39. void _Exec_UserState();
  40. void _Exec_Allocate();
  41. void _Exec_Deallocate();
  42. void _Exec_AllocMem();
  43. void _Exec_AllocAbs();
  44. void _Exec_FreeMem();
  45. void _Exec_AvailMem();
  46. void _Exec_AllocEntry();
  47. void _Exec_FreeEntry();
  48. void _Exec_Insert();
  49. void _Exec_AddHead();
  50. void _Exec_AddTail();
  51. void _Exec_Remove();
  52. void _Exec_RemHead();
  53. void _Exec_RemTail();
  54. void _Exec_Enqueue();
  55. void _Exec_FindName();
  56. void _Exec_AddTask();
  57. void _Exec_RemTask();
  58. void _Exec_FindTask();
  59. void _Exec_SetTaskPri();
  60. void _Exec_SetSignal();
  61. void _Exec_SetExcept();
  62. void _Exec_Wait();
  63. void _Exec_Signal();
  64. void _Exec_AllocSignal();
  65. void _Exec_FreeSignal();
  66. void _Exec_AddPort();
  67. void _Exec_RemPort();
  68. void _Exec_PutMsg();
  69. void _Exec_GetMsg();
  70. void _Exec_ReplyMsg();
  71. void _Exec_WaitPort();
  72. void _Exec_FindPort();
  73. void _Exec_AddLibrary();
  74. void _Exec_RemLibrary();
  75. void _Exec_OldOpenLibrary();
  76. void _Exec_CloseLibrary();
  77. void _Exec_SetFunction();
  78. void _Exec_SumLibrary();
  79. void _Exec_AddDevice();
  80. void _Exec_RemDevice();
  81. void _Exec_OpenDevice();
  82. void _Exec_CloseDevice();
  83. void _Exec_DoIO();
  84. void _Exec_SendIO();
  85. void _Exec_CheckIO();
  86. void _Exec_WaitIO();
  87. void _Exec_AbortIO();
  88. void _Exec_AddResource();
  89. void _Exec_RemResource();
  90. void _Exec_OpenResource();
  91. void _Exec_RawDoFmt();
  92. void _Exec_TypeOfMem();
  93. void _Exec_Procure();
  94. void _Exec_Vacate();
  95. void _Exec_OpenLibrary();
  96. void _Exec_InitSemaphore();
  97. void _Exec__ObtainSemaphore();
  98. void _Exec__ReleaseSemaphore();
  99. void _Exec_AttemptSemaphore();
  100. void _Exec_ObtainSemaphoreList();
  101. void _Exec_ReleaseSemaphoreList();
  102. void _Exec_FindSemaphore();
  103. void _Exec_AddSemaphore();
  104. void _Exec_RemSemaphore();
  105. void _Exec_AddMemList();
  106. void _Exec_CopyMem();
  107. void _Exec_CopyMemQuick();
  108. void _Exec_CacheClearU();
  109. void _Exec_CacheClearE();
  110. void _Exec_CacheControl();
  111. void _Exec_CreateIORequest();
  112. void _Exec_DeleteIORequest();
  113. void _Exec_CreateMsgPort();
  114. void _Exec_DeleteMsgPort();
  115. void _Exec__ObtainSemaphoreShared();
  116. void _Exec_AllocVec();
  117. void _Exec_FreeVec();
  118. void _Exec_CreatePool();
  119. void _Exec_DeletePool();
  120. void _Exec_AllocPooled();
  121. void _Exec_FreePooled();
  122. void _Exec_AttemptSemaphoreShared();
  123. void _Exec_StackSwap();
  124. void _Exec_CachePreDMA();
  125. void _Exec_CachePostDMA();
  126. void _Exec_AddMemHandler();
  127. void _Exec_RemMemHandler();
  128.  
  129. void *ExecFunctions[131]=
  130. {
  131. /*  1 */NULL,
  132.     NULL,
  133.     NULL,
  134.     NULL,
  135.     &_Exec_Supervisor,
  136.     &_Exec_Switch,
  137.     &_Exec_Dispatch,
  138.     &_Exec_Exception,
  139.     &_Exec_PrepareContext,
  140. /* 10 */NULL,        /* Private5 */
  141.     NULL,        /* Private6 */
  142.     NULL,        /* InitCode */
  143.     &_Exec_InitStruct,
  144.     &_Exec_MakeLibrary,
  145.     &_Exec_MakeFunctions,
  146.     NULL,        /* FindResident */
  147.     &_Exec_InitResident,
  148.     &_Exec_Alert,
  149.     NULL,        /* Debug */
  150. /* 20 */&_Exec_Disable,
  151.     &_Exec_Enable,
  152.     &_Exec_Forbid,
  153.     &_Exec_Permit,
  154.     &_Exec_SetSR,
  155.     &_Exec_SuperState,
  156.     &_Exec_UserState,
  157.     NULL,        /* SetIntVector */
  158.     NULL,        /* AddIntServer */
  159.     NULL,        /* RemIntServer */
  160. /* 30 */NULL,        /* Cause */
  161.     &_Exec_Allocate,
  162.     &_Exec_Deallocate,
  163.     &_Exec_AllocMem,
  164.     &_Exec_AllocAbs,
  165.     &_Exec_FreeMem,
  166.     &_Exec_AvailMem,
  167.     &_Exec_AllocEntry,
  168.     &_Exec_FreeEntry,
  169.     &_Exec_Insert,
  170. /* 40 */&_Exec_AddHead,
  171.     &_Exec_AddTail,
  172.     &_Exec_Remove,
  173.     &_Exec_RemHead,
  174.     &_Exec_RemTail,
  175.     &_Exec_Enqueue,
  176.     &_Exec_FindName,
  177.     &_Exec_AddTask,
  178.     &_Exec_RemTask,
  179.     &_Exec_FindTask,
  180. /* 50 */&_Exec_SetTaskPri,
  181.     &_Exec_SetSignal,
  182.     &_Exec_SetExcept,
  183.     &_Exec_Wait,
  184.     &_Exec_Signal,
  185.     &_Exec_AllocSignal,
  186.     &_Exec_FreeSignal,
  187.     NULL,        /* AllocTrap */
  188.     NULL,        /* FreeTrap */
  189.     &_Exec_AddPort,
  190. /* 60 */&_Exec_RemPort,
  191.     &_Exec_PutMsg,
  192.     &_Exec_GetMsg,
  193.     &_Exec_ReplyMsg,
  194.     &_Exec_WaitPort,
  195.     &_Exec_FindPort,
  196.     &_Exec_AddLibrary,
  197.     &_Exec_RemLibrary,
  198.     &_Exec_OldOpenLibrary,
  199.     &_Exec_CloseLibrary,
  200. /* 70 */&_Exec_SetFunction,
  201.     &_Exec_SumLibrary,
  202.     &_Exec_AddDevice,
  203.     &_Exec_RemDevice,
  204.     &_Exec_OpenDevice,
  205.     &_Exec_CloseDevice,
  206.     &_Exec_DoIO,
  207.     &_Exec_SendIO,
  208.     &_Exec_CheckIO,
  209.     &_Exec_WaitIO,
  210. /* 80 */&_Exec_AbortIO,
  211.     &_Exec_AddResource,
  212.     &_Exec_RemResource,
  213.     &_Exec_OpenResource,
  214.     NULL,        /* Private7 */
  215.     NULL,        /* Private8 */
  216.     NULL,        /* Private9 */
  217.     &_Exec_RawDoFmt,
  218.     NULL,        /* GetCC */
  219.     &_Exec_TypeOfMem,
  220. /* 90 */&_Exec_Procure,
  221.     &_Exec_Vacate,
  222.     &_Exec_OpenLibrary,
  223.     &_Exec_InitSemaphore,
  224.     &_Exec__ObtainSemaphore,
  225.     &_Exec__ReleaseSemaphore,
  226.     &_Exec_AttemptSemaphore,
  227.     &_Exec_ObtainSemaphoreList,
  228.     &_Exec_ReleaseSemaphoreList,
  229.     &_Exec_FindSemaphore,
  230. /*100 */&_Exec_AddSemaphore,
  231.     &_Exec_RemSemaphore,
  232.     NULL,        /* SumKickData */
  233.     &_Exec_AddMemList,
  234.     &_Exec_CopyMem,
  235.     &_Exec_CopyMemQuick,
  236.     &_Exec_CacheClearU,
  237.     &_Exec_CacheClearE,
  238.     &_Exec_CacheControl,
  239.     &_Exec_CreateIORequest,
  240. /*110 */&_Exec_DeleteIORequest,
  241.     &_Exec_CreateMsgPort,
  242.     &_Exec_DeleteMsgPort,
  243.     &_Exec__ObtainSemaphoreShared,
  244.     &_Exec_AllocVec,
  245.     &_Exec_FreeVec,
  246.     &_Exec_CreatePool,
  247.     &_Exec_DeletePool,
  248.     &_Exec_AllocPooled,
  249.     &_Exec_FreePooled,
  250. /*120 */&_Exec_AttemptSemaphoreShared,
  251.     NULL,        /* ColdReboot */
  252.     &_Exec_StackSwap,
  253.     NULL,        /* ChildFree */
  254.     NULL,        /* ChildOrphan */
  255.     NULL,        /* ChildStatus */
  256.     NULL,        /* ChildWait */
  257.     &_Exec_CachePreDMA,
  258.     &_Exec_CachePostDMA,
  259.     &_Exec_AddMemHandler,
  260. /*130 */&_Exec_RemMemHandler,
  261.     NULL        /* ObtainQuickVector */
  262. };
  263.