/kernel/trunk/boot/bootcode.inc |
---|
496,8 → 496,7 |
; a) preboot_graph = graphical mode |
; preboot_gprobe = probe this mode? |
; 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?) |
; // VRR is an obsolete functionality, used only with CRT monitors: increase display frequency by reducing screen resolution |
; c) preboot_debug = duplicates kernel debug output to the screen |
; d) preboot_launcher = start the first app (right now it's LAUNCHER) after kernel is loaded? |
; e) preboot_device = from where to boot? |
535,14 → 534,6 |
adc byte [di+preboot_dma-preboot_device], 0 |
cmp byte [di+preboot_launcher-preboot_device], 1 ; Start LAUNCHER by default |
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 |
mov si, linef |
569,9 → 560,6 |
mov si, usebd_msg |
cmp [preboot_biosdisk], 1 |
call .say_on_off |
; mov si, vrrm_msg |
; cmp [preboot_vrrm], 1 |
; call .say_on_off |
mov si, debug_mode_msg |
cmp [preboot_debug], 1 |
call .say_on_off |
667,7 → 655,7 |
je .change_a |
cmp al, 'b' ; use BIOS disks? // (selecting YES will make BIOS disks visible as /bd) |
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 |
cmp al, 'd' ; start launcher after kernel is loaded? |
jz .change_d |
789,15 → 777,6 |
_ask_question ask_bd,'12',preboot_biosdisk ; range accepted for answer: 1-2 |
_setcursor 11,0 |
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 |
_ask_question ask_debug,'12',preboot_debug ; range accepted for answer: 1-2 |
_setcursor 12,0 |
975,11 → 954,6 |
mov al, [preboot_dma] |
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. |
mov al, [preboot_debug] |
mov [es:BOOT_DEBUG_PRINT], al ;// 0x901E |
/kernel/trunk/boot/parsers.inc |
---|
57,17 → 57,6 |
.nothing: |
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: |
; using biosdisks is a boolean setting |
call parse_bool |
/kernel/trunk/boot/preboot.inc |
---|
23,7 → 23,6 |
number_vm dw 0 ; |
;pixel_save dw 0 ; per to pixel |
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_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) |
/kernel/trunk/boot/shutdown.inc |
---|
16,10 → 16,13 |
align 4 |
system_shutdown: ; shut down the system |
cmp byte [BOOT_VARS+0x9030], 1 |
jne @F |
cmp byte [BOOT_VARS+BOOT_SHUTDOWN_TYPE], SYSTEM_SHUTDOWN |
jb @F |
cmp byte [BOOT_VARS+BOOT_SHUTDOWN_TYPE], SYSTEM_RESTART |
jbe .valid |
@@: |
ret |
@@: |
.valid: |
call stop_all_services |
yes_shutdown_param: |
59,7 → 62,7 |
cli |
call IRQ_mask_all |
mov eax, [OS_BASE + 0x9030] |
mov eax, [OS_BASE + BOOT_SHUTDOWN_TYPE] |
cmp al, SYSTEM_RESTART |
jne @F |
88,7 → 91,7 |
mov eax, cr3 |
mov cr3, eax |
cmp byte [0x9030], SYSTEM_SHUTDOWN |
cmp byte [BOOT_SHUTDOWN_TYPE], SYSTEM_SHUTDOWN |
jne no_acpi_power_off |
; system_power_off |
176,7 → 179,7 |
restart_code_start: |
org 0x50000 |
cmp byte [0x9030], SYSTEM_RESTART |
cmp byte [BOOT_SHUTDOWN_TYPE], SYSTEM_RESTART |
jne @F |
mov esi, _CLEAN_ZONE-OS_BASE |
274,7 → 277,7 |
xor ax, ax |
mov ds, ax |
mov al, [0x9030] |
mov al, [BOOT_SHUTDOWN_TYPE] |
cmp al, SYSTEM_RESTART |
je .restart |
/kernel/trunk/const.inc |
---|
319,7 → 319,7 |
BOOT_DEBUG_PRINT equ 0x901E ;byte If nonzero, duplicates debug output to the screen. |
BOOT_DMA equ 0x901F ; |
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_MEM_AMOUNT equ 0x9034 ;dword memory amount |
685,7 → 685,6 |
direct_lfb dd ? |
pci_data dd ? |
dd ? |
vrr dd ? |
ide_base dd ? |
mem_amount dd ? |
pages_count dd ? |
/kernel/trunk/data16.inc |
---|
79,7 → 79,6 |
config_variable 'timeout', parse_timeout |
config_variable 'resolution', parse_resolution |
config_variable 'vbemode', parse_vbemode |
; config_variable 'vrr', parse_vrr |
config_variable 'biosdisks', parse_biosdisks |
config_variable 'imgfrom', parse_imgfrom |
dw 0 |
/kernel/trunk/data32.inc |
---|
169,7 → 169,6 |
end if |
vmode db '/sys/drivers/VMODE.MDR',0 |
;vrr_m db 'VRR_M',0 |
kernel_file_load: |
; load kernel.mnt to _CLEAN_ZONE |
dd 0 ; subfunction |
/kernel/trunk/docs/sysfuncr.txt |
---|
2757,9 → 2757,7 |
Для интерпретации данных графического экрана требуется знание |
некоторых параметров, которые возвращаются этой функцией. |
Замечания: |
* Параметры графики очень редко меняются при работе системы, |
а именно, только в случаях, когда пользователь работает |
с программой VRR. |
* Параметры графики очень редко меняются при работе системы. |
* При изменении видеорежима система перерисовывает все окна |
(событие с кодом 1) и перерисовывает фон (событие 5). |
Эти же события происходят и в других случаях, |
/kernel/trunk/docs/sysfuncs.txt |
---|
2727,8 → 2727,7 |
To interpret the data of graphics screen program needs to know |
some parameters, returning by this function. |
Remarks: |
* Graphics parameters changes very seldom at work, |
namely, only in cases, when user works with the application VRR. |
* Graphics parameters changes very seldom at work. |
* At videomode change the system redraws all windows (event |
with code 1) and redraws the background (event 5). |
Same events occur in other cases too, which meet much more often, |
/kernel/trunk/kernel.asm |
---|
2192,7 → 2192,7 |
jl exit_for_anyone |
cmp ecx, 4 |
jg exit_for_anyone |
mov [BOOT_VARS+0x9030], cl |
mov [BOOT_VARS+BOOT_SHUTDOWN_TYPE], cl |
mov eax, [TASK_COUNT] |
mov [SYS_SHUTDOWN], al |
/kernel/trunk/memmap.inc |
---|
22,7 → 22,7 |
; 0:901E byte 0 or 1 : enable direct lfb write, paging disabled |
; 0:901F byte DMA write : 1=yes, 2=no |
; 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 |
; 0x9040 - dword - entry point of APM BIOS |
; 0x9044 - word - version (BCD) |
/kernel/trunk/readme-ext-loader.txt |
---|
42,8 → 42,6 |
игнорируется. Параметр более приоритетен, чем resolution. Умолчального |
значения нет. |
vrr=<включить VRR> - булевский параметр. Умолчальное значение 0. |
biosdisks=<включить доступ к дискам через BIOS> - булевский параметр. |
Умолчальное значение 1. |