Rev 2218 | Rev 2398 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2218 | Rev 2288 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2009. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2009. 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: 2218 $ |
8 | $Revision: 2288 $ |
9 | 9 | ||
Line 468... | Line 468... | ||
468 | push eax |
468 | push eax |
469 | invlpg [ebx] |
469 | invlpg [ebx] |
470 | pop eax |
470 | pop eax |
471 | call free_page |
471 | call free_page |
Line -... | Line 472... | ||
- | 472 | ||
472 | 473 | .next: |
|
473 | .next: add edi, 1 |
474 | add edi, 1 |
474 | cmp edi, esi |
475 | cmp edi, esi |
Line 475... | Line 476... | ||
475 | jb @B |
476 | jb @B |
476 | 477 | ||
Line 795... | Line 796... | ||
795 | ; test eax, eax |
796 | ; test eax, eax |
796 | ; jz @f |
797 | ; jz @f |
797 | ; and eax, 0xFFFFF000 |
798 | ; and eax, 0xFFFFF000 |
798 | ; stdcall map_page, edi, eax |
799 | ; stdcall map_page, edi, eax |
Line -... | Line 800... | ||
- | 800 | ||
799 | 801 | @@: |
|
800 | @@: mov edi, [lin_addr] |
802 | mov edi, [lin_addr] |
801 | and edi, 0xFFFFF000 |
803 | and edi, 0xFFFFF000 |
802 | mov ecx, [buf_size] |
804 | mov ecx, [buf_size] |
803 | add ecx, 4095 |
805 | add ecx, 4095 |
804 | shr ecx, 12 |
806 | shr ecx, 12 |
Line 855... | Line 857... | ||
855 | and eax, 0xFFFFF000 |
857 | and eax, 0xFFFFF000 |
856 | test eax, eax |
858 | test eax, eax |
857 | jz .exit |
859 | jz .exit |
858 | stdcall map_page,edi,eax,PG_UW |
860 | stdcall map_page, edi, eax, PG_UW |
Line -... | Line 861... | ||
- | 861 | ||
859 | 862 | @@: |
|
860 | @@: mov edi, [lin_addr] |
863 | mov edi, [lin_addr] |
861 | and edi, 0xFFFFF000 |
864 | and edi, 0xFFFFF000 |
862 | mov ecx, [buf_size] |
865 | mov ecx, [buf_size] |
863 | add ecx, 4095 |
866 | add ecx, 4095 |
864 | shr ecx, 12 |
867 | shr ecx, 12 |
Line 986... | Line 989... | ||
986 | 989 | ||
987 | add edx, ecx |
990 | add edx, ecx |
988 | add edx, 4095 |
991 | add edx, 4095 |
Line -... | Line 992... | ||
- | 992 | and edx, not 4095 |
|
989 | and edx, not 4095 |
993 | |
990 | 994 | .touch: |
|
991 | .touch: mov eax, [ecx] |
995 | mov eax, [ecx] |
992 | add ecx, 0x1000 |
996 | add ecx, 0x1000 |
Line 993... | Line 997... | ||
993 | cmp ecx, edx |
997 | cmp ecx, edx |