Subversion Repositories Kolibri OS

Rev

Rev 2261 | Rev 2455 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2261 Rev 2288
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2007. 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: 2261 $
8
$Revision: 2288 $
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
bx_from_load:
15
bx_from_load:     dw 'r1'  ; ñòðóêòóðà äëÿ õðàíåíèÿ ïàðàìåòðîâ- îòêóäà ãàøðóçèëèñü, áåðåòñÿ íèæå èç bx ; {SPraid}[13.03.2007]
16
                  dw 'r1'  ; ñòðóêòóðà äëÿ õðàíåíèÿ ïàðàìåòðîâ- îòêóäà ãàøðóçèëèñü, áåðåòñÿ íèæå èç bx ; {SPraid}[13.03.2007]
16
                           ; a,b,c,d - âèí÷åñòåðû, r - ðàì äèñê
17
                           ; a,b,c,d - âèí÷åñòåðû, r - ðàì äèñê
17
                           ; # äèñêà... ñèìâîë, à íå áàéò. '1', à íå 1
18
                           ; # äèñêà... ñèìâîë, à íå áàéò. '1', à íå 1
18
 
19
 
19
align 4
20
align 4
20
old_ints_h:
21
old_ints_h:
21
    dw      0x400
22
    dw      0x400
22
    dd      0
23
    dd      0
23
    dw      0
24
    dw      0
24
 
25
 
25
if ~ defined extended_primary_loader ; restart from memory is not supported in extended primary loader cfg
26
if ~ defined extended_primary_loader ; restart from memory is not supported in extended primary loader cfg
26
kernel_restart_bootblock:
27
kernel_restart_bootblock:
27
    db    1    ; version
28
    db    1    ; version
28
    dw    1    ; floppy image is in memory
29
    dw    1    ; floppy image is in memory
29
    dd    0    ; cannot save parameters
30
    dd    0    ; cannot save parameters
30
end if
31
end if
31
 
32
 
32
; table for move to extended memory (int 15h, ah=87h)
33
; table for move to extended memory (int 15h, ah=87h)
33
align 8
34
align 8
34
movedesc:
35
movedesc:
35
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
36
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
36
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
37
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
37
 
38
 
38
        db      0xff,0xff,0x0,0xa0,0x00,0x93,0x0,0x0
39
        db      0xff,0xff,0x0,0xa0,0x00,0x93,0x0,0x0
39
        db      0xff,0xff,0x0,0x00,0x10,0x93,0x0,0x0
40
        db      0xff,0xff,0x0,0x00,0x10,0x93,0x0,0x0
40
 
41
 
41
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
42
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
42
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
43
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
43
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
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
 
46
 
46
fwmovedesc:
47
fwmovedesc:
47
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
48
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
48
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
49
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
49
 
50
 
50
        db      0xff,0xff,0x0,0x00,0x10,0x93,0x0,0x0
51
        db      0xff,0xff,0x0,0x00,0x10,0x93,0x0,0x0
51
        db      0xff,0xff,0x0,0xa0,0x00,0x93,0x0,0x0
52
        db      0xff,0xff,0x0,0xa0,0x00,0x93,0x0,0x0
52
 
53
 
53
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
54
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
54
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
55
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
55
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
56
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
56
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
57
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
57
 
58
 
58
if defined extended_primary_loader
59
if defined extended_primary_loader
59
; look in PrimaryLoader.txt for the description
60
; look in PrimaryLoader.txt for the description
60
bootdevice      dw      0                       ; ax from primary loader
61
bootdevice      dw      0                       ; ax from primary loader
61
bootfs          dw      0                       ; bx from primary loader
62
bootfs          dw      0                       ; bx from primary loader
62
bootcallback    dd      0                       ; ds:si from primary loader
63
bootcallback    dd      0                       ; ds:si from primary loader
63
; data for configuration file loading, look in PrimaryLoader.txt
64
; data for configuration file loading, look in PrimaryLoader.txt
64
config_file_struct:
65
config_file_struct:
65
        dw      0, 4000h ; load to 4000:0000
66
        dw      0, 4000h ; load to 4000:0000
66
        dw      16       ; read no more than 16*4K = 64K
67
        dw      16       ; read no more than 16*4K = 64K
67
        db      'config.ini',0
68
        db      'config.ini',0
68
; data for configuration file parsing
69
; data for configuration file parsing
69
macro config_variable string,parser
70
macro config_variable string,parser
70
{
71
{
71
local len
72
local len
72
len     dw      0
73
len     dw      0
73
        db      string
74
        db      string
74
store word $ - len - 2 at len
75
store word $ - len - 2 at len
75
        dw      parser
76
        dw      parser
76
}
77
}
77
config_file_variables:
78
config_file_variables:
78
        config_variable 'timeout', parse_timeout
79
        config_variable 'timeout', parse_timeout
79
        config_variable 'resolution', parse_resolution
80
        config_variable 'resolution', parse_resolution
80
        config_variable 'vbemode', parse_vbemode
81
        config_variable 'vbemode', parse_vbemode
81
;        config_variable 'vrr', parse_vrr
82
;        config_variable 'vrr', parse_vrr
82
        config_variable 'biosdisks', parse_biosdisks
83
        config_variable 'biosdisks', parse_biosdisks
83
        config_variable 'imgfrom', parse_imgfrom
84
        config_variable 'imgfrom', parse_imgfrom
84
        dw      0
85
        dw      0
85
; data for image file loading, look in PrimaryLoader.txt
86
; data for image file loading, look in PrimaryLoader.txt
86
image_file_struct:
87
image_file_struct:
87
        dw      0, 4000h ; load to 4000:0000
88
        dw      0, 4000h ; load to 4000:0000
88
        dw      16       ; read no more than 16*4K = 64K
89
        dw      16       ; read no more than 16*4K = 64K
89
        db      'kolibri.img',0
90
        db      'kolibri.img',0
90
end if
91
end if