Subversion Repositories Kolibri OS

Rev

Rev 3031 | Rev 3391 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3031 Rev 3039
1
.file   "export.s"
1
.file   "export.s"
2
    .intel_syntax
2
    .intel_syntax
3
 
3
 
4
.text
4
.text
5
 
5
 
6
    .global _AllocKernelSpace
6
    .global _AllocKernelSpace
7
    .global _AllocPage
7
    .global _AllocPage
8
    .global _AllocPages
8
    .global _AllocPages
9
 
9
 
10
    .global _AttachIntHandler
10
    .global _AttachIntHandler
11
 
11
 
12
    .global _CreateEvent
12
    .global _CreateEvent
13
    .global _CreateObject
13
    .global _CreateObject
14
    .global _CreateRingBuffer
14
    .global _CreateRingBuffer
15
 
15
 
16
    .global _Delay
16
    .global _Delay
17
    .global _DestroyEvent
17
    .global _DestroyEvent
18
    .global _DestroyObject
18
    .global _DestroyObject
19
 
19
 
20
    .global _FreeKernelSpace
20
    .global _FreeKernelSpace
21
    .global _FreePage
21
    .global _FreePage
22
 
22
 
23
    .global _GetDisplay
23
    .global _GetDisplay
24
    .global _GetEvent
24
    .global _GetEvent
25
    .global _GetPgAddr
25
    .global _GetPgAddr
26
    .global _GetPid
26
    .global _GetPid
27
    .global _GetService
27
    .global _GetService
28
    .global _GetTimerTicks
28
    .global _GetTimerTicks
29
    .global _GetStackBase
29
    .global _GetStackBase
30
    .global _GetWindowRect
30
    .global _GetWindowRect
31
 
31
 
32
    .global _KernelAlloc
32
    .global _KernelAlloc
33
    .global _KernelFree
33
    .global _KernelFree
34
 
34
 
35
    .global _MapIoMem
35
    .global _MapIoMem
36
 
36
 
37
    .global _MapPage
37
    .global _MapPage
38
 
38
 
39
    .global _MutexInit
39
    .global _MutexInit
40
    .global _MutexLock
40
    .global _MutexLock
41
    .global _MutexUnlock
41
    .global _MutexUnlock
42
 
42
 
43
    .global _PciApi
43
    .global _PciApi
44
    .global _PciRead16
44
    .global _PciRead16
45
    .global _PciRead32
45
    .global _PciRead32
46
    .global _PciRead8
46
    .global _PciRead8
47
    .global _PciWrite16
47
    .global _PciWrite16
48
    .global _PciWrite32
48
    .global _PciWrite32
49
    .global _PciWrite8
49
    .global _PciWrite8
50
 
50
 
51
    .global _RaiseEvent
51
    .global _RaiseEvent
52
 
52
 
53
    .global _RegService
53
    .global _RegService
54
 
54
 
55
    .global _SetMouseData
55
    .global _SetMouseData
56
    .global _SetKeyboardData
56
    .global _SetKeyboardData
57
 
57
 
58
    .global _SetScreen
58
    .global _SetScreen
59
    .global _SysMsgBoardStr
59
    .global _SysMsgBoardStr
60
 
60
 
61
    .global _TimerHs
61
    .global _TimerHs
62
 
62
 
63
    .global _UserAlloc
63
    .global _UserAlloc
64
 
64
    .global _UserFree
-
 
65
 
65
    .global _WaitEvent
66
    .global _WaitEvent
66
 
67
 
67
 
68
 
68
    .def  _AllocKernelSpace;  .scl  2;  .type 32; .endef
69
    .def  _AllocKernelSpace;  .scl  2;  .type 32; .endef
69
    .def  _AllocPage;         .scl  2;  .type 32; .endef
70
    .def  _AllocPage;         .scl  2;  .type 32; .endef
70
    .def  _AllocPages;        .scl  2;  .type 32; .endef
71
    .def  _AllocPages;        .scl  2;  .type 32; .endef
71
 
72
 
72
    .def  _AttachIntHandler;  .scl  2;  .type 32; .endef
73
    .def  _AttachIntHandler;  .scl  2;  .type 32; .endef
73
 
74
 
74
    .def  _CreateEvent;       .scl  2;  .type 32; .endef
75
    .def  _CreateEvent;       .scl  2;  .type 32; .endef
75
    .def  _CreateObject;      .scl  2;  .type 32; .endef
76
    .def  _CreateObject;      .scl  2;  .type 32; .endef
76
    .def  _CreateRingBuffer;  .scl  2;  .type 32; .endef
77
    .def  _CreateRingBuffer;  .scl  2;  .type 32; .endef
77
 
78
 
78
    .def  _Delay;             .scl  2;  .type 32; .endef
