home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 5 / FreshFish_July-August1994.bin / bbs / cbm / nduk-v39.lha / V39 / fd / exec_lib.fd < prev    next >
Text File  |  1992-09-22  |  6KB  |  173 lines

  1. * "exec.library"
  2. ##base _SysBase
  3. ##bias 30
  4. ##public
  5. *------ misc ---------------------------------------------------------
  6. Supervisor(userFunction)(a5)
  7. *------ special patchable hooks to internal exec activity ------------
  8. ##private
  9. execPrivate1()()
  10. execPrivate2()()
  11. execPrivate3()()
  12. execPrivate4()()
  13. execPrivate5()()
  14. execPrivate6()()
  15. ##public
  16. *------ module creation ----------------------------------------------
  17. InitCode(startClass,version)(d0/d1)
  18. InitStruct(initTable,memory,size)(a1/a2,d0)
  19. MakeLibrary(funcInit,structInit,libInit,dataSize,segList)(a0/a1/a2,d0/d1)
  20. MakeFunctions(target,functionArray,funcDispBase)(a0/a1/a2)
  21. FindResident(name)(a1)
  22. InitResident(resident,segList)(a1,d1)
  23. *------ diagnostics --------------------------------------------------
  24. Alert(alertNum)(d7)
  25. Debug(flags)(d0)
  26. *------ interrupts ---------------------------------------------------
  27. Disable()()
  28. Enable()()
  29. Forbid()()
  30. Permit()()
  31. SetSR(newSR,mask)(d0/d1)
  32. SuperState()()
  33. UserState(sysStack)(d0)
  34. SetIntVector(intNumber,interrupt)(d0/a1)
  35. AddIntServer(intNumber,interrupt)(d0/a1)
  36. RemIntServer(intNumber,interrupt)(d0/a1)
  37. Cause(interrupt)(a1)
  38. *------ memory allocation --------------------------------------------
  39. Allocate(freeList,byteSize)(a0,d0)
  40. Deallocate(freeList,memoryBlock,byteSize)(a0/a1,d0)
  41. AllocMem(byteSize,requirements)(d0/d1)
  42. AllocAbs(byteSize,location)(d0/a1)
  43. FreeMem(memoryBlock,byteSize)(a1,d0)
  44. AvailMem(requirements)(d1)
  45. AllocEntry(entry)(a0)
  46. FreeEntry(entry)(a0)
  47. *------ lists --------------------------------------------------------
  48. Insert(list,node,pred)(a0/a1/a2)
  49. AddHead(list,node)(a0/a1)
  50. AddTail(list,node)(a0/a1)
  51. Remove(node)(a1)
  52. RemHead(list)(a0)
  53. RemTail(list)(a0)
  54. Enqueue(list,node)(a0/a1)
  55. FindName(list,name)(a0/a1)
  56. *------ tasks --------------------------------------------------------
  57. AddTask(task,initPC,finalPC)(a1/a2/a3)
  58. RemTask(task)(a1)
  59. FindTask(name)(a1)
  60. SetTaskPri(task,priority)(a1,d0)
  61. SetSignal(newSignals,signalSet)(d0/d1)
  62. SetExcept(newSignals,signalSet)(d0/d1)
  63. Wait(signalSet)(d0)
  64. Signal(task,signalSet)(a1,d0)
  65. AllocSignal(signalNum)(d0)
  66. FreeSignal(signalNum)(d0)
  67. AllocTrap(trapNum)(d0)
  68. FreeTrap(trapNum)(d0)
  69. *------ messages -----------------------------------------------------
  70. AddPort(port)(a1)
  71. RemPort(port)(a1)
  72. PutMsg(port,message)(a0/a1)
  73. GetMsg(port)(a0)
  74. ReplyMsg(message)(a1)
  75. WaitPort(port)(a0)
  76. FindPort(name)(a1)
  77. *------ libraries ----------------------------------------------------
  78. AddLibrary(library)(a1)
  79. RemLibrary(library)(a1)
  80. OldOpenLibrary(libName)(a1)
  81. CloseLibrary(library)(a1)
  82. SetFunction(library,funcOffset,newFunction)(a1,a0,d0)
  83. SumLibrary(library)(a1)
  84. *------ devices ------------------------------------------------------
  85. AddDevice(device)(a1)
  86. RemDevice(device)(a1)
  87. OpenDevice(devName,unit,ioRequest,flags)(a0,d0/a1,d1)
  88. CloseDevice(ioRequest)(a1)
  89. DoIO(ioRequest)(a1)
  90. SendIO(ioRequest)(a1)
  91. CheckIO(ioRequest)(a1)
  92. WaitIO(ioRequest)(a1)
  93. AbortIO(ioRequest)(a1)
  94. *------ resources ----------------------------------------------------
  95. AddResource(resource)(a1)
  96. RemResource(resource)(a1)
  97. OpenResource(resName)(a1)
  98. *------ private diagnostic support -----------------------------------
  99. ##private
  100. execPrivate7()()
  101. execPrivate8()()
  102. execPrivate9()()
  103. ##public
  104. *------ misc ---------------------------------------------------------
  105. RawDoFmt(formatString,dataStream,putChProc,putChData)(a0/a1/a2/a3)
  106. GetCC()()
  107. TypeOfMem(address)(a1)
  108. Procure(sigSem,bidMsg)(a0/a1)
  109. Vacate(sigSem,bidMsg)(a0/a1)
  110. OpenLibrary(libName,version)(a1,d0)
  111. *--- functions in V33 or higher (distributed as Release 1.2) ---
  112. *------ signal semaphores (note funny registers)----------------------
  113. InitSemaphore(sigSem)(a0)
  114. ObtainSemaphore(sigSem)(a0)
  115. ReleaseSemaphore(sigSem)(a0)
  116. AttemptSemaphore(sigSem)(a0)
  117. ObtainSemaphoreList(sigSem)(a0)
  118. ReleaseSemaphoreList(sigSem)(a0)
  119. FindSemaphore(sigSem)(a1)
  120. AddSemaphore(sigSem)(a1)
  121. RemSemaphore(sigSem)(a1)
  122. *------ kickmem support ----------------------------------------------
  123. SumKickData()()
  124. *------ more memory support ------------------------------------------
  125. AddMemList(size,attributes,pri,base,name)(d0/d1/d2/a0/a1)
  126. CopyMem(source,dest,size)(a0/a1,d0)
  127. CopyMemQuick(source,dest,size)(a0/a1,d0)
  128. *------ cache --------------------------------------------------------
  129. *--- functions in V36 or higher (distributed as Release 2.0) ---
  130. CacheClearU()()
  131. CacheClearE(address,length,caches)(a0,d0/d1)
  132. CacheControl(cacheBits,cacheMask)(d0/d1)
  133. *------ misc ---------------------------------------------------------
  134. CreateIORequest(port,size)(a0,d0)
  135. DeleteIORequest(iorequest)(a0)
  136. CreateMsgPort()()
  137. DeleteMsgPort(port)(a0)
  138. ObtainSemaphoreShared(sigSem)(a0)
  139. *------ even more memory support -------------------------------------
  140. AllocVec(byteSize,requirements)(d0/d1)
  141. FreeVec(memoryBlock)(a1)
  142. *------ V39 Pool LVOs...
  143. CreatePool(requirements,puddleSize,threshSize)(d0/d1/d2)
  144. DeletePool(poolHeader)(a0)
  145. AllocPooled(poolHeader,memSize)(a0,d0)
  146. FreePooled(poolHeader,memory,memSize)(a0/a1,d0)
  147. *------ misc ---------------------------------------------------------
  148. AttemptSemaphoreShared(sigSem)(a0)
  149. ColdReboot()()
  150. StackSwap(newStack)(a0)
  151. *------ task trees ---------------------------------------------------
  152. ChildFree(tid)(d0)
  153. ChildOrphan(tid)(d0)
  154. ChildStatus(tid)(d0)
  155. ChildWait(tid)(d0)
  156. *------ future expansion ---------------------------------------------
  157. CachePreDMA(address,length,flags)(a0/a1,d1)
  158. CachePostDMA(address,length,flags)(a0/a1,d1)
  159. *------ New, for V39
  160. *--- functions in V39 or higher (beta release for developers only) ---
  161. *------ Low memory handler functions
  162. AddMemHandler(memhand)(a1)
  163. RemMemHandler(memhand)(a1)
  164. ##private
  165. execPrivate10()()
  166. execPrivate11()()
  167. execPrivate12()()
  168. execPrivate13()()
  169. * For ROM Space, a tagged OpenLibrary
  170. execPrivate14()()
  171. ##public
  172. ##end
  173.