forked from KolibriOS/kolibrios
Remove VRR code, mostly commented out anyway.
git-svn-id: svn://kolibrios.org@7121 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
c718254e54
commit
16d9a4a4bc
@ -496,8 +496,7 @@ cfgmanager:
|
|||||||
; a) preboot_graph = graphical mode
|
; a) preboot_graph = graphical mode
|
||||||
; preboot_gprobe = probe this mode?
|
; preboot_gprobe = probe this mode?
|
||||||
; b) preboot_biosdisk = use BIOS disks through V86 emulation? // (earlier was: preboot_dma = use DMA access?)
|
; b) preboot_biosdisk = use BIOS disks through V86 emulation? // (earlier was: preboot_dma = use DMA access?)
|
||||||
; c) preboot_debug = duplicates kernel debug output to the screen // (earlier was: preboot_vrrm = use VRR?)
|
; c) preboot_debug = duplicates kernel debug output to the screen
|
||||||
; // VRR is an obsolete functionality, used only with CRT monitors: increase display frequency by reducing screen resolution
|
|
||||||
; d) preboot_launcher = start the first app (right now it's LAUNCHER) after kernel is loaded?
|
; d) preboot_launcher = start the first app (right now it's LAUNCHER) after kernel is loaded?
|
||||||
; e) preboot_device = from where to boot?
|
; e) preboot_device = from where to boot?
|
||||||
|
|
||||||
@ -535,14 +534,6 @@ end if
|
|||||||
adc byte [di+preboot_dma-preboot_device], 0
|
adc byte [di+preboot_dma-preboot_device], 0
|
||||||
cmp byte [di+preboot_launcher-preboot_device], 1 ; Start LAUNCHER by default
|
cmp byte [di+preboot_launcher-preboot_device], 1 ; Start LAUNCHER by default
|
||||||
adc byte [di+preboot_launcher-preboot_device], 0
|
adc byte [di+preboot_launcher-preboot_device], 0
|
||||||
; cmp byte [di+preboot_biosdisk-preboot_device], 1
|
|
||||||
; adc byte [di+preboot_biosdisk-preboot_device], 0
|
|
||||||
;; default value for VRR is OFF
|
|
||||||
; cmp byte [di+preboot_vrrm-preboot_device], 0
|
|
||||||
; jnz @f
|
|
||||||
; mov byte [di+preboot_vrrm-preboot_device], 2
|
|
||||||
;@@:
|
|
||||||
; notify user
|
|
||||||
_setcursor 5,2
|
_setcursor 5,2
|
||||||
|
|
||||||
mov si, linef
|
mov si, linef
|
||||||
@ -569,9 +560,6 @@ end if
|
|||||||
mov si, usebd_msg
|
mov si, usebd_msg
|
||||||
cmp [preboot_biosdisk], 1
|
cmp [preboot_biosdisk], 1
|
||||||
call .say_on_off
|
call .say_on_off
|
||||||
; mov si, vrrm_msg
|
|
||||||
; cmp [preboot_vrrm], 1
|
|
||||||
; call .say_on_off
|
|
||||||
mov si, debug_mode_msg
|
mov si, debug_mode_msg
|
||||||
cmp [preboot_debug], 1
|
cmp [preboot_debug], 1
|
||||||
call .say_on_off
|
call .say_on_off
|
||||||
@ -667,7 +655,7 @@ end if
|
|||||||
je .change_a
|
je .change_a
|
||||||
cmp al, 'b' ; use BIOS disks? // (selecting YES will make BIOS disks visible as /bd)
|
cmp al, 'b' ; use BIOS disks? // (selecting YES will make BIOS disks visible as /bd)
|
||||||
jz .change_b
|
jz .change_b
|
||||||
cmp al, 'c' ; load kernel in debug mode? // (earlier was: use VRR?)
|
cmp al, 'c' ; load kernel in debug mode?
|
||||||
jz .change_c
|
jz .change_c
|
||||||
cmp al, 'd' ; start launcher after kernel is loaded?
|
cmp al, 'd' ; start launcher after kernel is loaded?
|
||||||
jz .change_d
|
jz .change_d
|
||||||
@ -789,15 +777,6 @@ end if
|
|||||||
_ask_question ask_bd,'12',preboot_biosdisk ; range accepted for answer: 1-2
|
_ask_question ask_bd,'12',preboot_biosdisk ; range accepted for answer: 1-2
|
||||||
_setcursor 11,0
|
_setcursor 11,0
|
||||||
jmp .d
|
jmp .d
|
||||||
;.change_c: ; // VRR is an obsolete functionality, used only with CRT monitors
|
|
||||||
; _setcursor 16,0
|
|
||||||
; mov si, vrrmprint
|
|
||||||
; call print
|
|
||||||
; mov bx, '12' ; range accepted for answer: 1-2
|
|
||||||
; call getkey
|
|
||||||
; mov [preboot_vrrm], al
|
|
||||||
; _setcursor 12,0
|
|
||||||
; jmp .d
|
|
||||||
.change_c: ; c) preboot_debug = duplicates kernel debug output to the screen
|
.change_c: ; c) preboot_debug = duplicates kernel debug output to the screen
|
||||||
_ask_question ask_debug,'12',preboot_debug ; range accepted for answer: 1-2
|
_ask_question ask_debug,'12',preboot_debug ; range accepted for answer: 1-2
|
||||||
_setcursor 12,0
|
_setcursor 12,0
|
||||||
@ -975,11 +954,6 @@ end if
|
|||||||
mov al, [preboot_dma]
|
mov al, [preboot_dma]
|
||||||
mov [es:BOOT_DMA], al
|
mov [es:BOOT_DMA], al
|
||||||
|
|
||||||
;; VRR_M USE
|
|
||||||
;
|
|
||||||
; mov al,[preboot_vrrm]
|
|
||||||
; mov [es:BOOT_VRR], al ;// 0x9030
|
|
||||||
|
|
||||||
; Set kernel DEBUG mode - if nonzero, duplicates debug output to the screen.
|
; Set kernel DEBUG mode - if nonzero, duplicates debug output to the screen.
|
||||||
mov al, [preboot_debug]
|
mov al, [preboot_debug]
|
||||||
mov [es:BOOT_DEBUG_PRINT], al ;// 0x901E
|
mov [es:BOOT_DEBUG_PRINT], al ;// 0x901E
|
||||||
|
@ -57,17 +57,6 @@ parse_vbemode:
|
|||||||
.nothing:
|
.nothing:
|
||||||
ret
|
ret
|
||||||
|
|
||||||
;parse_vrr:
|
|
||||||
;; vrr is a boolean setting
|
|
||||||
; call parse_bool
|
|
||||||
; jc .nothing
|
|
||||||
;; convert 0 to 2, 1 to 1
|
|
||||||
; inc ax
|
|
||||||
; xor al, 3
|
|
||||||
; mov [es:preboot_vrrm], al
|
|
||||||
;.nothing:
|
|
||||||
; ret
|
|
||||||
|
|
||||||
parse_biosdisks:
|
parse_biosdisks:
|
||||||
; using biosdisks is a boolean setting
|
; using biosdisks is a boolean setting
|
||||||
call parse_bool
|
call parse_bool
|
||||||
|
@ -23,7 +23,6 @@ y_save dw 0 ; y
|
|||||||
number_vm dw 0 ;
|
number_vm dw 0 ;
|
||||||
;pixel_save dw 0 ; per to pixel
|
;pixel_save dw 0 ; per to pixel
|
||||||
preboot_gprobe db 0 ; probe vesa3 videomodes (1-no, 2-yes)
|
preboot_gprobe db 0 ; probe vesa3 videomodes (1-no, 2-yes)
|
||||||
;preboot_vrrm db 0 ; use VRR_M (1-yes, 2- no)
|
|
||||||
preboot_debug db 0 ; load kernel in debug mode? (1-yes, 2-no)
|
preboot_debug db 0 ; load kernel in debug mode? (1-yes, 2-no)
|
||||||
preboot_launcher db 0 ; start launcher after kernel is loaded? (1-yes, 2-no)
|
preboot_launcher db 0 ; start launcher after kernel is loaded? (1-yes, 2-no)
|
||||||
preboot_dma db 0 ; use DMA for access to HDD (1-always, 2-only for read, 3-never)
|
preboot_dma db 0 ; use DMA for access to HDD (1-always, 2-only for read, 3-never)
|
||||||
|
@ -16,10 +16,13 @@ $Revision$
|
|||||||
align 4
|
align 4
|
||||||
system_shutdown: ; shut down the system
|
system_shutdown: ; shut down the system
|
||||||
|
|
||||||
cmp byte [BOOT_VARS+0x9030], 1
|
cmp byte [BOOT_VARS+BOOT_SHUTDOWN_TYPE], SYSTEM_SHUTDOWN
|
||||||
jne @F
|
jb @F
|
||||||
ret
|
cmp byte [BOOT_VARS+BOOT_SHUTDOWN_TYPE], SYSTEM_RESTART
|
||||||
|
jbe .valid
|
||||||
@@:
|
@@:
|
||||||
|
ret
|
||||||
|
.valid:
|
||||||
call stop_all_services
|
call stop_all_services
|
||||||
|
|
||||||
yes_shutdown_param:
|
yes_shutdown_param:
|
||||||
@ -59,7 +62,7 @@ yes_shutdown_param:
|
|||||||
cli
|
cli
|
||||||
call IRQ_mask_all
|
call IRQ_mask_all
|
||||||
|
|
||||||
mov eax, [OS_BASE + 0x9030]
|
mov eax, [OS_BASE + BOOT_SHUTDOWN_TYPE]
|
||||||
cmp al, SYSTEM_RESTART
|
cmp al, SYSTEM_RESTART
|
||||||
jne @F
|
jne @F
|
||||||
|
|
||||||
@ -88,7 +91,7 @@ org $-OS_BASE
|
|||||||
mov eax, cr3
|
mov eax, cr3
|
||||||
mov cr3, eax
|
mov cr3, eax
|
||||||
|
|
||||||
cmp byte [0x9030], SYSTEM_SHUTDOWN
|
cmp byte [BOOT_SHUTDOWN_TYPE], SYSTEM_SHUTDOWN
|
||||||
jne no_acpi_power_off
|
jne no_acpi_power_off
|
||||||
|
|
||||||
; system_power_off
|
; system_power_off
|
||||||
@ -176,7 +179,7 @@ align 4
|
|||||||
restart_code_start:
|
restart_code_start:
|
||||||
org 0x50000
|
org 0x50000
|
||||||
|
|
||||||
cmp byte [0x9030], SYSTEM_RESTART
|
cmp byte [BOOT_SHUTDOWN_TYPE], SYSTEM_RESTART
|
||||||
jne @F
|
jne @F
|
||||||
|
|
||||||
mov esi, _CLEAN_ZONE-OS_BASE
|
mov esi, _CLEAN_ZONE-OS_BASE
|
||||||
@ -274,7 +277,7 @@ align 4
|
|||||||
|
|
||||||
xor ax, ax
|
xor ax, ax
|
||||||
mov ds, ax
|
mov ds, ax
|
||||||
mov al, [0x9030]
|
mov al, [BOOT_SHUTDOWN_TYPE]
|
||||||
cmp al, SYSTEM_RESTART
|
cmp al, SYSTEM_RESTART
|
||||||
je .restart
|
je .restart
|
||||||
|
|
||||||
|
@ -319,7 +319,7 @@ BOOT_LAUNCHER_START equ 0x901D ;byte (0 or 1) start the first app (right now
|
|||||||
BOOT_DEBUG_PRINT equ 0x901E ;byte If nonzero, duplicates debug output to the screen.
|
BOOT_DEBUG_PRINT equ 0x901E ;byte If nonzero, duplicates debug output to the screen.
|
||||||
BOOT_DMA equ 0x901F ;
|
BOOT_DMA equ 0x901F ;
|
||||||
BOOT_PCI_DATA equ 0x9020 ;8bytes pci data
|
BOOT_PCI_DATA equ 0x9020 ;8bytes pci data
|
||||||
BOOT_VRR equ 0x9030 ;byte VRR start enabled 1, 2-no
|
BOOT_SHUTDOWN_TYPE equ 0x9030 ;byte shutdown type (see sysfn 18.9)
|
||||||
;BOOT_IDE_BASE_ADDR equ 0x9031 ;word IDEContrRegsBaseAddr ; now free and is not used
|
;BOOT_IDE_BASE_ADDR equ 0x9031 ;word IDEContrRegsBaseAddr ; now free and is not used
|
||||||
BOOT_MEM_AMOUNT equ 0x9034 ;dword memory amount
|
BOOT_MEM_AMOUNT equ 0x9034 ;dword memory amount
|
||||||
|
|
||||||
@ -685,7 +685,6 @@ struct BOOT_DATA
|
|||||||
direct_lfb dd ?
|
direct_lfb dd ?
|
||||||
pci_data dd ?
|
pci_data dd ?
|
||||||
dd ?
|
dd ?
|
||||||
vrr dd ?
|
|
||||||
ide_base dd ?
|
ide_base dd ?
|
||||||
mem_amount dd ?
|
mem_amount dd ?
|
||||||
pages_count dd ?
|
pages_count dd ?
|
||||||
|
@ -79,7 +79,6 @@ config_file_variables:
|
|||||||
config_variable 'timeout', parse_timeout
|
config_variable 'timeout', parse_timeout
|
||||||
config_variable 'resolution', parse_resolution
|
config_variable 'resolution', parse_resolution
|
||||||
config_variable 'vbemode', parse_vbemode
|
config_variable 'vbemode', parse_vbemode
|
||||||
; config_variable 'vrr', parse_vrr
|
|
||||||
config_variable 'biosdisks', parse_biosdisks
|
config_variable 'biosdisks', parse_biosdisks
|
||||||
config_variable 'imgfrom', parse_imgfrom
|
config_variable 'imgfrom', parse_imgfrom
|
||||||
dw 0
|
dw 0
|
||||||
|
@ -169,7 +169,6 @@ mtrr_user_message db '"There is a problem with MTRR configuration.\nPerformance
|
|||||||
end if
|
end if
|
||||||
|
|
||||||
vmode db '/sys/drivers/VMODE.MDR',0
|
vmode db '/sys/drivers/VMODE.MDR',0
|
||||||
;vrr_m db 'VRR_M',0
|
|
||||||
kernel_file_load:
|
kernel_file_load:
|
||||||
; load kernel.mnt to _CLEAN_ZONE
|
; load kernel.mnt to _CLEAN_ZONE
|
||||||
dd 0 ; subfunction
|
dd 0 ; subfunction
|
||||||
|
@ -2757,9 +2757,7 @@ IPC применяется для посылок сообщений от одн
|
|||||||
Для интерпретации данных графического экрана требуется знание
|
Для интерпретации данных графического экрана требуется знание
|
||||||
некоторых параметров, которые возвращаются этой функцией.
|
некоторых параметров, которые возвращаются этой функцией.
|
||||||
Замечания:
|
Замечания:
|
||||||
* Параметры графики очень редко меняются при работе системы,
|
* Параметры графики очень редко меняются при работе системы.
|
||||||
а именно, только в случаях, когда пользователь работает
|
|
||||||
с программой VRR.
|
|
||||||
* При изменении видеорежима система перерисовывает все окна
|
* При изменении видеорежима система перерисовывает все окна
|
||||||
(событие с кодом 1) и перерисовывает фон (событие 5).
|
(событие с кодом 1) и перерисовывает фон (событие 5).
|
||||||
Эти же события происходят и в других случаях,
|
Эти же события происходят и в других случаях,
|
||||||
|
@ -2727,8 +2727,7 @@ by work in VESA modes with LFB sets color of the left upper point
|
|||||||
To interpret the data of graphics screen program needs to know
|
To interpret the data of graphics screen program needs to know
|
||||||
some parameters, returning by this function.
|
some parameters, returning by this function.
|
||||||
Remarks:
|
Remarks:
|
||||||
* Graphics parameters changes very seldom at work,
|
* Graphics parameters changes very seldom at work.
|
||||||
namely, only in cases, when user works with the application VRR.
|
|
||||||
* At videomode change the system redraws all windows (event
|
* At videomode change the system redraws all windows (event
|
||||||
with code 1) and redraws the background (event 5).
|
with code 1) and redraws the background (event 5).
|
||||||
Same events occur in other cases too, which meet much more often,
|
Same events occur in other cases too, which meet much more often,
|
||||||
|
@ -2192,7 +2192,7 @@ sysfn_shutdown: ; 18.9 = system shutdown
|
|||||||
jl exit_for_anyone
|
jl exit_for_anyone
|
||||||
cmp ecx, 4
|
cmp ecx, 4
|
||||||
jg exit_for_anyone
|
jg exit_for_anyone
|
||||||
mov [BOOT_VARS+0x9030], cl
|
mov [BOOT_VARS+BOOT_SHUTDOWN_TYPE], cl
|
||||||
|
|
||||||
mov eax, [TASK_COUNT]
|
mov eax, [TASK_COUNT]
|
||||||
mov [SYS_SHUTDOWN], al
|
mov [SYS_SHUTDOWN], al
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
; 0:901E byte 0 or 1 : enable direct lfb write, paging disabled
|
; 0:901E byte 0 or 1 : enable direct lfb write, paging disabled
|
||||||
; 0:901F byte DMA write : 1=yes, 2=no
|
; 0:901F byte DMA write : 1=yes, 2=no
|
||||||
; 0:9020 8bytes pci data
|
; 0:9020 8bytes pci data
|
||||||
; 0:9030 byte VRR start enabled 1, 2-no
|
; 0:9030 byte shutdown type (see sysfn 18.9)
|
||||||
; 0:9031 word IDEContrRegsBaseAddr
|
; 0:9031 word IDEContrRegsBaseAddr
|
||||||
; 0x9040 - dword - entry point of APM BIOS
|
; 0x9040 - dword - entry point of APM BIOS
|
||||||
; 0x9044 - word - version (BCD)
|
; 0x9044 - word - version (BCD)
|
||||||
|
@ -42,8 +42,6 @@ vbemode=<номер видеорежима VBE> задаёт желаемый г
|
|||||||
игнорируется. Параметр более приоритетен, чем resolution. Умолчального
|
игнорируется. Параметр более приоритетен, чем resolution. Умолчального
|
||||||
значения нет.
|
значения нет.
|
||||||
|
|
||||||
vrr=<включить VRR> - булевский параметр. Умолчальное значение 0.
|
|
||||||
|
|
||||||
biosdisks=<включить доступ к дискам через BIOS> - булевский параметр.
|
biosdisks=<включить доступ к дискам через BIOS> - булевский параметр.
|
||||||
Умолчальное значение 1.
|
Умолчальное значение 1.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user