79
    .def  _Delay;             .scl  2;  .type 32; .endef
79
    .def  _DestroyEvent;      .scl  2;  .type 32; .endef
80
    .def  _DestroyEvent;      .scl  2;  .type 32; .endef
80
    .def  _DestroyObject;     .scl  2;  .type 32; .endef
81
    .def  _DestroyObject;     .scl  2;  .type 32; .endef
81
 
82
 
82
    .def  _FreeKernelSpace;   .scl  2;  .type 32; .endef
83
    .def  _FreeKernelSpace;   .scl  2;  .type 32; .endef
83
    .def  _FreePage;          .scl  2;  .type 32; .endef
84
    .def  _FreePage;          .scl  2;  .type 32; .endef
84
 
85
 
85
    .def  _GetDisplay;        .scl  2;  .type 32; .endef
86
    .def  _GetDisplay;        .scl  2;  .type 32; .endef
86
    .def  _GetEvent;          .scl  2;  .type 32; .endef
87
    .def  _GetEvent;          .scl  2;  .type 32; .endef
87
    .def  _GetPid;            .scl  2;  .type 32; .endef
88
    .def  _GetPid;            .scl  2;  .type 32; .endef
88
    .def  _GetPgAddr;         .scl  2;  .type 32; .endef
89
    .def  _GetPgAddr;         .scl  2;  .type 32; .endef
89
    .def  _GetService;        .scl  2;  .type 32; .endef
90
    .def  _GetService;        .scl  2;  .type 32; .endef
90
    .def  _GetTimerTicks;     .scl  2;  .type 32; .endef
91
    .def  _GetTimerTicks;     .scl  2;  .type 32; .endef
91
    .def  _GetStackBase;      .scl  2;  .type 32; .endef
92
    .def  _GetStackBase;      .scl  2;  .type 32; .endef
92
    .def  _GetWindowRect;     .scl  2;  .type 32; .endef
93
    .def  _GetWindowRect;     .scl  2;  .type 32; .endef
93
 
94
 
94
    .def  _KernelAlloc;       .scl  2;  .type 32; .endef
95
    .def  _KernelAlloc;       .scl  2;  .type 32; .endef
95
    .def  _KernelFree;        .scl  2;  .type 32; .endef
96
    .def  _KernelFree;        .scl  2;  .type 32; .endef
96
 
97
 
97
    .def  _MapIoMem;          .scl  2;  .type 32; .endef
98
    .def  _MapIoMem;          .scl  2;  .type 32; .endef
98
 
99
 
99
    .def  _MapPage;           .scl  2;  .type 32; .endef
100
    .def  _MapPage;           .scl  2;  .type 32; .endef
100
 
101
 
101
    .def  _MutexInit;         .scl  2;  .type 32; .endef
102
    .def  _MutexInit;         .scl  2;  .type 32; .endef
102
    .def  _MutexLock;         .scl  2;  .type 32; .endef
103
    .def  _MutexLock;         .scl  2;  .type 32; .endef
103
    .def  _MutexUnlock;       .scl  2;  .type 32; .endef
104
    .def  _MutexUnlock;       .scl  2;  .type 32; .endef
104
 
105
 
105
    .def  _PciApi;            .scl  2;  .type 32; .endef
106
    .def  _PciApi;            .scl  2;  .type 32; .endef
106
    .def  _PciRead16;         .scl  2;  .type 32; .endef
107
    .def  _PciRead16;         .scl  2;  .type 32; .endef
107
    .def  _PciRead32;         .scl  2;  .type 32; .endef
108
    .def  _PciRead32;         .scl  2;  .type 32; .endef
108
    .def  _PciRead8;          .scl  2;  .type 32; .endef
109
    .def  _PciRead8;          .scl  2;  .type 32; .endef
109
    .def  _PciWrite16;        .scl  2;  .type 32; .endef
110
    .def  _PciWrite16;        .scl  2;  .type 32; .endef
110
    .def  _PciWrite32;        .scl  2;  .type 32; .endef
111
    .def  _PciWrite32;        .scl  2;  .type 32; .endef
111
    .def  _PciWrite8;         .scl  2;  .type 32; .endef
112
    .def  _PciWrite8;         .scl  2;  .type 32; .endef
112
 
113
 
113
    .def  _RaiseEvent;        .scl  2;  .type 32; .endef
114
    .def  _RaiseEvent;        .scl  2;  .type 32; .endef
114
 
115
 
115
    .def  _RegService;        .scl  2;  .type 32; .endef
116
    .def  _RegService;        .scl  2;  .type 32; .endef
116
 
117
 
117
    .def  _SetScreen;         .scl  2;  .type 32; .endef
118
    .def  _SetScreen;         .scl  2;  .type 32; .endef
118
    .def  _SetMouseData;      .scl  2;  .type 32; .endef
