Rev 6792 | Rev 7132 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6792 | Rev 6798 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2015. 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: 6792 $ |
8 | $Revision: 6798 $ |
9 | 9 | ||
Line 1101... | Line 1101... | ||
1101 | f68: |
1101 | f68: |
1102 | cmp ebx, 4 |
1102 | cmp ebx, 4 |
1103 | jbe sys_sheduler |
1103 | jbe sys_sheduler |
1104 | cmp ebx, 11 |
1104 | cmp ebx, 11 |
1105 | jb undefined_syscall |
1105 | jb undefined_syscall |
1106 | cmp ebx, 27 |
1106 | cmp ebx, 28 |
1107 | ja undefined_syscall |
1107 | ja undefined_syscall |
1108 | xor eax, eax |
1108 | xor eax, eax |
1109 | jmp dword [f68call+ebx*4-11*4] |
1109 | jmp dword [f68call+ebx*4-11*4] |
1110 | .11: |
1110 | .11: |
1111 | call init_heap |
1111 | call init_heap |
Line 1136... | Line 1136... | ||
1136 | ret |
1136 | ret |
1137 | .17: |
1137 | .17: |
1138 | call srv_handlerEx ;ecx |
1138 | call srv_handlerEx ;ecx |
1139 | mov [esp+SYSCALL_STACK._eax], eax |
1139 | mov [esp+SYSCALL_STACK._eax], eax |
1140 | ret |
1140 | ret |
- | 1141 | .18: |
|
- | 1142 | mov eax, edx |
|
1141 | .19: |
1143 | .19: |
1142 | cmp ecx, OS_BASE |
1144 | cmp ecx, OS_BASE |
1143 | jae .fail |
1145 | jae .fail |
1144 | stdcall load_library, ecx, eax |
1146 | stdcall load_library, ecx, eax |
1145 | mov [esp+SYSCALL_STACK._eax], eax |
1147 | mov [esp+SYSCALL_STACK._eax], eax |
Line 1197... | Line 1199... | ||
1197 | jae .fail |
1199 | jae .fail |
1198 | stdcall load_file_umode, ecx |
1200 | stdcall load_file_umode, ecx |
1199 | mov [esp+SYSCALL_STACK._edx], edx |
1201 | mov [esp+SYSCALL_STACK._edx], edx |
1200 | mov [esp+SYSCALL_STACK._eax], eax |
1202 | mov [esp+SYSCALL_STACK._eax], eax |
1201 | ret |
1203 | ret |
- | 1204 | .28: |
|
- | 1205 | cmp ecx, OS_BASE |
|
- | 1206 | jae .fail |
|
- | 1207 | push ecx edx |
|
- | 1208 | stdcall kernel_alloc, maxPathLength |
|
- | 1209 | mov edi, eax |
|
- | 1210 | pop eax esi |
|
- | 1211 | push edi |
|
- | 1212 | call getFullPath |
|
- | 1213 | pop ebp |
|
- | 1214 | test eax, eax |
|
- | 1215 | jz @f |
|
- | 1216 | stdcall load_file_umode, ebp |
|
- | 1217 | mov [esp+SYSCALL_STACK._edx], edx |
|
- | 1218 | @@: |
|
- | 1219 | mov [esp+SYSCALL_STACK._eax], eax |
|
- | 1220 | stdcall kernel_free, ebp |
|
- | 1221 | ret |
|
Line 1202... | Line 1222... | ||
1202 | 1222 | ||
1203 | .fail: |
1223 | .fail: |
1204 | mov [esp+SYSCALL_STACK._eax], eax |
1224 | mov [esp+SYSCALL_STACK._eax], eax |
Line 1212... | Line 1232... | ||
1212 | dd f68.13 ; user_free |
1232 | dd f68.13 ; user_free |
1213 | dd f68.14 ; get_event_ex |
1233 | dd f68.14 ; get_event_ex |
1214 | dd f68.fail ; moved to f68.24 |
1234 | dd f68.fail ; moved to f68.24 |
1215 | dd f68.16 ; get_service |
1235 | dd f68.16 ; get_service |
1216 | dd f68.17 ; call_service |
1236 | dd f68.17 ; call_service |
1217 | dd f68.fail ; moved to f68.25 |
1237 | dd f68.18 ; loadLibUnicode |
1218 | dd f68.19 ; load_dll |
1238 | dd f68.19 ; load_dll |
1219 | dd f68.20 ; user_realloc |
1239 | dd f68.20 ; user_realloc |
1220 | dd f68.21 ; load_driver |
1240 | dd f68.21 ; load_driver |
1221 | dd f68.22 ; shmem_open |
1241 | dd f68.22 ; shmem_open |
1222 | dd f68.23 ; shmem_close |
1242 | dd f68.23 ; shmem_close |
1223 | dd f68.24 ; set exception handler |
1243 | dd f68.24 ; set exception handler |
1224 | dd f68.25 ; unmask exception |
1244 | dd f68.25 ; unmask exception |
1225 | dd f68.26 ; user_unmap |
1245 | dd f68.26 ; user_unmap |
1226 | dd f68.27 ; load_file_umode |
1246 | dd f68.27 ; load_file_umode |
1227 | - | ||
- | 1247 | dd f68.28 ; loadFileUnicode |
|
Line 1228... | Line 1248... | ||
1228 | 1248 | ||
1229 | align 4 |
1249 | align 4 |
1230 | proc load_pe_driver stdcall, file:dword, cmdline:dword |
1250 | proc load_pe_driver stdcall, file:dword, cmdline:dword |