Subversion Repositories Kolibri OS

Rev

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

Rev 4619 Rev 5130
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2014. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2014. 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: 4619 $
8
$Revision: 5130 $
9
 
9
 
Line 10... Line 10...
10
; Initializes MTRRs.
10
; Initializes MTRRs.
Line 845... Line 845...
845
        mov     eax, [_display.pitch]
845
        mov     eax, [_display.pitch]
846
        mul     [_display.height]
846
        mul     [_display.height]
847
        dec     eax
847
        dec     eax
848
; LFB is mapped to virtual address LFB_BASE,
848
; LFB is mapped to virtual address LFB_BASE,
849
; it uses global pages if supported by CPU.
849
; it uses global pages if supported by CPU.
850
        mov     ebx, [sys_pgdir+(LFB_BASE shr 20)]
850
        mov     ebx, [sys_proc+PROC.pdt_0+(LFB_BASE shr 20)]
851
        test    ebx, PG_LARGE
851
        test    ebx, PG_LARGE
852
        jnz     @f
852
        jnz     @f
853
        mov     ebx, [page_tabs+(LFB_BASE shr 10)]
853
        mov     ebx, [page_tabs+(LFB_BASE shr 10)]
854
@@:
854
@@:
855
        and     ebx, not 0xFFF
855
        and     ebx, not 0xFFF