Subversion Repositories Kolibri OS

Rev

Rev 1376 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1376 Rev 2382
Line 3... Line 3...
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 1376 $
8
$Revision: 2382 $
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:
Line 15... Line 16...
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
Line -... Line 21...
-
 
21
old_ints_h:
20
old_ints_h:
22
    dw      0x400
21
    dw      0x400
23
    dd      0
22
    dd      0
24
    dw      0
23
    dw      0
25
 
-
 
26
if ~ defined extended_primary_loader ; restart from memory is not supported in extended primary loader cfg
Line 24... Line 27...
24
 
27
kernel_restart_bootblock:
25
kernel_restart_bootblock:
28
    db    1    ; version
26
    db    1    ; version
29
    dw    1    ; floppy image is in memory
27
    dw    1    ; floppy image is in memory
30
    dd    0    ; cannot save parameters
Line 51... Line 54...
51
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
54
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
52
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
55
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
53
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
56
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
54
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
57
        db      0x00,0x00,0x0,0x00,0x00,0x00,0x0,0x0
Line -... Line 58...
-
 
58
 
-
 
59
if defined extended_primary_loader
-
 
60
; look in PrimaryLoader.txt for the description
-
 
61
bootdevice      dw      0                       ; ax from primary loader
-
 
62
bootfs          dw      0                       ; bx from primary loader
-
 
63
bootcallback    dd      0                       ; ds:si from primary loader
-
 
64
; data for configuration file loading, look in PrimaryLoader.txt
-
 
65
config_file_struct:
-
 
66
        dw      0, 4000h ; load to 4000:0000
-
 
67
        dw      16       ; read no more than 16*4K = 64K
-
 
68
        db      'config.ini',0
-
 
69
; data for configuration file parsing
-
 
70
macro config_variable string,parser
-
 
71
{
-
 
72
local len
-
 
73
len     dw      0
-
 
74
        db      string
-
 
75
store word $ - len - 2 at len
-
 
76
        dw      parser
-
 
77
}
-
 
78
config_file_variables:
-
 
79
        config_variable 'timeout', parse_timeout
-
 
80
        config_variable 'resolution', parse_resolution
-
 
81
        config_variable 'vbemode', parse_vbemode
-
 
82
;        config_variable 'vrr', parse_vrr
-
 
83
        config_variable 'biosdisks', parse_biosdisks
-
 
84
        config_variable 'imgfrom', parse_imgfrom
-
 
85
        dw      0
-
 
86
; data for image file loading, look in PrimaryLoader.txt
-
 
87
image_file_struct:
-
 
88
        dw      0, 4000h ; load to 4000:0000
-
 
89
        dw      16       ; read no more than 16*4K = 64K
-
 
90
        db      'kolibri.img',0