Subversion Repositories Kolibri OS

Rev

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

Rev 281 Rev 285
Line 564... Line 564...
564
           dec [pg_data.pg_mutex]
564
           dec [pg_data.pg_mutex]
565
           ret
565
           ret
566
endp
566
endp
567
 
567
 
Line -... Line 568...
-
 
568
; param
-
 
569
;  eax= linear address
-
 
570
;
-
 
571
; retval
-
 
572
;  eax= phisical page address
-
 
573
 
568
align 4
574
align 4
569
proc get_pg_addr stdcall, lin_addr:dword
575
get_pg_addr:
570
           mov ebx, [lin_addr]
-
 
571
           shr ebx, 12
576
           shr eax, 12
572
           mov eax, [pages_tab+ebx*4]
577
           mov eax, [pages_tab+eax*4]
573
           and eax, 0xFFFFF000
578
           and eax, 0xFFFFF000
574
           ret
579
           ret
575
endp
-
 
Line 576... Line 580...
576
 
580
 
577
align 4
581
align 4
578
proc page_fault_handler
582
proc page_fault_handler