Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 448 → Rev 447

/kernel/trunk/core/memory.inc
267,12 → 267,13
pushfd
cli
shr eax, 12 ;page index
bts dword [sys_pgmap], eax ;that's all!
mov ebx, sys_pgmap
bts [ebx], eax ;that's all!
cmc
adc [pg_data.pages_free], 0
shr eax, 3
and eax, not 3 ;dword offset from page_map
add eax, sys_pgmap
add eax, ebx
cmp [page_start], eax
ja @f
popfd
1081,7 → 1082,7
ret
@@:
cmp eax, 19
ja @f
ja .fail
add ebx, new_app_base
cmp ebx, new_app_base
jb .fail
1089,14 → 1090,6
mov [esp+36], eax
ret
 
@@:
cmp eax, 20
ja .fail
mov eax, ecx
call user_realloc
mov [esp+36], eax
ret
 
.fail:
xor eax, eax
mov [esp+36], eax