/kernel/branches/kolibri_pe/core/memory.inc |
---|
29,12 → 29,6 |
ret |
align 4 |
free_page: |
ret |
proc map_io_mem stdcall, base:dword, size:dword, flags:dword |
push edi |
246,18 → 240,16 |
shr edi, 12 |
shr esi, 12 |
@@: |
mov eax, [app_page_tabs+edi*4] |
test eax, 1 |
mov ecx, [app_page_tabs+edi*4] |
test ecx, 1 |
jz .next |
mov dword [app_page_tabs+edi*4], 2 |
mov ebx, edi |
shl ebx, 12 |
push eax |
invlpg [ebx] |
pop eax |
call free_page |
.next: add edi, 1 |
call @core_free@4 |
.next: |
add edi, 1 |
cmp edi, esi |
jb @B |