119
    .def  _SetMouseData;      .scl  2;  .type 32; .endef
119
    .def  _SetKeyboardData;   .scl  2;  .type 32; .endef
120
    .def  _SetKeyboardData;   .scl  2;  .type 32; .endef
120
    .def  _SysMsgBoardStr;    .scl  2;  .type 32; .endef
121
    .def  _SysMsgBoardStr;    .scl  2;  .type 32; .endef
121
 
122
 
122
    .def  _TimerHs;           .scl  2;  .type 32; .endef
123
    .def  _TimerHs;           .scl  2;  .type 32; .endef
123
 
124
 
124
    .def  _UserAlloc;         .scl  2;  .type 32; .endef
125
    .def  _UserAlloc;         .scl  2;  .type 32; .endef
125
 
126
    .def  _UserFree;          .scl  2;  .type 32; .endef
-
 
127
 
126
    .def  _WaitEvent;         .scl  2;  .type 32; .endef
128
    .def  _WaitEvent;         .scl  2;  .type 32; .endef
127
 
129
 
128
 
130
 
129
_AllocKernelSpace:
131
_AllocKernelSpace:
130
_AllocPage:
132
_AllocPage:
131
_AllocPages:
133
_AllocPages:
132
 
134
 
133
_AttachIntHandler:
135
_AttachIntHandler:
134
 
136
 
135
_CreateEvent:
137
_CreateEvent:
136
_CreateObject:
138
_CreateObject:
137
_CreateRingBuffer:
139
_CreateRingBuffer:
138
 
140
 
139
_Delay:
141
_Delay:
140
 
142
 
141
_DestroyEvent:
143
_DestroyEvent:
142
_DestroyObject:
144
_DestroyObject:
143
 
145
 
144
_FreeKernelSpace:
146
_FreeKernelSpace:
145
_FreePage:
147
_FreePage:
146
 
148
 
147
_GetDisplay:
149
_GetDisplay:
148
_GetEvent:
150
_GetEvent:
149
_GetPid:
151
_GetPid:
150
_GetPgAddr:
152
_GetPgAddr:
151
_GetService:
153
_GetService:
152
_GetTimerTicks:
154
_GetTimerTicks:
153
_GetStackBase:
155
_GetStackBase:
154
_GetWindowRect:
156
_GetWindowRect:
155
 
157
 
156
_KernelAlloc:
158
_KernelAlloc:
157
_KernelFree:
159
_KernelFree:
158
 
160
 
159
_MapIoMem:
161
_MapIoMem:
160
 
162
 
161
_MapPage:
163
_MapPage:
162
 
164
 
163
_MutexInit:
165
_MutexInit:
164
_MutexLock:
166
_MutexLock:
165
_MutexUnlock:
167
_MutexUnlock:
166
 
168
 
167
_PciApi:
169
_PciApi:
168
_PciRead16:
170
_PciRead16:
169
_PciRead32:
171
_PciRead32:
170
_PciRead8:
172
_PciRead8:
171
_PciWrite16:
173
_PciWrite16:
172
_PciWrite32:
174
_PciWrite32:
173
_PciWrite8:
175
_PciWrite8:
174
 
176
 
175
_RaiseEvent:
177
_RaiseEvent:
176
_RegService:
178
_RegService:
177
 
179
 
178
_SetMouseData:
180
_SetMouseData:
179
_SetKeyboardData:
181
_SetKeyboardData:
180
 
182
 
181
_SetScreen:
183
_SetScreen:
182
_SysMsgBoardStr:
184
_SysMsgBoardStr:
183
 
185
 
184
_TimerHs:
186
_TimerHs:
185
 
187
 
186
_UserAlloc:
188
_UserAlloc:
187
_WaitEvent:
189
_UserFree:
-
 
190
_WaitEvent:
188
 
191
 
189
        ret
192
        ret
190
 
193
 
191
.section .drectve
194
.section .drectve
192
 
195
 
193
        .ascii " -export:AllocKernelSpace"     # stdcall
196
        .ascii " -export:AllocKernelSpace"     # stdcall
194
 
197
 
195
        .ascii " -export:AllocPage"            # gcc ABI
198
        .ascii " -export:AllocPage"            # gcc ABI
196
        .ascii " -export:AllocPages"           # gcc ABI
199
        .ascii " -export:AllocPages"           # gcc ABI
197
 
200
 
198
        .ascii " -export:AttachIntHandler"     # stdcall
201
        .ascii " -export:AttachIntHandler"     # stdcall
199
 
202
 
200
        .ascii " -export:CreateEvent"          #
203
        .ascii " -export:CreateEvent"          #
201
        .ascii " -export:CreateObject"         #
204
        .ascii " -export:CreateObject"         #
202
 
205
 
