Rev 1635 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1635 | Rev 2465 | ||
---|---|---|---|
- | 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
- | 2 | ;; ;; |
|
- | 3 | ;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;; |
|
- | 4 | ;; Distributed under terms of the GNU General Public License ;; |
|
- | 5 | ;; ;; |
|
- | 6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
- | 7 | ||
1 | ; (english text below) |
8 | ; (english text below) |
2 | 9 | ||
3 | ;------------------------------------------ |
10 | ;------------------------------------------ |
4 | ; Èíòåðôåéñ ñîõðàíåíèÿ ïàðàìåòðîâ |
11 | ; Èíòåðôåéñ ñîõðàíåíèÿ ïàðàìåòðîâ |
5 | ;------------------------------------------ |
12 | ;------------------------------------------ |
6 | Åñëè ïðè ïåðåäà÷å óïðàâëåíèÿ ÿäðó çàãðóç÷èê óñòàíàâëèâàåò AX='KL', |
13 | Åñëè ïðè ïåðåäà÷å óïðàâëåíèÿ ÿäðó çàãðóç÷èê óñòàíàâëèâàåò AX='KL', |
7 | òî â DS:SI ÿäðî îæèäàåò äàëüíåãî óêàçàòåëÿ íà ñëåäóþùóþ ñòðóêòóðó: |
14 | òî â DS:SI ÿäðî îæèäàåò äàëüíåãî óêàçàòåëÿ íà ñëåäóþùóþ ñòðóêòóðó: |
8 | db âåðñèÿ ñòðóêòóðû, äîëæíà áûòü 1 |
15 | db âåðñèÿ ñòðóêòóðû, äîëæíà áûòü 1 |
9 | dw ôëàãè: |
16 | dw ôëàãè: |
10 | áèò 0 óñòàíîâëåí = ïðèñóòñòâóåò îáðàç ðàìäèñêà â ïàìÿòè |
17 | áèò 0 óñòàíîâëåí = ïðèñóòñòâóåò îáðàç ðàìäèñêà â ïàìÿòè |
11 | dd äàëüíèé óêàçàòåëü íà ïðîöåäóðó ñîõðàíåíèÿ ïàðàìåòðîâ |
18 | dd äàëüíèé óêàçàòåëü íà ïðîöåäóðó ñîõðàíåíèÿ ïàðàìåòðîâ |
12 | ìîæåò áûòü 0, åñëè çàãðóç÷èê íå ïîääåðæèâàåò |
19 | ìîæåò áûòü 0, åñëè çàãðóç÷èê íå ïîääåðæèâàåò |
13 | Ïðîöåäóðà ñîõðàíåíèÿ ïàðàìåòðîâ äîëæíà çàïèñàòü ïåðâûé ñåêòîð ÿäðà |
20 | Ïðîöåäóðà ñîõðàíåíèÿ ïàðàìåòðîâ äîëæíà çàïèñàòü ïåðâûé ñåêòîð ÿäðà |
14 | kernel.mnt íàçàä íà òî ìåñòî, îòêóäà îíà åãî ñ÷èòàëà; âîçâðàò èç |
21 | kernel.mnt íàçàä íà òî ìåñòî, îòêóäà îíà åãî ñ÷èòàëà; âîçâðàò èç |
15 | ïðîöåäóðû îñóùåñòâëÿåòñÿ ïî retf. |
22 | ïðîöåäóðû îñóùåñòâëÿåòñÿ ïî retf. |
16 | 23 | ||
17 | ;------------------------------------------ |
24 | ;------------------------------------------ |
18 | ; Óêàçàíèå çàãðóç÷èêîì ñèñòåìíîãî êàòàëîãà |
25 | ; Óêàçàíèå çàãðóç÷èêîì ñèñòåìíîãî êàòàëîãà |
19 | ;------------------------------------------ |
26 | ;------------------------------------------ |
20 | Ïåðåä ïåðåäà÷åé óïðàâëåíèÿ ÿäðó ìîãóò áûòü óñòàíîâëåíû ñëåäóþùèå ðåãèñòðû: |
27 | Ïåðåä ïåðåäà÷åé óïðàâëåíèÿ ÿäðó ìîãóò áûòü óñòàíîâëåíû ñëåäóþùèå ðåãèñòðû: |
21 | CX='HA' |
28 | CX='HA' |
22 | DX='RD' |
29 | DX='RD' |
23 | Ýòî óêàçûâàåò íà òî, ÷òî ðåãèñòð BX óêàçûâàåò íà ñèñòåìíûé ðàçäåë. Êàòàëîã /kolibri/ íà |
30 | Ýòî óêàçûâàåò íà òî, ÷òî ðåãèñòð BX óêàçûâàåò íà ñèñòåìíûé ðàçäåë. Êàòàëîã /kolibri/ íà |
24 | ýòîì ðàçäåëå ÿâëÿåòñÿ ñèñòåìíûì, ê íåìó ìîæíî îáðàùàòüñÿ êàê ê /sys/ |
31 | ýòîì ðàçäåëå ÿâëÿåòñÿ ñèñòåìíûì, ê íåìó ìîæíî îáðàùàòüñÿ êàê ê /sys/ |
25 | 32 | ||
26 | Âîçìîæíûå çíà÷åíèÿ ðåãèñòðà BL (óêàçûâàåò íà óñòðîéñòâî): |
33 | Âîçìîæíûå çíà÷åíèÿ ðåãèñòðà BL (óêàçûâàåò íà óñòðîéñòâî): |
27 | 'a' - Primary Master |
34 | 'a' - Primary Master |
28 | 'b' - Primary Slave |
35 | 'b' - Primary Slave |
29 | 'c' - Secondary Master |
36 | 'c' - Secondary Master |
30 | 'd' - Secondary Slave |
37 | 'd' - Secondary Slave |
31 | 'r' - RAM äèñê |
38 | 'r' - RAM äèñê |
32 | 'm' - Ïðèâîäû CD-ROM |
39 | 'm' - Ïðèâîäû CD-ROM |
33 | 40 | ||
34 | Âîçìîæíûå çíà÷åíèÿ ðåãèñòðà BH (óêàçûâàåò íà ðàçäåë): |
41 | Âîçìîæíûå çíà÷åíèÿ ðåãèñòðà BH (óêàçûâàåò íà ðàçäåë): |
35 | äëÿ BL='a','b','c','d','r' - óêàçûâàåò íà ðàçäåë, ãäå ðàñïîëîæåí ñèñòåìíûé êàòàëîã |
42 | äëÿ BL='a','b','c','d','r' - óêàçûâàåò íà ðàçäåë, ãäå ðàñïîëîæåí ñèñòåìíûé êàòàëîã |
36 | äëÿ BL='m',óêàçûâàåò íà íîìåð ôèçè÷åñêîãî óñòðîéñòâà, ñ êîòîðîãî íàäî íà÷èíàòü ïîèñê ñèñòåìíîãî êàòàëîãà. |
43 | äëÿ BL='m',óêàçûâàåò íà íîìåð ôèçè÷åñêîãî óñòðîéñòâà, ñ êîòîðîãî íàäî íà÷èíàòü ïîèñê ñèñòåìíîãî êàòàëîãà. |
37 | 44 | ||
38 | ïðèìåðû çíà÷åíèé ðåãèñòðà BX: |
45 | ïðèìåðû çíà÷åíèé ðåãèñòðà BX: |
39 | 'a1' - /hd0/1/ |
46 | 'a1' - /hd0/1/ |
40 | 'a2' - /hd0/2/ |
47 | 'a2' - /hd0/2/ |
41 | 'b1' - /hd1/1/ |
48 | 'b1' - /hd1/1/ |
42 | 'd4' - /hd3/4/ |
49 | 'd4' - /hd3/4/ |
43 | 'm0' - ïîèñê ïî ñèäþêàì êàòàëîãà kolibri |
50 | 'm0' - ïîèñê ïî ñèäþêàì êàòàëîãà kolibri |
44 | 'r1' - /rd/1/ |
51 | 'r1' - /rd/1/ |
45 | 52 | ||
46 | 53 | ||
47 | ;------------------------------------------ |
54 | ;------------------------------------------ |
48 | ; Interface for saving boot-screen settings |
55 | ; Interface for saving boot-screen settings |
49 | ;------------------------------------------ |
56 | ;------------------------------------------ |
50 | If a loader sets AX='KL' when transferring control to the kernel, |
57 | If a loader sets AX='KL' when transferring control to the kernel, |
51 | the kernel expects in DS:SI far pointer to the following structure: |
58 | the kernel expects in DS:SI far pointer to the following structure: |
52 | db structure version, must be 1 |
59 | db structure version, must be 1 |
53 | dw flags |
60 | dw flags |
54 | bit 0 set = ramdisk image in memory is present |
61 | bit 0 set = ramdisk image in memory is present |
55 | dd far pointer to save settings procedure |
62 | dd far pointer to save settings procedure |
56 | may be 0 if such procedure is not supported by loader |
63 | may be 0 if such procedure is not supported by loader |
57 | Procedure for saving settings must write the first sector of the kernel |
64 | Procedure for saving settings must write the first sector of the kernel |
58 | kernel.mnt back to the place, from where it has been read; return from |
65 | kernel.mnt back to the place, from where it has been read; return from |
59 | this procedure must be with retf. |
66 | this procedure must be with retf. |
60 | 67 | ||
61 | ;------------------------------------------ |
68 | ;------------------------------------------ |
62 | ; System directory information from loader |
69 | ; System directory information from loader |
63 | ;------------------------------------------ |
70 | ;------------------------------------------ |
64 | Before transfer of control to the kernel following registers can be set: |
71 | Before transfer of control to the kernel following registers can be set: |
65 | CX = 'HA' |
72 | CX = 'HA' |
66 | DX = 'RD' |
73 | DX = 'RD' |
67 | This indicates that the register BX identifies system partition. The folder /kolibri/ in |
74 | This indicates that the register BX identifies system partition. The folder /kolibri/ in |
68 | this partition is system folder, it can be referenced as /sys/ |
75 | this partition is system folder, it can be referenced as /sys/ |
69 | 76 | ||
70 | Possible values for register BL (indicates the device): |
77 | Possible values for register BL (indicates the device): |
71 | 'a' - Primary Master |
78 | 'a' - Primary Master |
72 | 'b' - Primary Slave |
79 | 'b' - Primary Slave |
73 | 'c' - Secondary Master |
80 | 'c' - Secondary Master |
74 | 'd' - Secondary Slave |
81 | 'd' - Secondary Slave |
75 | 'r' - RAM disc |
82 | 'r' - RAM disc |
76 | 'm' - ROM drives |
83 | 'm' - ROM drives |
77 | 84 | ||
78 | Possible values for register BH (indicates section): |
85 | Possible values for register BH (indicates section): |
79 | for BL = 'a', 'b', 'c', 'd', 'r' to denote partition where the system folder |
86 | for BL = 'a', 'b', 'c', 'd', 'r' to denote partition where the system folder |
80 | for BL = 'm', indicates the number of physical devices, which must begin a systematic search directory. |
87 | for BL = 'm', indicates the number of physical devices, which must begin a systematic search directory. |
81 | 88 | ||
82 | Examples of register BX: |
89 | Examples of register BX: |
83 | 'a1' - /hd0/1/ |
90 | 'a1' - /hd0/1/ |
84 | 'a2' - /hd0/2/ |
91 | 'a2' - /hd0/2/ |
85 | 'b1' - /hd1/1/ |
92 | 'b1' - /hd1/1/ |
86 | 'd4' - /hd3/4/ |
93 | 'd4' - /hd3/4/ |
87 | 'm0' - search directory 'kolibri' by all CD-ROMs |
94 | 'm0' - search directory 'kolibri' by all CD-ROMs |
88 | 'r1' - /rd/1/ |
95 | 'r1' - /rd/1/ |