Rev 908 | Rev 1066 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 908 | Rev 914 | ||
---|---|---|---|
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: 908 $ |
8 | $Revision: 914 $ |
9 | 9 | ||
Line 30... | Line 30... | ||
30 | jz @F |
30 | jz @F |
31 | sub eax,[ebx+APPDATA.heap_base] |
31 | sub eax,[ebx+APPDATA.heap_base] |
32 | sub eax, 4096 |
32 | sub eax, 4096 |
33 | ret |
33 | ret |
34 | @@: |
34 | @@: |
35 | mov esi, [ebx+APPDATA.mem_size] |
35 | mov edx, [ebx+APPDATA.mem_size] |
36 | add esi, 4095 |
36 | add edx, 4095 |
37 | and esi, not 4095 |
37 | and edx, not 4095 |
38 | mov [ebx+APPDATA.mem_size], esi |
38 | mov [ebx+APPDATA.mem_size], edx |
39 | mov eax, HEAP_TOP |
39 | mov eax, HEAP_TOP |
40 | mov [ebx+APPDATA.heap_base], esi |
40 | mov [ebx+APPDATA.heap_base], edx |
41 | mov [ebx+APPDATA.heap_top], eax |
41 | mov [ebx+APPDATA.heap_top], eax |
Line 42... | Line 42... | ||
42 | 42 | ||
43 | sub eax, esi |
43 | sub eax, edx |
44 | shr esi, 10 |
44 | shr edx, 10 |
45 | mov ecx, eax |
45 | mov ecx, eax |
46 | sub eax, 4096 |
46 | sub eax, 4096 |
47 | or ecx, FREE_BLOCK |
47 | or ecx, FREE_BLOCK |
48 | mov [page_tabs+esi], ecx |
48 | mov [page_tabs+edx], ecx |
Line 49... | Line 49... | ||
49 | ret |
49 | ret |
50 | 50 | ||
51 | align 4 |
51 | align 4 |