Subversion Repositories Kolibri OS

Rev

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

Rev 3539 Rev 3732
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2012. 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: 3539 $
8
$Revision: 3732 $
9
 
9
 
Line 356... Line 356...
356
             pg_count dd ?
356
             pg_count dd ?
357
           endl
357
           endl
Line 358... Line 358...
358
 
358
 
359
        cmp     dword [LFBAddress], -1
359
        cmp     dword [LFBAddress], -1
360
        jne     @f
360
        jne     @f
361
        mov     [BOOT_VAR+BOOT_MTRR], byte 2
361
        mov     [BOOT_VARS+BOOT_MTRR], byte 2
362
; max VGA=640*480*4=1228800 bytes
362
; max VGA=640*480*4=1228800 bytes
363
; + 32*640*4=81920 bytes for mouse pointer
363
; + 32*640*4=81920 bytes for mouse pointer
Line 364... Line 364...
364
        stdcall alloc_pages, ((1228800+81920)/4096)
364
        stdcall alloc_pages, ((1228800+81920)/4096)
Line 376... Line 376...
376
        mov     [LFBAddress], dword LFB_BASE
376
        mov     [LFBAddress], dword LFB_BASE
377
        ret
377
        ret
378
@@:
378
@@:
379
        test    [SCR_MODE], word 0100000000000000b
379
        test    [SCR_MODE], word 0100000000000000b
380
        jnz     @f
380
        jnz     @f
381
        mov     [BOOT_VAR+BOOT_MTRR], byte 2
381
        mov     [BOOT_VARS+BOOT_MTRR], byte 2
382
        ret
382
        ret
383
@@:
383
@@:
384
        call    init_mtrr
384
        call    init_mtrr
Line 385... Line 385...
385
 
385
 
Line 1359... Line 1359...
1359
 
1359
 
1360
 
1360
 
Line 1361... Line 1361...
1361
align 4
1361
align 4
1362
proc init_mtrr
1362
proc init_mtrr
Line 1363... Line 1363...
1363
 
1363
 
1364
        cmp     [BOOT_VAR+BOOT_MTRR], byte 2
1364
        cmp     [BOOT_VARS+BOOT_MTRR], byte 2