Subversion Repositories Kolibri OS

Rev

Rev 7967 | Rev 9405 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7967 Rev 7968
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2020. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2020. 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: 7967 $
8
$Revision: 7968 $
9
 
9
 
10
 
10
 
Line 1527... Line 1527...
1527
        phys_ptr        dd ?
1527
        phys_ptr        dd ?
1528
        num_pages       dd ?
1528
        num_pages       dd ?
1529
endl
1529
endl
Line 1530... Line 1530...
1530
 
1530
 
1531
; Size must be an exact multiple of pagesize
1531
; Size must be an exact multiple of pagesize
1532
        mov     eax, size
1532
        mov     eax, [size]
1533
        test    eax, PAGE_SIZE-1
1533
        test    eax, PAGE_SIZE-1
Line 1534... Line 1534...
1534
        jnz     .exit
1534
        jnz     .exit
1535
 
1535
 
Line 1564... Line 1564...
1564
        add     edi, PAGE_SIZE
1564
        add     edi, PAGE_SIZE
1565
        dec     ecx
1565
        dec     ecx
1566
        jnz     .loop1
1566
        jnz     .loop1
Line 1567... Line 1567...
1567
 
1567
 
1568
; Map second half of virtual memory to same physical memory
1568
; Map second half of virtual memory to same physical memory
1569
        mov     ecx, [pages]
1569
        mov     ecx, [num_pages]
1570
        mov     edi, [phys_ptr]
1570
        mov     edi, [phys_ptr]
1571
  .loop2:
1571
  .loop2:
1572
        stdcall map_page, esi, edi, PG_UWR
1572
        stdcall map_page, esi, edi, PG_UWR
1573
        add     esi, PAGE_SIZE
1573
        add     esi, PAGE_SIZE