Rev 492 | Rev 3614 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 492 | Rev 3545 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
7 | - | ||
8 | ; all exported kernel functions and data |
7 | macro kernel_export [name]{ |
9 | - | ||
10 | if used RegService |
- | |
11 | extrn RegService |
- | |
12 | end if |
- | |
13 | if used GetService |
- | |
14 | extrn GetService |
- | |
15 | end if |
- | |
16 | if used ServiceHandler |
- | |
17 | extrn ServiceHandler |
- | |
18 | end if |
- | |
19 | if used AttachIntHandler |
- | |
20 | extrn AttachIntHandler |
- | |
21 | end if |
- | |
22 | if used FpuSave |
- | |
23 | extrn FpuSave |
- | |
24 | end if |
- | |
25 | if used FpuRestore |
- | |
26 | extrn FpuRestore |
- | |
27 | end if |
- | |
28 | - | ||
29 | if used PciApi |
- | |
30 | extrn PciApi |
- | |
31 | end if |
- | |
32 | if used PciRead32 |
- | |
33 | extrn PciRead32 |
- | |
34 | end if |
- | |
35 | if used PciRead8 |
- | |
36 | extrn PciRead8 |
- | |
37 | end if |
- | |
38 | if used PciWrite8 |
- | |
39 | extrn PciWrite8 |
- | |
40 | end if |
- | |
41 | - | ||
42 | if used AllocPage |
- | |
43 | extrn AllocPage |
- | |
44 | end if |
- | |
45 | if used AllocPages |
- | |
46 | extrn AllocPages |
- | |
47 | end if |
- | |
48 | if used FreePage |
- | |
49 | extrn FreePage |
- | |
50 | end if |
8 | forward |
51 | if used MapPage |
9 | if used name |
52 | extrn MapPage |
- | |
53 | end if |
- | |
54 | if used MapSpace |
- | |
55 | extrn MapSpace |
10 | if DEBUG |
56 | end if |
- | |
57 | if used GetPgAddr |
- | |
58 | extrn GetPgAddr |
- | |
59 | end if |
- | |
60 | if used CommitPages |
- | |
61 | extrn CommitPages |
- | |
62 | end if |
- | |
63 | if used ReleasePages |
- | |
64 | extrn ReleasePages |
- | |
65 | end if |
- | |
66 | - | ||
67 | if used AllocKernelSpace |
- | |
68 | extrn AllocKernelSpace |
11 | display 'uses: ',`name,#13,#10 |
69 | end if |
- | |
70 | if used FreeKernelSpace |
- | |
71 | extrn FreeKernelSpace |
- | |
72 | end if |
- | |
73 | if used KernelAlloc |
- | |
74 | extrn KernelAlloc |
- | |
75 | end if |
12 | end if |
76 | if used KernelFree |
- | |
77 | extrn KernelFree |
- | |
78 | end if |
- | |
79 | if used UserAlloc |
- | |
80 | extrn UserAlloc |
- | |
81 | end if |
- | |
82 | if used UserFree |
- | |
83 | extrn UserFree |
- | |
84 | end if |
- | |
85 | if used Kmalloc |
- | |
86 | extrn Kmalloc |
- | |
87 | end if |
- | |
88 | if used Kfree |
- | |
89 | extrn Kfree |
13 | extrn name |
90 | end if |
- | |
91 | - | ||
92 | if used CreateObject |
- | |
93 | extrn CreateObject |
- | |
94 | end if |
- | |
95 | if used DestroyObject |
- | |
96 | extrn DestroyObject |
- | |
97 | end if |
- | |
98 | if used CreateEvent |
- | |
99 | extrn CreateEvent |
- | |
100 | end if |
- | |
101 | if used RaiseEvent |
- | |
102 | extrn RaiseEvent |
- | |
103 | end if |
- | |
104 | if used WaitEvent |
- | |
105 | extrn WaitEvent |
- | |
106 | end if |
- | |
107 | if used DestroyEvent |
- | |
108 | extrn DestroyEvent |
- | |
109 | end if |
- | |
110 | if used ClearEvent |
- | |
111 | extrn ClearEvent |
- | |
112 | end if |
- | |
113 | - | ||
114 | if used LoadCursor |
- | |
115 | extrn LoadCursor |
- | |
116 | end if |
- | |
117 | if used SetHwCursor |
- | |
118 | extrn SetHwCursor |
- | |
119 | end if |
- | |
120 | if used HwCursorRestore |
- | |
121 | extrn HwCursorRestore |
- | |
122 | end if |
- | |
123 | if used HwCursorCreate |
- | |
124 | extrn HwCursorCreate |
- | |
125 | end if |
14 | end if |
- | 15 | } |
|
- | 16 | ; all exported kernel functions and data |
|
Line 126... | Line -... | ||
126 | - | ||
127 | if used SysMsgBoardStr |
- | |
128 | extrn SysMsgBoardStr |
- | |
129 | end if |
- | |
130 | if used GetCurrentTask |
- | |
131 | extrn GetCurrentTask |
- | |
132 | end if |
- | |
133 | if used LoadFile |
- | |
134 | extrn LoadFile |
- | |
135 | end if |
- | |
136 | if used SendEvent |
- | |
137 | extrn SendEvent |
- | |
138 | end if |
- | |
139 | if used SetMouseData |
- | |
140 | extrn SetMouseData |
- | |
141 | end if |
- | |
142 | if used Sleep |
- | |
143 | extrn Sleep |
- | |
144 | end if |
- | |
145 | if used GetTimerTicks |
- | |
146 | extrn GetTimerTicks |
- | |
147 | end if |
- | |
148 | if used LFBAddress |
- | |
149 | extrn LFBAddress |
- | |
Line -... | Line 17... | ||
- | 17 | ||
- | 18 | ||
- | 19 | kernel_export \ |
|
- | 20 | RegService,\ |
|
- | 21 | GetService,\ |
|
- | 22 | ServiceHandler,\ |
|
- | 23 | AttachIntHandler,\ |
|
- | 24 | GetIntHandler,\ |
|
- | 25 | FpuSave,\ |
|
- | 26 | FpuRestore,\ |
|
- | 27 | ReservePortArea,\ |
|
- | 28 | Boot_Log,\ |
|
- | 29 | \ |
|
- | 30 | MutexInit,\ |
|
- | 31 | MutexLock,\ |
|
- | 32 | MutexUnlock,\ |
|
- | 33 | \ |
|
- | 34 | PciApi,\ |
|
- | 35 | PciRead32,\ |
|
- | 36 | PciRead16,\ |
|
- | 37 | PciRead8,\ |
|
- | 38 | PciWrite8,\ |
|
- | 39 | PciWrite16,\ |
|
- | 40 | PciWrite32,\ |
|
- | 41 | \ |
|
- | 42 | AllocPage,\ |
|
- | 43 | AllocPages,\ |
|
- | 44 | FreePage,\ |
|
- | 45 | MapPage,\ |
|
- | 46 | MapSpace,\ |
|
- | 47 | MapIoMem,\ |
|
- | 48 | GetPgAddr,\ |
|
- | 49 | CommitPages,\ |
|
- | 50 | ReleasePages,\ |
|
- | 51 | \ |
|
- | 52 | AllocKernelSpace,\ |
|
- | 53 | FreeKernelSpace,\ |
|
- | 54 | KernelAlloc,\ |
|
- | 55 | KernelFree,\ |
|
- | 56 | UserAlloc,\ |
|
- | 57 | UserFree,\ |
|
- | 58 | Kmalloc,\ |
|
- | 59 | Kfree,\ |
|
- | 60 | CreateRingBuffer,\ |
|
- | 61 | \ |
|
- | 62 | GetPid,\ |
|
- | 63 | CreateObject,\ |
|
- | 64 | DestroyObject,\ |
|
- | 65 | CreateEvent,\ |
|
- | 66 | RaiseEvent,\ |
|
- | 67 | WaitEvent,\ |
|
- | 68 | DestroyEvent,\ |
|
- | 69 | ClearEvent,\ |
|
- | 70 | \ |
|
- | 71 | LoadCursor,\ |
|
- | 72 | SelectHwCursor,\ |
|
- | 73 | SetHwCursor,\ |
|
- | 74 | HwCursorRestore,\ |
|
- | 75 | HwCursorCreate,\ |
|
- | 76 | \ |
|
- | 77 | SysMsgBoardStr,\ |
|
- | 78 | SysMsgBoardChar,\ |
|
- | 79 | GetCurrentTask,\ |
|
- | 80 | LoadFile,\ |
|
- | 81 | SendEvent,\ |
|
- | 82 | SetMouseData,\ |
|
- | 83 | Sleep,\ |
|
- | 84 | GetTimerTicks,\ |
|
- | 85 | \ |
|
- | 86 | strncat,\ |
|
- | 87 | strncpy,\ |
|
- | 88 | strncmp,\ |
|
- | 89 | strnlen,\ |
|
- | 90 | strchr,\ |
|
- | 91 | strrchr,\ |
|
- | 92 | \ |
|
- | 93 | LFBAddress,\ |
|
- | 94 | GetDisplay,\ |
|
- | 95 | SetScreen,\ |
|
- | 96 | \ |
|
- | 97 | NetRegDev,\ |
|
- | 98 | NetUnRegDev,\ |
|
- | 99 | NetPtrToNum,\ |
|
- | 100 | NetLinkChanged,\ |