Subversion Repositories Kolibri OS

Rev

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

Rev 365 Rev 378
Line 384... Line 384...
384
           mov [dir_addr], eax
384
           mov [dir_addr], eax
385
           stdcall map_page,[tmp_task_pdir],eax,dword PG_SW
385
           stdcall map_page,[tmp_task_pdir],eax,dword PG_SW
Line 386... Line 386...
386
 
386
 
387
           mov esi, sys_pgdir
387
           mov esi, sys_pgdir
388
           mov edi, [tmp_task_pdir]
388
           mov edi, [tmp_task_pdir]
389
           mov ecx, 384
389
           mov ecx, (page_tabs shr 20)/4
390
           cld
390
           cld
Line 391... Line -...
391
           rep movsd
-
 
392
 
-
 
393
           mov ecx, 384
-
 
394
           xor eax, eax
-
 
395
           cld
-
 
396
           rep stosd
-
 
397
 
-
 
398
           mov ecx, 256
-
 
399
           mov esi, sys_pgdir+0xc00
-
 
400
           rep movsd
391
           rep movsd
401
 
392
 
-
 
393
           mov eax, [dir_addr]
-
 
394
           or eax, PG_SW
402
           mov eax, [dir_addr]
395
           stosd                 ; [(page_tabs shr 20)]= eax
403
           or eax, PG_SW
396
 
-
 
397
           mov ecx, 0x800/4
Line 404... Line 398...
404
           mov ebx, [tmp_task_pdir]
398
           xor eax, eax
405
           mov [ebx+0x600], eax
399
           rep stosd
Line 406... Line 400...
406
 
400
 
Line 553... Line 547...
553
 
547
 
554
           mov eax, [pg_dir]
548
           mov eax, [pg_dir]
555
           and eax, not 0xFFF
549
           and eax, not 0xFFF
556
           stdcall map_page,[tmp_task_pdir],eax,dword PG_SW
550
           stdcall map_page,[tmp_task_pdir],eax,dword PG_SW
557
           mov esi, [tmp_task_pdir]
551
           mov esi, [tmp_task_pdir]
558
           add esi, 0x604
552
           add esi, 0x800
559
           mov edi, 383
553
           mov edi, 0x800/4
560
.destroy:
554
.destroy:
561
           mov eax, [esi]
555
           mov eax, [esi]
562
           test eax, 1
556
           test eax, 1
563
           jz .next
557
           jz .next