Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7711 Alex2003 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
 
8
; (english text below)
9
 
10
;------------------------------------------
11
; Интерфейс сохранения параметров
12
;------------------------------------------
13
Если при передаче управления ядру загрузчик устанавливает AX='KL',
14
то в DS:SI ядро ожидает дальнего указателя на следующую структуру:
15
        db      версия структуры, должна быть 1
16
        dw      флаги:
17
                бит 0 установлен = присутствует образ рамдиска в памяти
18
        dd      дальний указатель на процедуру сохранения параметров
19
                может быть 0, если загрузчик не поддерживает
20
Процедура сохранения параметров должна записать первый сектор ядра
21
kernel.mnt назад на то место, откуда она его считала; возврат из
22
процедуры осуществляется по retf.
23
 
24
;------------------------------------------
25
; Указание загрузчиком системного каталога
26
;------------------------------------------
27
Перед передачей управления ядру могут быть установлены следующие регистры:
28
CX='HA'
29
DX='RD'
30
Это указывает на то, что регистр BX указывает на системный раздел. Каталог /kolibri/ на
31
этом разделе является системным, к нему можно обращаться как к /sys/
32
 
33
Возможные значения регистра BL (указывает на устройство):
34
'a' - Primary   Master
35
'b' - Primary   Slave
36
'c' - Secondary Master
37
'd' - Secondary Slave
38
'r' - RAM диск
39
'm' - Приводы CD-ROM
40
 
41
Возможные значения регистра BH (указывает на раздел):
42
для BL='a','b','c','d','r' - указывает на раздел, где расположен системный каталог
43
для BL='m',указывает на номер физического устройства, с которого надо начинать поиск системного каталога.
44
 
45
примеры значений регистра BX:
46
'a1' - /hd0/1/
47
'a2' - /hd0/2/
48
'b1' - /hd1/1/
49
'd4' - /hd3/4/
50
'm0' - поиск по сидюкам каталога kolibri
51
'r1' - /rd/1/
52
 
53
 
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.
67
 
68
;------------------------------------------
69
; System directory information from loader
70
;------------------------------------------
71
Before transfer of control to the kernel following registers can be set:
72
CX = 'HA'
73
DX = 'RD'
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/
76
 
77
Possible values for register BL (indicates the device):
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
 
85
Possible values for register BH (indicates section):
86
for BL = 'a', 'b', 'c', 'd', 'r' to denote partition where the system folder
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/
94
'm0' - search directory 'kolibri' by all CD-ROMs
95
'r1' - /rd/1/