Subversion Repositories Kolibri OS

Rev

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

  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/
  96.