Subversion Repositories Kolibri OS

Rev

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

Rev 5351 Rev 5356
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: 5351 $
8
$Revision: 5356 $
9
 
9
 
Line 10... Line 10...
10
; Initializes MTRRs.
10
; Initializes MTRRs.
Line 846... Line 846...
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_proc+PROC.pdt_0+(LFB_BASE shr 20)]
850
        mov     ebx, [sys_proc+PROC.pdt_0+(LFB_BASE shr 20)]
851
        test    ebx, PG_LARGE
851
        test    ebx, PDE_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
856
        add     ebx, eax
856
        add     ebx, eax