Subversion Repositories Kolibri OS

Rev

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

Rev 2434 Rev 2441
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2009. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2009. 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: 2434 $
8
$Revision: 2441 $
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+0x901c], byte 2
361
        mov     [BOOT_VAR+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+0x901c], byte 2
381
        mov     [BOOT_VAR+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 1362... Line 1362...
1362
 
1362
 
1363
 
1363
 
Line 1364... Line 1364...
1364
align 4
1364
align 4
1365
proc init_mtrr
1365
proc init_mtrr
Line 1366... Line 1366...
1366
 
1366
 
1367
        cmp     [BOOT_VAR+0x901c], byte 2
1367
        cmp     [BOOT_VAR+BOOT_MTRR], byte 2