Subversion Repositories Kolibri OS

Rev

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

Rev 5130 Rev 5356
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2012. 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: 5130 $
8
$Revision: 5356 $
9
 
9
 
10
 
10
 
Line 128... Line 128...
128
        stosd
128
        stosd
129
        loop    @B
129
        loop    @B
Line 130... Line 130...
130
 
130
 
Line 131... Line 131...
131
        stdcall alloc_pages, dword 32
131
        stdcall alloc_pages, dword 32
132
 
132
 
133
        or      eax, PG_SW
133
        or      eax, PG_SWR
134
        mov     ebx, HEAP_BASE
134
        mov     ebx, HEAP_BASE
Line 135... Line 135...
135
        mov     ecx, 32
135
        mov     ecx, 32
Line 490... Line 490...
490
        stdcall alloc_pages, ebx
490
        stdcall alloc_pages, ebx
491
        test    eax, eax
491
        test    eax, eax
492
        jz      .err
492
        jz      .err
Line 493... Line 493...
493
 
493
 
494
        mov     ecx, ebx
494
        mov     ecx, ebx
495
        or      eax, PG_SW
495
        or      eax, PG_SWR
496
        mov     ebx, [lin_addr]
496
        mov     ebx, [lin_addr]
Line 497... Line 497...
497
        call    commit_pages
497
        call    commit_pages
498
 
498
 
Line 504... Line 504...
504
@@:
504
@@:
505
        call    alloc_page
505
        call    alloc_page
506
        test    eax, eax
506
        test    eax, eax
507
        jz      .err
507
        jz      .err
Line 508... Line 508...
508
 
508
 
509
        stdcall map_page, edx, eax, dword PG_SW
509
        stdcall map_page, edx, eax, dword PG_SWR
510
        add     edx, 0x1000
510
        add     edx, 0x1000
511
        dec     ebx
511
        dec     ebx
512
        jnz     @B
512
        jnz     @B
513
.end:
513
.end:
Line 1449... Line 1449...
1449
        add     esi, page_tabs
1449
        add     esi, page_tabs
Line 1450... Line 1450...
1450
 
1450
 
1451
        mov     edx, [access]
1451
        mov     edx, [access]
1452
        or      edx, [owner_access]
1452
        or      edx, [owner_access]
1453
        shl     edx, 1
1453
        shl     edx, 1
1454
        or      edx, PG_USER+PG_SHARED
1454
        or      edx, PG_SHARED+PG_UR
1455
@@:
1455
@@:
1456
        lodsd
1456
        lodsd
1457
        and     eax, 0xFFFFF000
1457
        and     eax, 0xFFFFF000
1458
        or      eax, edx
1458
        or      eax, edx