Subversion Repositories Kolibri OS

Rev

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

Rev 5130 Rev 5351
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: 5130 $
8
$Revision: 5351 $
9
 
9
 
Line 10... Line 10...
10
; Initializes MTRRs.
10
; Initializes MTRRs.
Line 840... Line 840...
840
; 4. If we're using a mode with LFB,
840
; 4. If we're using a mode with LFB,
841
; get the memory type for last pixel of the framebuffer.
841
; get the memory type for last pixel of the framebuffer.
842
; It must be write-combined.
842
; It must be write-combined.
843
        test    word [SCR_MODE], 0x4000
843
        test    word [SCR_MODE], 0x4000
844
        jz      .exit
844
        jz      .exit
845
        mov     eax, [_display.pitch]
845
        mov     eax, [_display.lfb_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_proc+PROC.pdt_0+(LFB_BASE shr 20)]
850
        mov     ebx, [sys_proc+PROC.pdt_0+(LFB_BASE shr 20)]