Subversion Repositories Kolibri OS

Rev

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

  1. ;
  2. ;   MEMORY MAP
  3. ;
  4. ;   Boot:
  5. ;
  6. ;   0:9000     byte   bits per pixel
  7. ;   0:9001     word   scanline length
  8. ;   0:9008     word   vesa video mode
  9. ;   0:900A     word   X res
  10. ;   0:900C     word   Y res
  11. ;   0:9010     byte   mouse port  - not used
  12. ;   0:9014     dword  Vesa 1.2 pm bank switch
  13. ;   0:9018     dword  Vesa 2.0 LFB address
  14. ;   0:901C     byte   0 or 1 : enable MTRR graphics acceleration
  15. ;   0:901D     byte   not used anymore (0 or 1 : enable system log display)
  16. ;   0:901E     byte   0 or 1 : enable direct lfb write, paging disabled
  17. ;   0:901F     byte   DMA write : 1=yes, 2=no
  18. ;   0:9020     8bytes pci data
  19. ;   0:9030     byte   VRR start enabled 1, 2-no
  20. ;   0:9031     word   IDEContrRegsBaseAddr
  21. ;    0x9040 - dword - entry point of APM BIOS
  22. ;    0x9044 -  word - version (BCD)
  23. ;    0x9046 -  word - flags
  24. ;
  25. ;   Runtime:
  26. ;
  27. ; 0x00000000 -> 0x7FFFFFFF  application 2Gb
  28.  
  29. ; 0x80000000 -> 1FFF   window_data   - 256 entries
  30. ;
  31. ;         0000 dword  x start
  32. ;         0004 dword  y start
  33. ;         0008 dword  x size
  34. ;         000C dword  y size
  35. ;         0010 dword  color of work area
  36. ;         0014 dword  color of grab bar
  37. ;         0018 dword  color of frames
  38. ;         001C dword  window flags, +30 = window drawn, +31 redraw flag
  39. ;
  40. ;   2000  ->   2FFF   free
  41. ;
  42. ;   3000  ->   4FFF   task list      - 256 entries
  43. ;
  44. ;         00   dword  process count
  45. ;         04   dword  no of processes
  46. ;         10   dword  base of running process at 0x3000+
  47. ;
  48. ;         20   dword  application event mask
  49. ;         24   dword  PID - process identification number
  50. ;         2a   byte   slot state: 0=running, 1,2=suspended
  51. ;                        3=zombie, 4=terminate,
  52. ;                        5=waiting for event, 9 = not used
  53. ;         2e   byte   window number on screen
  54. ;         30   dword  exact position in memory
  55. ;         34   dword  counter sum
  56. ;         38   dword  time stamp counter add
  57. ;         3c   dword  cpu usage in cpu timer tics
  58. ;
  59. ;
  60. ;   5000  ->   68FF   free
  61. ;   6900  ->   6EFF   saved picture under mouse pointer
  62. ;
  63. ;   6F00  ->   6FFF   free
  64. ;
  65. ;   7000  ->   7FFF   used CD driver
  66. ;
  67. ;   8000  ->   A3FF   used FLOPPY driver
  68. ;
  69. ;   A400  ->   B0FF   free
  70.  
  71. ;   B100  ->   B2FF   IDT
  72.  
  73. ;   B300  ->   BFFF   free
  74.  
  75. ;   C000  ->   C3FF   window stack C000 no of windows - all in words
  76. ;   C402  ->   C7FF   window position in stack
  77. ;   D000  ->   D1FF   FDC controller
  78. ;   D200  ->   D3FF   FDC controller for Fat12
  79. ;   D400  ->   DFFF   free
  80. ;   E000  byte        multitasking started
  81. ;   E020  dword       putpixel address
  82. ;   E024  dword       getpixel address
  83. ;   E030  dword       Vesa 1.2 pm bank switch address
  84. ;   F200  dword       mousepicture -pointer
  85. ;   F204  dword       mouse appearance counter
  86. ;   F300  dword       x & y temp for windowmove
  87. ;   F400  byte        no of keys in buffer
  88. ;   F401  byte        'buffer'
  89. ;   F402  ->   F4FF   reserved for keys
  90. ;   F500  byte        no of buttons in buffer
  91. ;   F501  dword       'buffer'
  92. ;   F502  ->   F5FF   reserved for buttons
  93. ;   F600  dword       tsc / second
  94. ;   F604  byte        mouse port: 1 ps2, 2 com1, 3 com2
  95. ;   FB00  ->   FB0F   mouse memory 00 chunk count - FB0A-B x - FB0C-D y
  96. ;   FB10  ->   FB17   mouse color mem
  97. ;   FB21              x move
  98. ;   FB22              y move
  99. ;   FB28              high bits temp
  100. ;   FB30              color temp
  101. ;   FB40  byte        buttons down
  102. ;   FB44  byte        0 mouse down -> do not draw
  103. ;   FB4A  ->   FB4D   FB4A-B x-under - FB4C-D y-under
  104. ;   FBF1  byte        bits per pixel
  105. ;   FC00  ->   FCFE   com1/ps2 buffer
  106. ;   FCFF              com1/ps2 buffer count starting from FC00
  107. ;   FE00  dword       screen x size
  108. ;   FE04  dword       screen y size
  109. ;   FE08  dword       screen y multiplier
  110. ;   FE0C  dword       screen mode
  111. ;   FE80  dword       address of LFB in physical
  112. ;   FE84  dword       address of applications memory start in physical
  113. ;   FE88  dword       address of button list
  114. ;   FE8C  dword       memory to use
  115. ;   FF00  byte        1 = system shutdown request
  116. ;   FF01  dword       free
  117. ;   FFF0  byte        1 = redraw background request from app
  118. ;   FFF1  byte        1 = diskette int occur
  119. ;   FFF2              write and read bank in screen
  120. ;   FFF4  byte        0 if first mouse draw & do not return picture under
  121. ;   FFF5  byte        1 do not draw pointer
  122. ;   FFFF  byte        do not change task for 1/100 sec.
  123. ;
  124. ; 0x80010000 ->  6CBFF   kernel, 32-bit run-time code (up to 371 Kb)
  125.  
  126. ; 0x8006CC00 ->  6DBFF   stack at boot time (4Kb)
  127. ;
  128. ; 0x8006DC00 ->  6E5FF   basic text font II
  129. ; 0x8006E600 ->  6Efff   basic text font I
  130. ; 0x8006F000 ->  6FFFF   main page directory
  131.  
  132. ; 0x80070000 ->  7FFFF   data of retrieved disks and partitions (Mario79)
  133. ; 0x80080000 ->  8FFFF   additional app info, in 256 byte steps - 256 entries
  134. ;
  135. ;         00  11db  name of app running
  136. ;       0x10 dword  pointer to  fpu save area
  137. ;       0x14 dword  event count
  138. ;       0x18 dword  user fpu exceptoins handler
  139. ;       0x1c dword  user sse exceptions handler
  140. ;         20 dword  PL0 stack base
  141. ;         24 dword  user heap base
  142. ;         28 dword  user heap top
  143. ;         2c dword  window cursor handle
  144. ;         30 dword  first event in list
  145. ;         34 dword  last event in list
  146. ;         38 dword  first kernel object in list
  147. ;         3c dword  last kernel object in list
  148. ;         40 dword  thread esp
  149. ;         44 dword  io permission map page 0
  150. ;         48 dword  io permission map page 1
  151.           4c dword  debug state: 1= load debug registers
  152. ;         50-7F     unused
  153. ;
  154. ;         80 dword  address of random shaped window area
  155. ;         84 byte   shape area scale
  156. ;         88 dword  free
  157. ;         8C dword  application memory size
  158. ;         90 dword  window X position save
  159. ;         94 dword  window Y position save
  160. ;         98 dword  window X size save
  161. ;         9C dword  window Y size save
  162. ;         A0 dword  IPC memory start
  163. ;         A4 dword  IPC memory size
  164. ;         A8 dword  event bits: mouse, stack,..
  165. ;         AC dword  0 or debugger slot
  166. ;         B0 dword  free
  167. ;         B4  byte  keyboard mode: 0 = keymap, 1 = scancodes
  168. ;         B8 dword  physical address of directory table
  169. ;         BC dword  address of debug event memory
  170. ;         C0  5 dd  thread debug registers: DR0,DR1,DR2,DR3,DR7
  171. ;
  172. ; 0x80090000 ->  9FFFF   tmp
  173. ; 0x800A0000 ->  AFFFF   screen access area
  174. ; 0x800B0000 ->  FFFFF   bios rest in peace -area
  175. ; 0x80100000 -> 27FFFF   diskette image
  176. ; 0x80280000 -> 281FFF   ramdisk fat
  177. ; 0x80282000 -> 283FFF   floppy  fat
  178. ;
  179. ; 0x80284000 -> 29FFFF   free (112 Kb)
  180. ;
  181. ; 0x802A0000 -> 2B00ff   wav device data
  182. ; 0x802C0000 -> 2C3fff   button info
  183. ;
  184. ;       0000 word    number of buttons
  185. ;        first button entry at 0x10
  186. ;       +0000 word   process number
  187. ;       +0002 word   button id number : bits 00-15
  188. ;       +0004 word   x start
  189. ;       +0006 word   x size
  190. ;       +0008 word   y start
  191. ;       +000A word   y size
  192. ;       +000C word   button id number : bits 16-31
  193. ;
  194. ; 0x802C4000 -> 2CFFFF   free (48Kb)
  195. ;
  196. ; 0x802D0000 -> 2DFFFF   reserved port area
  197. ;
  198. ;       0000 dword   no of port areas reserved
  199. ;       0010 dword   process id
  200. ;            dword   start port
  201. ;            dword   end port
  202. ;            dword   0
  203. ;
  204. ; 0x802E0000 -> 2EFFFF   irq data area
  205. ; 0x802F0000 -> 2FFFFF   low memory save
  206. ;
  207. ; 0x80300000 -> 400000   hd cache
  208.  
  209. ; 0x80400000 -> 41FFFF   tcp memory       128 Kb
  210. ; 0x80420000 -> 427FFF   tcp memory        32 Kb
  211. ;
  212. ; 0x80428000 -> 42FFFF   !vrr driver       32 Kb
  213.  
  214. ; 0x80430000 -> 477FFF   skin data
  215.  
  216. ; 0x80438000 -> 43AFFF draw data     - 256 entries
  217. ;         00   dword  draw limit - x start
  218. ;         04   dword  draw limit - y start
  219. ;         08   dword  draw limit - x end
  220. ;         0C   dword  draw limit - y end
  221.  
  222. ; 0x8043BF80 -> 43BFFF TSS            128 bytes
  223. ; 0x8043C000 -> 43DFFF IO map for (8192*8)=65536 ports
  224.  
  225. ; 0x8043F000 -> 57EFFF   display info
  226. ; 0x8057F000 -> 58FFFF   page map     max 128 Kb
  227. ;
  228. ; 0x80800000 ->       kernel heap
  229. ; 0x81FFFFFF          heap min limit
  230. ; 0xFDBFFFFF          heap max limit
  231.  
  232. ; 0xFDC00000 -> 0xFDFFFFFF  page tables 4Mb
  233. ; 0xFE000000 -> 0xFFFFFFFF  LFB 32Mb
  234. ; 0xFE000000 -> 0xFE7FFFFF  application available LFB 8Mb
  235. ; 0xFE800000 -> 0xFFFFFFFF  kernel LFB part 24 Mb
  236.  
  237.  
  238.