Subversion Repositories Kolibri OS

Rev

Rev 598 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ; (english text below)
  2.  
  3. ;------------------------------------------
  4. ; Èíòåðôåéñ ñîõðàíåíèÿ ïàðàìåòðîâ
  5. ;------------------------------------------
  6. Åñëè ïðè ïåðåäà÷å óïðàâëåíèÿ ÿäðó çàãðóç÷èê óñòàíàâëèâàåò AX='KL',
  7. òî â DS:SI ÿäðî îæèäàåò äàëüíåãî óêàçàòåëÿ íà ñëåäóþùóþ ñòðóêòóðó:
  8.         db      âåðñèÿ ñòðóêòóðû, äîëæíà áûòü 1
  9.         dw      ôëàãè:
  10.                 áèò 0 óñòàíîâëåí = ïðèñóòñòâóåò îáðàç ðàìäèñêà â ïàìÿòè
  11.         dd      äàëüíèé óêàçàòåëü íà ïðîöåäóðó ñîõðàíåíèÿ ïàðàìåòðîâ
  12.                 ìîæåò áûòü 0, åñëè çàãðóç÷èê íå ïîääåðæèâàåò
  13. Ïðîöåäóðà ñîõðàíåíèÿ ïàðàìåòðîâ äîëæíà çàïèñàòü ïåðâûé ñåêòîð ÿäðà
  14. kernel.mnt íàçàä íà òî ìåñòî, îòêóäà îíà åãî ñ÷èòàëà; âîçâðàò èç
  15. ïðîöåäóðû îñóùåñòâëÿåòñÿ ïî retf.
  16.  
  17. ;------------------------------------------
  18. ; Óêàçàíèå çàãðóç÷èêîì ñèñòåìíîãî êàòàëîãà
  19. ;------------------------------------------
  20. Ïåðåä ïåðåäà÷åé óïðàâëåíèÿ ÿäðó ìîãóò áûòü óñòàíîâëåíû ñëåäóþùèå ðåãèñòðû:
  21. CX='HA'
  22. DX='RD'
  23. Ýòî óêàçûâàåò íà òî, ÷òî ðåãèñòð BX óêàçûâàåò íà ñèñòåìíûé ðàçäåë. Êàòàëîã /kolibri/ íà
  24. ýòîì ðàçäåëå ÿâëÿåòñÿ ñèñòåìíûì, ê íåìó ìîæíî îáðàùàòüñÿ êàê ê /sys/
  25.  
  26. Âîçìîæíûå çíà÷åíèÿ ðåãèñòðà BL (óêàçûâàåò íà óñòðîéñòâî):
  27. 'a' - Primary   Master
  28. 'b' - Primary   Slave
  29. 'c' - Secondary Master
  30. 'd' - Secondary Slave
  31. 'r' - RAM äèñê
  32. 'm' - Ïðèâîäû CD-ROM
  33.  
  34. Âîçìîæíûå çíà÷åíèÿ ðåãèñòðà BH (óêàçûâàåò íà ðàçäåë):
  35. äëÿ BL='a','b','c','d','r' - óêàçûâàåò íà ðàçäåë, ãäå ðàñïîëîæåí ñèñòåìíûé êàòàëîã
  36. äëÿ BL='m',óêàçûâàåò íà íîìåð ôèçè÷åñêîãî óñòðîéñòâà, ñ êîòîðîãî íàäî íà÷èíàòü ïîèñê ñèñòåìíîãî êàòàëîãà.
  37.  
  38. ïðèìåðû çíà÷åíèé ðåãèñòðà BX:
  39. 'a1' - /hd0/1/
  40. 'a2' - /hd0/2/
  41. 'b1' - /hd1/1/
  42. 'd4' - /hd3/4/
  43. 'm0' - ïîèñê ïî ñèäþêàì êàòàëîãà kolibri
  44. 'r1' - /rd/1/
  45.  
  46.  
  47. ;------------------------------------------
  48. ; Interface for saving boot-screen settings
  49. ;------------------------------------------
  50. 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:
  52.         db      structure version, must be 1
  53.         dw      flags
  54.                 bit 0 set = ramdisk image in memory is present
  55.         dd      far pointer to save settings procedure
  56.                 may be 0 if such procedure is not supported by loader
  57. 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
  59. this procedure must be with retf.
  60.  
  61. ;------------------------------------------
  62. ; System directory information from loader
  63. ;------------------------------------------
  64. Before transfer of control to the kernel following registers can be set:
  65. CX = 'HA'
  66. DX = 'RD'
  67. 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/
  69.  
  70. Possible values for register BL (indicates the device):
  71. 'a' - Primary Master
  72. 'b' - Primary Slave
  73. 'c' - Secondary Master
  74. 'd' - Secondary Slave
  75. 'r' - RAM disc
  76. 'm' - ROM drives
  77.  
  78. Possible values for register BH (indicates section):
  79. 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.
  81.  
  82. Examples of register BX:
  83. 'a1' - /hd0/1/
  84. 'a2' - /hd0/2/
  85. 'b1' - /hd1/1/
  86. 'd4' - /hd3/4/
  87. 'm0' - search directory 'kolibri' by all CD-ROMs
  88. 'r1' - /rd/1/
  89.