Subversion Repositories Kolibri OS

Rev

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

Rev 2288 Rev 2398
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: 2288 $
8
$Revision: 2398 $
9
 
9
 
Line 356... Line 356...
356
           endl
356
           endl
Line 357... Line 357...
357
 
357
 
358
        cmp     dword [LFBAddress], -1
358
        cmp     dword [LFBAddress], -1
359
        jne     @f
359
        jne     @f
-
 
360
        mov     [BOOT_VAR+0x901c], byte 2
-
 
361
; max VGA=640*480*4=1228800 bytes
360
        mov     [BOOT_VAR+0x901c], byte 2
362
; + 32*640*4=81920 bytes for mouse pointer
Line 361... Line 363...
361
        stdcall alloc_pages, (0x280000 / 4096)
363
        stdcall alloc_pages, ((1228800+81920)/4096)
362
 
364
 
363
        push    eax
365
        push    eax
364
        call    alloc_page
366
        call    alloc_page
365
        stdcall map_page_table, LFB_BASE, eax
367
        stdcall map_page_table, LFB_BASE, eax
366
        pop     eax
368
        pop     eax
-
 
369
        or      eax, PG_UW
-
 
370
        mov     ebx, LFB_BASE
367
        or      eax, PG_UW
371
; max VGA=640*480*4=1228800 bytes
368
        mov     ebx, LFB_BASE
372
; + 32*640*4=81920 bytes for mouse pointer
369
        mov     ecx, 0x280000 / 4096
373
        mov     ecx, (1228800+81920)/4096
370
        call    commit_pages
374
        call    commit_pages
371
        mov     [LFBAddress], dword LFB_BASE
375
        mov     [LFBAddress], dword LFB_BASE
372
        ret
376
        ret