2008-02-19 10:14:38 +03:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;; ;;
|
|
|
|
|
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
|
|
|
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
|
|
|
;; ;;
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2007-07-27 17:52:03 +04:00
|
|
|
|
|
2007-04-18 10:37:14 +04:00
|
|
|
|
$Revision$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
flm db 0
|
|
|
|
|
preboot_lfb db 0
|
|
|
|
|
preboot_bootlog db 0
|
2007-07-23 21:50:42 +04:00
|
|
|
|
boot_drive db 0
|
|
|
|
|
bx_from_load: dw 'r1' ; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>- <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> bx ; {SPraid}[13.03.2007]
|
|
|
|
|
; a,b,c,d - <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, r - <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
; # <20><><EFBFBD><EFBFBD><EFBFBD>... <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20> <20><> <20><><EFBFBD><EFBFBD>. '1', <20> <20><> 1
|
2007-05-11 23:38:23 +04:00
|
|
|
|
|
2007-04-18 10:37:14 +04:00
|
|
|
|
align 4
|
|
|
|
|
old_ints_h:
|
|
|
|
|
dw 0x400
|
|
|
|
|
dd 0
|
|
|
|
|
dw 0
|
|
|
|
|
|
2011-06-16 21:09:40 +04:00
|
|
|
|
if ~ defined extended_primary_loader ; restart from memory is not supported in extended primary loader cfg
|
2007-04-18 10:37:14 +04:00
|
|
|
|
kernel_restart_bootblock:
|
|
|
|
|
db 1 ; version
|
|
|
|
|
dw 1 ; floppy image is in memory
|
|
|
|
|
dd 0 ; cannot save parameters
|
2011-06-16 21:09:40 +04:00
|
|
|
|
end if
|
2007-04-18 10:37:14 +04:00
|
|
|
|
|
|
|
|
|
; table for move to extended memory (int 15h, ah=87h)
|
|
|
|
|
align 8
|
|
|
|
|
movedesc:
|
|
|
|
|
db 0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
|
|
|
|
|
db 0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
|
|
|
|
|
|
|
|
|
|
db 0xff,0xff,0x0,0xa0,0x00,0x93,0x0,0x0
|
|
|
|
|
db 0xff,0xff,0x0,0x00,0x10,0x93,0x0,0x0
|
|
|
|
|
|
|
|
|
|
db 0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
|
|
|
|
|
db 0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
|
|
|
|
|
db 0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
|
|
|
|
|
db 0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
|
|
|
|
|
|
|
|
|
|
fwmovedesc:
|
|
|
|
|
db 0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
|
|
|
|
|
db 0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
|
|
|
|
|
|
|
|
|
|
db 0xff,0xff,0x0,0x00,0x10,0x93,0x0,0x0
|
|
|
|
|
db 0xff,0xff,0x0,0xa0,0x00,0x93,0x0,0x0
|
|
|
|
|
|
|
|
|
|
db 0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
|
|
|
|
|
db 0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
|
|
|
|
|
db 0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
|
|
|
|
|
db 0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
|
|
|
|
|
|
2011-06-16 21:09:40 +04:00
|
|
|
|
if defined extended_primary_loader
|
|
|
|
|
; look in PrimaryLoader.txt for the description
|
|
|
|
|
bootdevice dw 0 ; ax from primary loader
|
|
|
|
|
bootfs dw 0 ; bx from primary loader
|
|
|
|
|
bootcallback dd 0 ; ds:si from primary loader
|
|
|
|
|
; data for configuration file loading, look in PrimaryLoader.txt
|
|
|
|
|
config_file_struct:
|
|
|
|
|
dw 0, 4000h ; load to 4000:0000
|
|
|
|
|
dw 16 ; read no more than 16*4K = 64K
|
|
|
|
|
db 'config.ini',0
|
|
|
|
|
; data for configuration file parsing
|
|
|
|
|
macro config_variable string,parser
|
|
|
|
|
{
|
|
|
|
|
local len
|
|
|
|
|
len dw 0
|
|
|
|
|
db string
|
|
|
|
|
store word $ - len - 2 at len
|
|
|
|
|
dw parser
|
|
|
|
|
}
|
|
|
|
|
config_file_variables:
|
|
|
|
|
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
|
|
|
|
|
; data for image file loading, look in PrimaryLoader.txt
|
|
|
|
|
image_file_struct:
|
|
|
|
|
dw 0, 4000h ; load to 4000:0000
|
|
|
|
|
dw 16 ; read no more than 16*4K = 64K
|
|
|
|
|
db 'kolibri.img',0
|
|
|
|
|
end if
|