Rev 9900 | Rev 9911 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9900 | Rev 9910 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2022. 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: 9900 $ |
8 | $Revision: 9910 $ |
9 | 9 | ||
Line 934... | Line 934... | ||
934 | add ecx, PAGE_SIZE |
934 | add ecx, PAGE_SIZE |
935 | cmp ecx, edx |
935 | cmp ecx, edx |
936 | jb .touch |
936 | jb .touch |
Line 937... | Line 937... | ||
937 | 937 | ||
938 | popf |
938 | popf |
939 | mov [esp+32], ebx ;ebx=0 |
939 | mov [esp + SYSCALL_STACK.eax], ebx ;ebx=0 |
Line 940... | Line 940... | ||
940 | ret |
940 | ret |
941 | 941 | ||
942 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
942 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
943 | ;2 |
943 | ;2 |
944 | @@: |
944 | @@: |
Line 945... | Line 945... | ||
945 | dec ebx |
945 | dec ebx |
946 | jnz @f |
946 | jnz @f |
947 | 947 | ||
948 | stdcall sys_ipc_send, ecx, edx, esi |
948 | stdcall sys_ipc_send, ecx, edx, esi |
949 | mov [esp+32], eax |
949 | mov [esp + SYSCALL_STACK.eax], eax |
950 | ret |
950 | ret |
951 | @@: |
951 | @@: |
Line 952... | Line 952... | ||
952 | or eax, -1 |
952 | or eax, -1 |
953 | mov [esp+32], eax |
953 | mov [esp + SYSCALL_STACK.eax], eax |
954 | ret |
954 | ret |
Line 1077... | Line 1077... | ||
1077 | jae .fail |
1077 | jae .fail |
Line 1078... | Line 1078... | ||
1078 | 1078 | ||
1079 | mov eax, [pg_data.pages_count] |
1079 | mov eax, [pg_data.pages_count] |
1080 | mov [ecx], eax |
1080 | mov [ecx], eax |
1081 | shl eax, 12 |
1081 | shl eax, 12 |
1082 | mov [esp+32], eax |
1082 | mov [esp + SYSCALL_STACK.eax], eax |
1083 | mov eax, [pg_data.pages_free] |
1083 | mov eax, [pg_data.pages_free] |
1084 | mov [ecx+4], eax |
1084 | mov [ecx + 4], eax |
1085 | mov eax, [pg_data.pages_faults] |
1085 | mov eax, [pg_data.pages_faults] |
1086 | mov [ecx+8], eax |
1086 | mov [ecx + 8], eax |
Line 1092... | Line 1092... | ||
1092 | mov [ecx+20], eax |
1092 | mov [ecx + 20], eax |
1093 | mov eax, [free_blocks] |
1093 | mov eax, [free_blocks] |
1094 | mov [ecx+24], eax |
1094 | mov [ecx + 24], eax |
1095 | ret |
1095 | ret |
1096 | .fail: |
1096 | .fail: |
1097 | or dword [esp+32], -1 |
1097 | or dword [esp + SYSCALL_STACK.eax], -1 |
1098 | ret |
1098 | ret |
Line 1099... | Line 1099... | ||
1099 | 1099 | ||
1100 | align 4 |
1100 | align 4 |
1101 | f68: |
1101 | f68: |