Subversion Repositories Kolibri OS

Rev

Rev 8091 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8091 Rev 9715
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
7
 
7
 
8
$Revision: 8091 $
8
$Revision: 9715 $
9
 
9
 
10
 
10
 
11
flm               db 0
11
flm               db 0
12
preboot_lfb       db 0
12
preboot_lfb       db 0
13
preboot_bootlog   db 0
13
preboot_bootlog   db 0
14
boot_drive        db 0
14
boot_drive        db 0
15
 
15
 
16
align 4
16
align 4
17
old_ints_h:
17
old_ints_h:
18
    dw      0x400
18
    dw      0x400
19
    dd      0
19
    dd      0
20
    dw      0
20
    dw      0
21
 
21
 
22
if ~ defined extended_primary_loader ; restart from memory is not supported in extended primary loader cfg
22
if ~ defined extended_primary_loader ; restart from memory is not supported in extended primary loader cfg
23
kernel_restart_bootblock:
23
kernel_restart_bootblock:
24
    db    1    ; version
24
    db    1    ; version
25
    dw    1    ; floppy image is in memory
25
    dw    1    ; floppy image is in memory
26
    dd    0    ; cannot save parameters
26
    dd    0    ; cannot save parameters
27
end if
27
end if
28
 
28
 
29
; table for move to extended memory (int 15h, ah=87h)
29
; table for move to extended memory (int 15h, ah=87h)
30
align 8
30
align 8
31
movedesc:
31
movedesc:
32
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
32
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
33
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
33
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
34
 
34
 
35
        db      0xff,0xff,0x0,0xa0,0x00,0x93,0x0,0x0
35
        db      0xff,0xff,0x0,0xa0,0x00,0x93,0x0,0x0
36
        db      0xff,0xff,0x0,0x00,0x10,0x93,0x0,0x0
36
        db      0xff,0xff,0x0,0x00,0x10,0x93,0x0,0x0
37
 
37
 
38
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
38
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
39
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
39
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
40
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
40
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
41
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
41
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
42
 
42
 
43
fwmovedesc:
43
fwmovedesc:
44
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
44
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
45
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
45
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
46
 
46
 
47
        db      0xff,0xff,0x0,0x00,0x10,0x93,0x0,0x0
47
        db      0xff,0xff,0x0,0x00,0x10,0x93,0x0,0x0
48
        db      0xff,0xff,0x0,0xa0,0x00,0x93,0x0,0x0
48
        db      0xff,0xff,0x0,0xa0,0x00,0x93,0x0,0x0
49
 
49
 
50
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
50
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
51
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
51
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
52
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
52
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
53
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
53
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
54
 
54
 
55
if defined extended_primary_loader
55
if defined extended_primary_loader
56
; look in PrimaryLoader.txt for the description
56
; look in PrimaryLoader.txt for the description
57
bootdevice      dw      0                       ; ax from primary loader
57
bootdevice      dw      0                       ; ax from primary loader
58
bootfs          dw      0                       ; bx from primary loader
58
bootfs          dw      0                       ; bx from primary loader
59
bootcallback    dd      0                       ; ds:si from primary loader
59
bootcallback    dd      0                       ; ds:si from primary loader
60
; data for configuration file loading, look in PrimaryLoader.txt
60
; data for configuration file loading, look in PrimaryLoader.txt
61
config_file_struct:
61
config_file_struct:
62
        dw      0, 4000h ; load to 4000:0000
62
        dw      0, 4000h ; load to 4000:0000
63
        dw      16       ; read no more than 16*4K = 64K
63
        dw      16       ; read no more than 16*4K = 64K
64
        db      'config.ini',0
64
        db      'config.ini',0
65
; data for configuration file parsing
65
; data for configuration file parsing
66
macro config_variable string,parser
66
macro config_variable string,parser
67
{
67
{
68
local len
68
local len
69
len     dw      0
69
len     dw      0
70
        db      string
70
        db      string
71
store word $ - len - 2 at len
71
store word $ - len - 2 at len
72
        dw      parser
72
        dw      parser
73
}
73
}
74
config_file_variables:
74
config_file_variables:
75
        config_variable 'timeout', parse_timeout
75
        config_variable 'timeout', parse_timeout
76
        config_variable 'resolution', parse_resolution
76
        config_variable 'resolution', parse_resolution
77
        config_variable 'vbemode', parse_vbemode
77
        config_variable 'vbemode', parse_vbemode
78
        config_variable 'biosdisks', parse_biosdisks
78
        config_variable 'biosdisks', parse_biosdisks
79
        config_variable 'imgfrom', parse_imgfrom
79
        config_variable 'imgfrom', parse_imgfrom
80
        config_variable 'syspath', parse_syspath
80
        config_variable 'syspath', parse_syspath
81
        dw      0
81
        dw      0
82
; data for image file loading, look in PrimaryLoader.txt
82
; data for image file loading, look in PrimaryLoader.txt
83
image_file_struct:
83
image_file_struct:
84
        dw      0, 4000h ; load to 4000:0000
84
        dw      0, 4000h ; load to 4000:0000
85
        dw      16       ; read no more than 16*4K = 64K
85
        dw      16       ; read no more than 16*4K = 64K
86
        db      'kolibri.img',0
86
        db      'kolibri.img',0
87
end if
87
end if