forked from KolibriOS/kolibrios
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:
parent
036ce5c69d
commit
74af3ea158
@ -830,7 +830,8 @@ end if
|
|||||||
if defined extended_primary_loader
|
if defined extended_primary_loader
|
||||||
sub ax, [preboot_timeout]
|
sub ax, [preboot_timeout]
|
||||||
else
|
else
|
||||||
sub ax, 18*5
|
; bios 0x1A timer runs at ~18 ticks per second
|
||||||
|
sub ax, 18*PREBOOT_TIMEOUT
|
||||||
end if
|
end if
|
||||||
jae .timergo
|
jae .timergo
|
||||||
neg ax
|
neg ax
|
||||||
|
@ -31,7 +31,8 @@ preboot_device db 0 ; boot device
|
|||||||
;!!!! 0 - autodetect !!!!
|
;!!!! 0 - autodetect !!!!
|
||||||
preboot_biosdisk db 0 ; use V86 to access disks through BIOS (1-yes, 2-no)
|
preboot_biosdisk db 0 ; use V86 to access disks through BIOS (1-yes, 2-no)
|
||||||
if defined extended_primary_loader
|
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
|
end if
|
||||||
|
|
||||||
if $>0x200
|
if $>0x200
|
||||||
|
@ -11,6 +11,7 @@ include 'encoding.inc'
|
|||||||
include 'const.inc'
|
include 'const.inc'
|
||||||
|
|
||||||
os_code = code_l - tmp_gdt
|
os_code = code_l - tmp_gdt
|
||||||
|
PREBOOT_TIMEOUT = 5 ; seconds
|
||||||
|
|
||||||
use16
|
use16
|
||||||
org 0x0
|
org 0x0
|
||||||
|
Loading…
Reference in New Issue
Block a user