-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
diff
126 lines (125 loc) · 7.21 KB
/
diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
-// void Schedule()()
-// void Exception()()
-// void InitCode(ULONG startClass, ULONG version)(D0, D1)
-// void InitStruct(CONST_APTR initTable, APTR memory, ULONG size)(A1, A2, D0)
-// struct Library *MakeLibrary(CONST_APTR funcInit, CONST_APTR structInit, ULONG_FUNC libInit, ULONG dataSize, BPTR segList)(A0, A1, A2, D0, D1)
-// ULONG MakeFunctions(APTR target, CONST_APTR functionArray, CONST_APTR funcDispBase)(A0, A1, A2) void *(*AllocMem)(size_t size, uint32_t requirements);
-// struct Resident *FindResident(const UBYTE *name)(A1)
-// APTR InitResident(struct Resident *resident, BPTR segList)(A1, D1)
-// void Alert(ULONG alertNum)(D7)
-// void Debug(unsigned long flags)(D0)
-
-// void Cause(struct Interrupt *softint)(A1)
-// APTR Allocate(struct MemHeader *freeList, IPTR byteSize)(A0, D0)
-// void Deallocate(struct MemHeader *freeList, APTR memoryBlock, IPTR byteSize)(A0, A1, D0)
-// struct MemList *AllocEntry(struct MemList *entry) (A0)
-// void FreeEntry(struct MemList *entry) (A0)
-// APTR AddTask(struct Task *task, APTR initialPC, APTR finalPC) (A1, A2, A3)
-// void RemTask(struct Task *task) (A1)
-// struct Task *FindTask(CONST_STRPTR name) (A1)
-// BYTE SetTaskPri(struct Task *task, LONG priority) (A1, D0)
-// ULONG SetSignal(ULONG newSignals, ULONG signalSet) (D0, D1)
-// ULONG SetExcept(ULONG newSignals, ULONG signalSet) (D0, D1)
-// ULONG Wait(ULONG signalSet) (D0)
-// void Signal(struct Task *task, ULONG signalSet) (A1, D0)
-// BYTE AllocSignal(LONG signalNum) (D0)
-// void FreeSignal(LONG signalNum) (D0)
-// LONG AllocTrap(long trapNum) (D0)
-// void FreeTrap(long trapNum) (D0)
-// void AddLibrary(struct Library *library) (A1)
-// void RemLibrary(struct Library *library) (A1)
-// APTR SetFunction(struct Library *library, LONG funcOffset, APTR newFunction) (A1, A0, D0)
-// void AddDevice(struct Device *device) (A1)
-// void RemDevice(struct Device *device) (A1)
-// LONG OpenDevice(CONST_STRPTR devName, IPTR unitNumber, struct IORequest *iORequest, ULONG flags) (A0, D0, A1, D1)
-// void CloseDevice(struct IORequest *iORequest) (A1)
-// LONG DoIO(struct IORequest *iORequest) (A1)
-// void SendIO(struct IORequest *iORequest) (A1)
-// struct IORequest *CheckIO(struct IORequest *iORequest) (A1)
-// LONG WaitIO(struct IORequest *iORequest) (A1)
-// LONG AbortIO(struct IORequest *iORequest) (A1)
-// void AddResource(APTR resource) (A1)
-// void RemResource(APTR resource) (A1)
-// APTR OpenResource(CONST_STRPTR resName) (A1)
-// RAWARG RawDoFmt(CONST_STRPTR FormatString, RAWARG DataStream, VOID_FUNC PutChProc, APTR PutChData) (A0, A1, A2, A3)
-// ULONG TypeOfMem(APTR address) (A1)
-// ULONG Procure(struct SignalSemaphore *sigSem, struct SemaphoreMessage *bidMsg) (A0, A1)
-// void Vacate(struct SignalSemaphore *sigSem, struct SemaphoreMessage *bidMsg) (A0, A1)
-// struct Library *OpenLibrary(CONST_STRPTR libName, ULONG version) (A1, D0)
-// .version 33
-// void InitSemaphore(struct SignalSemaphore *sigSem) (A0)
-// void ObtainSemaphore(struct SignalSemaphore *sigSem) (A0)
-// void ReleaseSemaphore(struct SignalSemaphore *sigSem) (A0)
-// ULONG AttemptSemaphore(struct SignalSemaphore *sigSem) (A0)
-// void ObtainSemaphoreList(struct List *sigSem) (A0)
-// void ReleaseSemaphoreList(struct List *sigSem) (A0)
-// struct SignalSemaphore *FindSemaphore(CONST_STRPTR name) (A1)
-// void AddSemaphore(struct SignalSemaphore *sigSem) (A1)
-// void RemSemaphore(struct SignalSemaphore *sigSem) (A1)
-// void AddMemList(IPTR size, ULONG attributes, LONG pri, APTR base, STRPTR name) (D0, D1, D2, A0, A1)
-/*
-APTR CreateIORequest(struct MsgPort *ioReplyPort, ULONG size) (A0, D0)
-void DeleteIORequest(APTR iorequest) (A0)
-void ObtainSemaphoreShared(struct SignalSemaphore *sigSem) (A0)
-ULONG AttemptSemaphoreShared(struct SignalSemaphore *sigSem) (A0)
-void ColdReboot() ()
-void StackSwap(struct StackSwapStruct *sss) (A0)
-.private
-void ChildFree(ULONG tid) (D0)
-ULONG ChildOrphan(ULONG tid) (D0)
-ULONG ChildStatus(ULONG tid) (D0)
-IPTR ChildWait(ULONG tid) (D0)
-.version 39
-void AddMemHandler(struct Interrupt *memHandler) (A1)
-void RemMemHandler(struct Interrupt *memHandler) (A1)
-ULONG ObtainQuickVector(APTR interruptCode) (A0)
-.skip 1 # MorphOS: NewSetFunction()
-.skip 1 # MorphOS: NewCreateLibrary()
-IPTR NewStackSwap(struct StackSwapStruct *newStack, APTR function, struct StackSwapArgs *args) (A0, A1, A2)
-.version 50
-STRPTR VNewRawDoFmt(CONST_STRPTR FormatString, VOID_FUNC PutChProc, APTR PutChData, va_list VaListStream) (A0, A2, A3, A1)
-.version 45
-void NewMinList(struct MinList *ml) (A0)
-.skip 1 # MorphOS: CacheInvalidInstArea(APTR Address, ULONG Size) (A0, D0)
-.skip 1 # MorphOS: CacheInvalidDataArea(APTR Address, ULONG Size) (A0, D0)
-.skip 1 # MorphOS: CacheFlushDataInstArea(APTR Address, ULONG Size) (A0, D0)
-.version 45
-.version 50
-.skip 1 # MorphOS: ULONG NewSetSystemAttrsA(APTR yData, ULONG Size, ULONG Type, struct TagItem *Tags ) (A0, D0, D1, A1)
-struct Task *NewCreateTaskA(struct TagItem *tags) (A0)
-.skip 1 # MorphOS: NewRawDoFmt()
-.skip 1 # MorphOS: APTR AllocateAligned(struct MemHeader *memHeader, ULONG byteSize, ULONG alignSize, ULONG alignOffset) (base,sysv)
-.skip 1 # MorphOS: APTR AllocMemAligned(ULONG byteSize, ULONG attributes, ULONG alignSize, ULONG alignOffset) (base,sysv)
-.skip 1 # MorphOS: APTR AllocVecAligned(ULONG byteSize, ULONG attributes, ULONG alignSize, ULONG alignOffset) (base,sysv)
-.skip 1 # MorphOS: AddExecNotify(struct Hook *hook) (base,sysv)
-.skip 1 # MorphOS: RemExecNotify(struct Hook *hook) (base,sysv)
-.skip 1 # MorphOS: struct Node *FindExecNode(ULONG type, CONST_STRPTR name) (D0, A0)
-.skip 1 # MorphOS: APTR AddExecNodeA(APTR innode, struct TagItem *Tags) (A0, A1)
-.skip 1 # MorphOS: APTR AllocVecDMA(ULONG byteSize, ULONG requirements) (D0, D1)
-.skip 1 # MorphOS: VOID FreeVecDMA(APTR memoryBlock) (A1)
-.skip 1 # MorphOS: APTR AllocPooledAligned(APTR poolHeader, ULONG byteSize, ULONG alignSize, ULONG alignOffset) (base,sysv)
-.skip 1 # MorphOS: LONG AddResident(struct Resident *resident) (base,sysv)
-struct Task *FindTaskByPID(ULONG processID) (D0)
-BOOL AddResetCallback(struct Interrupt *resetCallback) (A0)
-void RemResetCallback(struct Interrupt *resetCallback) (A0)
-.skip 1 # MorphOS: void DumpTaskState(struct Task *task) (A0)
-.skip 1 # MorphOS: void AddExecNotifyType(struct Hook *hook, LONG Type) (base,sysv)
-ULONG ShutdownA(ULONG action) (D0)
-.novararg
-struct MemList *NewAllocEntry(struct MemList *entry, ULONG *return_flags) (A0, A1)
-.skip 1 # MorphOS: ULONG AvailPool(APTR poolHeader, ULONG flags) (base,sysv)
-APTR NewAddTask(struct Task *task, APTR initialPC, APTR finalPC, struct TagItem *tagList) (A1, A2, A3, A4)
-# MorphOS functions follow:
-.skip 1 # void PutMsgHead(struct MsgPort *port, struct Message *message) (base,sysv)
-.skip 1 # ULONG NewGetTaskPIDAttrsA(ULONG pid, APTR data, ULONG dataSize, ULONG type, struct TagItem *tags) (D0, A0, D1, D2, A1)
-.skip 1 # ULONG NewGetTaskPIDAttrsA(ULONG pid, APTR data, ULONG dataSize, ULONG type, struct TagItem *tags) (D0, A0, D1, D2, A1)
-.version 51
-LONG AllocTaskStorageSlot() ()
-VOID FreeTaskStorageSlot(LONG slot) (D0)
-APTR SaveTaskStorage() ()
-void RestoreTaskStorage(APTR id) (A0)
-BOOL SetTaskStorageSlot(LONG id, IPTR value) (D0, D1)
-IPTR GetTaskStorageSlot(LONG id) (D0)
-IPTR GetParentTaskStorageSlot(LONG id) (D0)
-*/
-};