Rev 854 | Rev 861 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 854 | Rev 859 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2007. 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: 854 $ |
8 | $Revision: 859 $ |
9 | 9 | ||
10 | 10 | ||
Line 172... | Line 172... | ||
172 | .next: |
172 | .next: |
173 | add edi, 0x1000 |
173 | add edi, 0x1000 |
174 | add esi, 4 |
174 | add esi, 4 |
175 | dec ecx |
175 | dec ecx |
176 | jnz @B |
176 | jnz @B |
177 | mov [pg_data.pages_free], ebp |
177 | ; mov [pg_data.pages_free], ebp |
178 | and [pg_data.pg_mutex],0 |
178 | and [pg_data.pg_mutex],0 |
179 | popad |
179 | popad |
180 | ret |
180 | ret |
Line 181... | Line 181... | ||
181 | 181 | ||
Line 899... | Line 899... | ||
899 | 899 | ||
900 | ; add ebx, new_app_base |
900 | ; add ebx, new_app_base |
901 | cmp ebx, OS_BASE |
901 | cmp ebx, OS_BASE |
Line 902... | Line 902... | ||
902 | jae .fail |
902 | jae .fail |
- | 903 | ||
903 | 904 | mov eax, [_mem_amount] |
|
904 | mov eax, [pg_data.pages_count] |
905 | shr eax, 12 |
905 | mov [ebx], eax |
906 | mov [ebx], eax |
906 | shl eax, 12 |
907 | shl eax, 12 |
907 | mov [esp+36], eax |
908 | mov [esp+36], eax |
908 | mov ecx, [pg_data.pages_free] |
909 | call _get_free_mem |
909 | mov [ebx+4], ecx |
910 | mov [ebx+4], eax |
910 | mov edx, [pg_data.pages_faults] |
911 | mov edx, [pg_data.pages_faults] |
911 | mov [ebx+8], edx |
912 | mov [ebx+8], edx |
912 | mov esi, [heap_size] |
913 | mov esi, [heap_size] |