/kernel/trunk/core/memory.inc |
---|
519,7 → 519,7 |
;èñïîëüçîâàíèÿ. Îøèáêà |
.alloc: |
call alloc_page |
and eax, eax |
test eax, eax |
jz .fail |
stdcall map_page,[ebp-4],eax,dword PG_UW |
563,7 → 563,7 |
; copy-on-write protection |
call alloc_page |
and eax, eax |
test eax, eax |
jz .fail |
push eax |
787,7 → 787,6 |
jz .no_ipc_area |
mov ebx, edi |
; add edi, new_app_base |
and ebx, 0xFFF |
mov [dst_offset], ebx |
812,9 → 811,8 |
cmp dword [edi], 0 |
jnz .ipc_blocked ;if dword [buffer]<>0 - ipc blocked now |
mov ebx, dword [edi+4] |
mov edx, ebx |
add ebx, 8 |
mov edx, dword [edi+4] |
lea ebx, [edx+8] |
add ebx, [msg_size] |
cmp ebx, [buf_size] |
ja .buffer_overflow ;esi<0 - not enough memory in buffer |