1101,13 → 1101,11 |
f68: |
cmp ebx, 4 |
jbe sys_sheduler |
|
cmp ebx, 11 |
jb undefined_syscall |
|
cmp ebx, 27 |
ja undefined_syscall |
|
xor eax, eax |
jmp dword [f68call+ebx*4-11*4] |
.11: |
call init_heap |
1143,7 → 1141,7 |
.19: |
cmp ecx, OS_BASE |
jae .fail |
stdcall load_library, ecx |
stdcall load_library, ecx, eax |
mov [esp+SYSCALL_STACK._eax], eax |
ret |
.20: |
1155,10 → 1153,8 |
.21: |
cmp ecx, OS_BASE |
jae .fail |
|
cmp edx, OS_BASE |
jae .fail |
|
stdcall load_pe_driver, ecx, edx |
mov [esp+SYSCALL_STACK._eax], eax |
ret |
1165,16 → 1161,13 |
.22: |
cmp ecx, OS_BASE |
jae .fail |
|
stdcall shmem_open, ecx, edx, esi |
mov [esp+SYSCALL_STACK._edx], edx |
mov [esp+SYSCALL_STACK._eax], eax |
ret |
|
.23: |
cmp ecx, OS_BASE |
jae .fail |
|
stdcall shmem_close, ecx |
mov [esp+SYSCALL_STACK._eax], eax |
ret |
1195,16 → 1188,13 |
bts [eax+APPDATA.except_mask], ecx |
@@: |
ret |
|
.26: |
stdcall user_unmap, ecx, edx, esi |
mov [esp+SYSCALL_STACK._eax], eax |
ret |
|
.27: |
cmp ecx, OS_BASE |
jae .fail |
|
stdcall load_file_umode, ecx |
mov [esp+SYSCALL_STACK._edx], edx |
mov [esp+SYSCALL_STACK._eax], eax |
1211,11 → 1201,9 |
ret |
|
.fail: |
xor eax, eax |
mov [esp+SYSCALL_STACK._eax], eax |
ret |
|
|
align 4 |
f68call: ; keep this table closer to main code |
|