203
        .ascii " -export:CreateRingBuffer"     # stdcall
206
        .ascii " -export:CreateRingBuffer"     # stdcall
204
 
207
 
205
        .ascii " -export:Delay"                # stdcall
208
        .ascii " -export:Delay"                # stdcall
206
 
209
 
207
        .ascii " -export:DestroyEvent"
210
        .ascii " -export:DestroyEvent"
208
        .ascii " -export:DestroyObject"
211
        .ascii " -export:DestroyObject"
209
 
212
 
210
        .ascii " -export:FreeKernelSpace"      # stdcall
213
        .ascii " -export:FreeKernelSpace"      # stdcall
211
        .ascii " -export:FreePage"             #
214
        .ascii " -export:FreePage"             #
212
 
215
 
213
        .ascii " -export:GetDisplay"           # stdcall
216
        .ascii " -export:GetDisplay"           # stdcall
214
        .ascii " -export:GetEvent"             #
217
        .ascii " -export:GetEvent"             #
215
        .ascii " -export:GetPid"               #
218
        .ascii " -export:GetPid"               #
216
        .ascii " -export:GetPgAddr"            # stdcall
219
        .ascii " -export:GetPgAddr"            # stdcall
217
        .ascii " -export:GetService"           # stdcall
220
        .ascii " -export:GetService"           # stdcall
218
        .ascii " -export:GetTimerTicks"        #
221
        .ascii " -export:GetTimerTicks"        #
219
        .ascii " -export:GetStackBase"         #
222
        .ascii " -export:GetStackBase"         #
220
        .ascii " -export:GetWindowRect"        # fastcall
223
        .ascii " -export:GetWindowRect"        # fastcall
221
 
224
 
222
 
225
 
223
        .ascii " -export:KernelAlloc"          # stdcall
226
        .ascii " -export:KernelAlloc"          # stdcall
224
        .ascii " -export:KernelFree"           # stdcall
227
        .ascii " -export:KernelFree"           # stdcall
225
 
228
 
226
        .ascii " -export:MapIoMem"             # stdcall
229
        .ascii " -export:MapIoMem"             # stdcall
227
        .ascii " -export:MapPage"              # stdcall
230
        .ascii " -export:MapPage"              # stdcall
228
 
231
 
229
        .ascii " -export:MutexInit"            # fastcall
232
        .ascii " -export:MutexInit"            # fastcall
230
        .ascii " -export:MutexLock"            # fastcall
233
        .ascii " -export:MutexLock"            # fastcall
231
        .ascii " -export:MutexUnlock"          # fastcall
234
        .ascii " -export:MutexUnlock"          # fastcall
232
 
235
 
233
        .ascii " -export:PciApi"               #
236
        .ascii " -export:PciApi"               #
234
        .ascii " -export:PciRead16"            # stdcall
237
        .ascii " -export:PciRead16"            # stdcall
235
        .ascii " -export:PciRead32"            # stdcall
238
        .ascii " -export:PciRead32"            # stdcall
236
        .ascii " -export:PciRead8"             # stdcall
239
        .ascii " -export:PciRead8"             # stdcall
237
        .ascii " -export:PciWrite16"           # stdcall
240
        .ascii " -export:PciWrite16"           # stdcall
238
        .ascii " -export:PciWrite32"           # stdcall
241
        .ascii " -export:PciWrite32"           # stdcall
239
        .ascii " -export:PciWrite8"            # stdcall
242
        .ascii " -export:PciWrite8"            # stdcall
240
 
243
 
241
        .ascii " -export:RaiseEvent"           #
244
        .ascii " -export:RaiseEvent"           #
242
 
245
 
243
        .ascii " -export:RegService"           # stdcall
246
        .ascii " -export:RegService"           # stdcall
244
 
247
 
245
        .ascii " -export:SetMouseData"         # stdcall
248
        .ascii " -export:SetMouseData"         # stdcall
246
        .ascii " -export:SetKeyboardData"      # stdcall
249
        .ascii " -export:SetKeyboardData"      # stdcall
247
 
250
 
248
        .ascii " -export:SetScreen"            # stdcall
251
        .ascii " -export:SetScreen"            # stdcall
249
        .ascii " -export:SysMsgBoardStr"       # stdcall
252
        .ascii " -export:SysMsgBoardStr"       # stdcall
250
 
253
 
251
        .ascii " -export:TimerHs"              # stdcall
254
        .ascii " -export:TimerHs"              # stdcall
252
 
255
 
253
        .ascii " -export:UserAlloc"            # stdcall
256
        .ascii " -export:UserAlloc"            # stdcall
254
 
257
        .ascii " -export:UserFree"             # stdcall
-
 
258
 
255
        .ascii " -export:WaitEvent"            # stdcall
259
        .ascii " -export:WaitEvent"            # stdcall