Rev 2465 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2465 | Serge | 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 | |||
657 | diamond | 8 | ; (english text below) |
9 | |||
598 | spraid | 10 | ;------------------------------------------ |
3555 | Serge | 11 | ; Интерфейс сохранения параметров |
657 | diamond | 12 | ;------------------------------------------ |
3555 | Serge | 13 | Если при передаче управления ядру загрузчик устанавливает AX='KL', |
14 | то в DS:SI ядро ожидает дальнего указателя на следующую структуру: |
||
15 | db версия структуры, должна быть 1 |
||
16 | dw флаги: |
||
17 | бит 0 установлен = присутствует образ рамдиска в памяти |
||
18 | dd дальний указатель на процедуру сохранения параметров |
||
19 | может быть 0, если загрузчик не поддерживает |
||
20 | Процедура сохранения параметров должна записать первый сектор ядра |
||
21 | kernel.mnt назад на то место, откуда она его считала; возврат из |
||
22 | процедуры осуществляется по retf. |
||
657 | diamond | 23 | |
24 | ;------------------------------------------ |
||
3555 | Serge | 25 | ; Указание загрузчиком системного каталога |
598 | spraid | 26 | ;------------------------------------------ |
3555 | Serge | 27 | Перед передачей управления ядру могут быть установлены следующие регистры: |
598 | spraid | 28 | CX='HA' |
29 | DX='RD' |
||
3555 | Serge | 30 | Это указывает на то, что регистр BX указывает на системный раздел. Каталог /kolibri/ на |
31 | этом разделе является системным, к нему можно обращаться как к /sys/ |
||
598 | spraid | 32 | |
3555 | Serge | 33 | Возможные значения регистра BL (указывает на устройство): |
598 | spraid | 34 | 'a' - Primary Master |
35 | 'b' - Primary Slave |
||
36 | 'c' - Secondary Master |
||
37 | 'd' - Secondary Slave |
||
3555 | Serge | 38 | 'r' - RAM диск |
39 | 'm' - Приводы CD-ROM |
||
598 | spraid | 40 | |
3555 | Serge | 41 | Возможные значения регистра BH (указывает на раздел): |
42 | для BL='a','b','c','d','r' - указывает на раздел, где расположен системный каталог |
||
43 | для BL='m',указывает на номер физического устройства, с которого надо начинать поиск системного каталога. |
||
598 | spraid | 44 | |
3555 | Serge | 45 | примеры значений регистра BX: |
598 | spraid | 46 | 'a1' - /hd0/1/ |
47 | 'a2' - /hd0/2/ |
||
48 | 'b1' - /hd1/1/ |
||
49 | 'd4' - /hd3/4/ |
||
3555 | Serge | 50 | 'm0' - поиск по сидюкам каталога kolibri |
598 | spraid | 51 | 'r1' - /rd/1/ |
52 | |||
53 | |||
657 | diamond | 54 | ;------------------------------------------ |
55 | ; Interface for saving boot-screen settings |
||
56 | ;------------------------------------------ |
||
57 | If a loader sets AX='KL' when transferring control to the kernel, |
||
58 | the kernel expects in DS:SI far pointer to the following structure: |
||
59 | db structure version, must be 1 |
||
60 | dw flags |
||
61 | bit 0 set = ramdisk image in memory is present |
||
62 | dd far pointer to save settings procedure |
||
63 | may be 0 if such procedure is not supported by loader |
||
64 | Procedure for saving settings must write the first sector of the kernel |
||
65 | kernel.mnt back to the place, from where it has been read; return from |
||
66 | this procedure must be with retf. |
||
598 | spraid | 67 | |
68 | ;------------------------------------------ |
||
657 | diamond | 69 | ; System directory information from loader |
598 | spraid | 70 | ;------------------------------------------ |
657 | diamond | 71 | Before transfer of control to the kernel following registers can be set: |
598 | spraid | 72 | CX = 'HA' |
73 | DX = 'RD' |
||
657 | diamond | 74 | This indicates that the register BX identifies system partition. The folder /kolibri/ in |
75 | this partition is system folder, it can be referenced as /sys/ |
||
598 | spraid | 76 | |
657 | diamond | 77 | Possible values for register BL (indicates the device): |
598 | spraid | 78 | 'a' - Primary Master |
79 | 'b' - Primary Slave |
||
80 | 'c' - Secondary Master |
||
81 | 'd' - Secondary Slave |
||
82 | 'r' - RAM disc |
||
83 | 'm' - ROM drives |
||
84 | |||
657 | diamond | 85 | Possible values for register BH (indicates section): |
86 | for BL = 'a', 'b', 'c', 'd', 'r' to denote partition where the system folder |
||
598 | spraid | 87 | for BL = 'm', indicates the number of physical devices, which must begin a systematic search directory. |
88 | |||
89 | Examples of register BX: |
||
90 | 'a1' - /hd0/1/ |
||
91 | 'a2' - /hd0/2/ |
||
92 | 'b1' - /hd1/1/ |
||
93 | 'd4' - /hd3/4/ |
||
657 | diamond | 94 | 'm0' - search directory 'kolibri' by all CD-ROMs |
598 | spraid | 95 | 'r1' - /rd/1/ |