Rev 1056 | Rev 1074 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1056 | Rev 1072 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2008. 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: 1056 $ |
8 | $Revision: 1072 $ |
9 | 9 | ||
Line 958... | Line 958... | ||
958 | endp |
958 | endp |
Line 959... | Line 959... | ||
959 | 959 | ||
960 | align 4 |
960 | align 4 |
Line 961... | Line 961... | ||
961 | sysfn_meminfo: |
961 | sysfn_meminfo: |
962 | 962 | ||
963 | ; add ebx, new_app_base |
963 | ; add ecx, new_app_base |
Line 964... | Line 964... | ||
964 | cmp ebx, OS_BASE |
964 | cmp ecx, OS_BASE |
965 | jae .fail |
965 | jae .fail |
966 | 966 | ||
967 | mov eax, [pg_data.pages_count] |
967 | mov eax, [pg_data.pages_count] |
968 | mov [ebx], eax |
968 | mov [ecx], eax |
969 | shl eax, 12 |
969 | shl eax, 12 |
970 | mov [esp+36], eax |
970 | mov [esp+32], eax |
971 | mov ecx, [pg_data.pages_free] |
971 | mov eax, [pg_data.pages_free] |
972 | mov [ebx+4], ecx |
972 | mov [ecx+4], eax |
973 | mov edx, [pg_data.pages_faults] |
973 | mov eax, [pg_data.pages_faults] |
974 | mov [ebx+8], edx |
974 | mov [ecx+8], eax |
975 | mov esi, [heap_size] |
975 | mov eax, [heap_size] |
976 | mov [ebx+12], esi |
976 | mov [ecx+12], eax |
977 | mov edi, [heap_free] |
977 | mov eax, [heap_free] |
978 | mov [ebx+16], edi |
978 | mov [ecx+16], eax |
979 | mov eax, [heap_blocks] |
979 | mov eax, [heap_blocks] |
980 | mov [ebx+20], eax |
980 | mov [ecx+20], eax |
981 | mov ecx, [free_blocks] |
981 | mov eax, [free_blocks] |
982 | mov [ebx+24], ecx |
982 | mov [ecx+24], eax |
983 | ret |
983 | ret |
Line 984... | Line 984... | ||
984 | .fail: |
984 | .fail: |
985 | mov dword [esp+36], -1 |
985 | mov dword [esp+32], -1 |
986 | ret |
986 | ret |