Rev 2364 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2364 | Rev 2382 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2010. 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 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 2364 $ |
8 | $Revision: 2382 $ |
9 | 9 | ||
10 | ; Old style system call converter |
10 | ; Old style system call converter |
11 | align 16 |
11 | align 16 |
Line 15... | Line 15... | ||
15 | mov ebx, ecx |
15 | mov ebx, ecx |
16 | mov ecx, edx |
16 | mov ecx, edx |
17 | mov edx, esi |
17 | mov edx, esi |
18 | mov esi, edi |
18 | mov esi, edi |
19 | movzx edi, byte[esp+28 + 4] |
19 | movzx edi, byte[esp+28 + 4] |
- | 20 | sub edi, 53 |
|
20 | call dword [servetable+edi*4] |
21 | call dword [servetable+edi*4] |
21 | ret |
22 | ret |
Line 22... | Line 23... | ||
22 | 23 | ||
23 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
24 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 99... | Line 100... | ||
99 | ;; SYSTEM FUNCTIONS TABLE ;; |
100 | ;; SYSTEM FUNCTIONS TABLE ;; |
100 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
101 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 101... | Line 102... | ||
101 | 102 | ||
102 | align 4 |
103 | align 4 |
103 | servetable: |
- | |
104 | - | ||
105 | dd 0 |
- | |
106 | dd 0 |
- | |
107 | dd 0 |
- | |
108 | dd 0 |
- | |
109 | dd 0 |
- | |
110 | dd 0 |
- | |
111 | dd 0 |
- | |
112 | dd 0 |
- | |
113 | dd 0 |
- | |
114 | dd 0 |
- | |
115 | dd 0 |
- | |
116 | dd 0 |
- | |
117 | dd 0 |
- | |
118 | dd 0 |
- | |
119 | dd 0 |
- | |
120 | dd 0 |
- | |
121 | dd 0 |
- | |
122 | dd 0 |
- | |
123 | dd 0 |
- | |
124 | dd 0 |
- | |
125 | dd 0 |
- | |
126 | dd 0 |
- | |
127 | dd 0 |
- | |
128 | dd 0 |
- | |
129 | dd 0 |
- | |
130 | dd 0 |
- | |
131 | dd 0 |
- | |
132 | dd 0 |
- | |
133 | dd 0 |
- | |
134 | dd 0 |
- | |
135 | dd 0 |
- | |
136 | dd 0 |
104 | servetable: |
137 | dd 0 |
105 | dd 0 |
138 | dd 0 |
106 | dd 0 |
139 | dd 0 |
107 | dd 0 |
140 | dd 0 |
108 | dd 0 |
141 | dd 0 |
- | |
142 | dd 0 |
- | |
143 | dd 0 |
- | |
144 | dd 0 |
- | |
145 | dd 0 |
- | |
146 | dd 0 |
- | |
147 | dd 0 |
- | |
148 | dd 0 |
- | |
149 | dd 0 |
- | |
150 | dd 0 |
- | |
151 | dd 0 |
- | |
152 | dd 0 |
- | |
153 | dd 0 |
- | |
154 | dd 0 |
- | |
155 | dd 0 |
- | |
156 | dd 0 |
- | |
157 | dd 0 |
- | |
158 | dd 0 |
- | |
159 | dd 0 |
- | |
160 | dd sound_interface ; 55-Sound interface |
- | |
161 | dd 0 |
- | |
162 | dd 0 |
109 | dd 0 |
163 | dd file_system ; 58-Common file system interface |
110 | dd file_system ; 58-Common file system interface |
164 | dd 0 |
- | |
165 | dd sys_IPC ; 60-Inter Process Communication |
- | |
166 | dd sys_gs ; 61-Direct graphics access |
- | |
167 | dd sys_pci ; 62-PCI functions |
- | |
168 | dd sys_msg_board ; 63-System message board |
- | |
169 | dd 0 |
- | |
170 | dd syscall_putimage_palette; 65-PutImagePalette |
- | |
171 | dd sys_process_def ; 66-Process definitions - keyboard |
- | |
172 | dd sys_window_move ; 67-Window move or resize |
111 | dd 0 |
173 | dd 0 |
112 | dd 0 |
- | 113 | dd 0 |
|
174 | dd 0 |
114 | dd 0 ; 62-PCI functions |
Line 175... | Line 115... | ||
175 | dd file_system_lfn ; 70-Common file system interface, version 2 |
115 | dd sys_msg_board ; 63-System message board |
176 | 116 | ||
177 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
117 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
178 | ;; NEW SYSTEM FUNCTIONS TABLE ;; |
118 | ;; NEW SYSTEM FUNCTIONS TABLE ;; |
179 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
119 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 180... | Line 120... | ||
180 | align 4 |
120 | align 4 |
181 | servetable2: |
121 | servetable2: |
182 | 122 | ||
183 | dd sys_drawwindow ; 0-DrawWindow |
123 | dd syscall_draw_window ; 0-DrawWindow |
184 | dd syscall_setpixel ; 1-SetPixel |
124 | dd syscall_setpixel ; 1-SetPixel |
185 | dd sys_getkey ; 2-GetKey |
125 | dd sys_getkey ; 2-GetKey |
Line 219... | Line 159... | ||
219 | dd syscall_getarea ; 36-GetArea |
159 | dd syscall_getarea ; 36-GetArea |
220 | dd readmousepos ; 37-GetMousePosition_ScreenRelative,. |
160 | dd readmousepos ; 37-GetMousePosition_ScreenRelative,. |
221 | dd syscall_drawline ; 38-DrawLine |
161 | dd syscall_drawline ; 38-DrawLine |
222 | dd sys_getbackground ; 39-GetBackgroundSize,ReadBgrData,. |
162 | dd sys_getbackground ; 39-GetBackgroundSize,ReadBgrData,. |
223 | dd set_app_param ; 40-WantEvents |
163 | dd set_app_param ; 40-WantEvents |
224 | dd syscall_getirqowner ; 41-GetIrqOwner |
164 | dd undefined_syscall ; 41- deprecated GetIrqOwner |
225 | dd get_irq_data ; 42-ReadIrqData |
165 | dd undefined_syscall ; 42- deprecated ReadIrqData |
226 | dd sys_outport ; 43-SendDeviceData |
166 | dd sys_outport ; 43-SendDeviceData |
227 | dd sys_programirq ; 44-ProgramIrqs |
167 | dd undefined_syscall ; 44- deprecated ProgramIrqs |
228 | dd reserve_free_irq ; 45-ReserveIrq and FreeIrq |
168 | dd undefined_syscall ; 45- deprecated ReserveIrq and FreeIrq |
229 | dd syscall_reserveportarea ; 46-ReservePortArea and FreePortArea |
169 | dd syscall_reserveportarea ; 46-ReservePortArea and FreePortArea |
230 | dd display_number ; 47-WriteNum |
170 | dd display_number ; 47-WriteNum |
231 | dd syscall_display_settings ; 48-SetRedrawType and SetButtonType |
171 | dd syscall_display_settings ; 48-SetRedrawType and SetButtonType |
232 | dd sys_apm ; 49-Advanced Power Management (APM) |
172 | dd sys_apm ; 49-Advanced Power Management (APM) |
233 | dd syscall_set_window_shape ; 50-Window shape & scale |
173 | dd syscall_set_window_shape ; 50-Window shape & scale |
234 | dd syscall_threads ; 51-Threads |
174 | dd syscall_threads ; 51-Threads |
235 | dd undefined_syscall ; 52-Stack driver status |
175 | dd undefined_syscall ; 52 old network stack |
236 | dd undefined_syscall ; 53-Socket interface |
176 | dd undefined_syscall ; 53 old network stack |
237 | dd undefined_syscall ; 54-reserved |
177 | dd undefined_syscall ; 54-reserved |
238 | dd cross_order ; 55-Sound interface |
178 | dd sound_interface ; 55-Sound interface |
239 | dd undefined_syscall ; 56-reserved |
179 | dd undefined_syscall ; 56-reserved |
240 | dd sys_pcibios ; 57-PCI BIOS32 |
180 | dd sys_pcibios ; 57-PCI BIOS32 |
241 | dd cross_order ; 58-Common file system interface |
181 | dd cross_order ; 58-Common file system interface |
242 | dd undefined_syscall ; 59-reserved |
182 | dd undefined_syscall ; 59-reserved |
243 | dd cross_order ; 60-Inter Process Communication |
183 | dd sys_IPC ; 60-Inter Process Communication |
244 | dd cross_order ; 61-Direct graphics access |
184 | dd sys_gs ; 61-Direct graphics access |
245 | dd cross_order ; 62-PCI functions |
185 | dd pci_api ;cross_order ; 62-PCI functions |
246 | dd cross_order ; 63-System message board |
186 | dd cross_order ; 63-System message board |
247 | dd sys_resize_app_memory ; 64-Resize application memory usage |
187 | dd sys_resize_app_memory ; 64-Resize application memory usage |
248 | dd cross_order ; 65-PutImagePalette |
188 | dd sys_putimage_palette ; 65-PutImagePalette |
249 | dd cross_order ; 66-Process definitions - keyboard |
189 | dd sys_process_def ; 66-Process definitions - keyboard |
250 | dd cross_order ; 67-Window move or resize |
190 | dd syscall_move_window ; 67-Window move or resize |
251 | dd f68 ; 68-Some internal services |
191 | dd f68 ; 68-Some internal services |
252 | dd sys_debug_services ; 69-Debug |
192 | dd sys_debug_services ; 69-Debug |
253 | dd cross_order ; 70-Common file system interface, version 2 |
193 | dd file_system_lfn ; 70-Common file system interface, version 2 |
254 | dd syscall_windowsettings ; 71-Window settings |
194 | dd syscall_window_settings ; 71-Window settings |
255 | dd sys_sendwindowmsg ; 72-Send window message |
195 | dd sys_sendwindowmsg ; 72-Send window message |
256 | dd undefined_syscall ; 73-reserved for blitter |
196 | dd blit_32 ; 73-blitter; |
257 | dd sys_network ; 74-Network stack |
197 | dd sys_network ; 74-Network stack |
258 | dd sys_socket ; 75-Sockets |
198 | dd sys_socket ; 75-Sockets |
259 | dd sys_protocols ; 76-Protocols |
199 | dd sys_protocols ; 76-Protocols |
260 | times 255 - ( ($-servetable2) /4 ) dd undefined_syscall |
200 | times 255 - ( ($-servetable2) /4 ) dd undefined_syscall |
261 | dd sys_end ; -1-end application |
201 | dd sys_end ; -1-end application |