Do not hardcode preboot timeout, use PREBOOT_TIMEOUT macro.

git-svn-id: svn://kolibrios.org@7586 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Ivan Baravy 2019-02-22 22:40:13 +00:00
parent 036ce5c69d
commit 74af3ea158
3 changed files with 5 additions and 2 deletions

View File

@ -830,7 +830,8 @@ end if
if defined extended_primary_loader
sub ax, [preboot_timeout]
else
sub ax, 18*5
; bios 0x1A timer runs at ~18 ticks per second
sub ax, 18*PREBOOT_TIMEOUT
end if
jae .timergo
neg ax

View File

@ -31,7 +31,8 @@ preboot_device db 0 ; boot device
;!!!! 0 - autodetect !!!!
preboot_biosdisk db 0 ; use V86 to access disks through BIOS (1-yes, 2-no)
if defined extended_primary_loader
preboot_timeout dw 5*18 ; timeout in 1/18th of second for config settings screen
; timeout in 1/18th of second for config settings screen
preboot_timeout dw PREBOOT_TIMEOUT*18
end if
if $>0x200

View File

@ -11,6 +11,7 @@ include 'encoding.inc'
include 'const.inc'
os_code = code_l - tmp_gdt
PREBOOT_TIMEOUT = 5 ; seconds
use16
org 0x0