Subversion Repositories Kolibri OS

Rev

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

Rev 321 Rev 346
Line 578... Line 578...
578
; \begin{diamond}[30.11.2005]
578
; \begin{diamond}[30.11.2005]
579
cfgmanager:
579
cfgmanager:
580
; settings:
580
; settings:
581
; a) preboot_graph = graphical mode
581
; a) preboot_graph = graphical mode
582
;    preboot_gprobe = probe this mode?
582
;    preboot_gprobe = probe this mode?
583
; b) preboot_mtrr = use hardware acceleration?
583
; b) preboot_dma_write  = use DMA write?
584
; c) preboot_vrrm = use VRR?
584
; c) preboot_vrrm = use VRR?
585
; d) preboot_device = from what boot?
585
; d) preboot_device = from what boot?
586
    mov    di, preboot_graph-0x10000
586
    mov    di, preboot_graph-0x10000
587
; check bootloader block
587
; check bootloader block
588
    cmp    [.loader_block-0x10000], -1
588
    cmp    [.loader_block-0x10000], -1
Line 618... Line 618...
618
.novesa:
618
.novesa:
619
    mov    al, 10
619
    mov    al, 10
620
@@:
620
@@:
621
    mov    [di], al
621
    mov    [di], al
622
.preboot_gr_end:
622
.preboot_gr_end:
623
    cmp    [di+preboot_mtrr-preboot_graph], 1
623
    cmp    [di+preboot_dma_write-preboot_graph], 1
624
    adc    [di+preboot_mtrr-preboot_graph], 0
624
    adc    [di+preboot_dma_write-preboot_graph], 0
625
    cmp    [di+preboot_vrrm-preboot_graph], 1
625
    cmp    [di+preboot_vrrm-preboot_graph], 1
626
    adc    [di+preboot_vrrm-preboot_graph], 0
626
    adc    [di+preboot_vrrm-preboot_graph], 0
627
    cmp    [di+preboot_device-preboot_graph], 1
627
    cmp    [di+preboot_device-preboot_graph], 1
628
    adc    [di+preboot_device-preboot_graph], 0
628
    adc    [di+preboot_device-preboot_graph], 0
629
; notify user
629
; notify user
Line 674... Line 674...
674
    mov    si, mode10-0x10000
674
    mov    si, mode10-0x10000
675
    jmp    @b
675
    jmp    @b
676
.c:
676
.c:
677
    mov    si, linef-0x10000
677
    mov    si, linef-0x10000
678
    call    printplain
678
    call    printplain
679
    mov    si, mtrr_msg-0x10000
679
    mov    si, dma_msg-0x10000
680
    cmp    [preboot_mtrr-0x10000], 1
680
    cmp    [preboot_dma_write-0x10000], 1
681
    call    .say_on_off
681
    call    .say_on_off
682
    mov    si, vrrm_msg-0x10000
682
    mov    si, vrrm_msg-0x10000
683
    cmp    [preboot_vrrm-0x10000], 1
683
    cmp    [preboot_vrrm-0x10000], 1
684
    call    .say_on_off
684
    call    .say_on_off
685
    mov    si, preboot_device_msg-0x10000
685
    mov    si, preboot_device_msg-0x10000
Line 759... Line 759...
759
@@:
759
@@:
760
    _setcursor 10,0
760
    _setcursor 10,0
761
    jmp    .d
761
    jmp    .d
762
.change_b:
762
.change_b:
763
    _setcursor 15,0
763
    _setcursor 15,0
764
    mov    si, gr_acc-0x10000
764
    mov    si, ask_dma-0x10000
765
    call    print
765
    call    print
766
    mov    bx, '12'
766
    mov    bx, '12'
767
    call    getkey
767
    call    getkey
768
    mov    [preboot_mtrr-0x10000], al
768
    mov    [preboot_dma_write-0x10000], al
769
    _setcursor 11,0
769
    _setcursor 11,0
770
    jmp    .d
770
    jmp    .d
771
.change_c:
771
.change_c:
772
    _setcursor 15,0
772
    _setcursor 15,0
773
    mov    si, vrrmprint-0x10000
773
    mov    si, vrrmprint-0x10000
Line 1016... Line 1016...
1016
        pop     es
1016
        pop     es
1017
        mov     [es:0x9014],eax
1017
        mov     [es:0x9014],eax
Line 1018... Line 1018...
1018
 
1018
 
-
 
1019
 
-
 
1020
; GRAPHICS ACCELERATION
Line -... Line 1021...
-
 
1021
; force yes
-
 
1022
        mov     [es:0x901C], byte 1
1019
 
1023
 
1020
; GRAPHICS ACCELERATION
1024
; DMA WRITE
Line 1021... Line 1025...
1021
 
1025
 
Line 1022... Line 1026...
1022
        mov     al, [preboot_mtrr-0x10000]
1026
        mov     al, [preboot_dma_write-0x10000]
1023
        mov     [es:0x901C],al
1027
        mov     [es:0x901F],al