Subversion Repositories Kolibri OS

Rev

Rev 2 | Rev 8 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 ha 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:9020     8bytes pci data
18
;   0:9030     byte   VRR start enabled 1, 2-no
19
;   0:9031     word   IDEContrRegsBaseAddr
20
;
21
;
22
;   Runtime:
23
;
24
;   0000  ->   2FFF   window_data   - 256 entries
25
;
26
;         0000 dword  x start
27
;         0004 dword  y start
28
;         0008 dword  x size
29
;         000C dword  y size
30
;         0010 dword  color of work area
31
;         0014 dword  color of grab bar
32
;         0018 dword  color of frames
33
;         001C dword  window flags, +30 = window drawn, +31 redraw flag
34
;
35
;   3000  ->   4FFF   task list      - 256 entries
36
;
37
;         00   dword  process count
38
;         04   dword  no of processes
39
;         10   dword  base of running process at 0x3000+
40
;
41
;         20   dword  application event mask
42
;         24   dword  PID - process identification number
43
;         2a   word   0, state 3=zombie, 4=terminate
44
;         2e   byte   window number on screen
45
;         30   dword  exact position in memory
46
;         34   dword  counter sum
47
;         38   dword  time stamp counter add
48
;         3c   dword  cpu usage in cpu timer tics
49
;
50
; -> delete ->   5000  ->   AFFF   free
51
;
52
;!!!
53
;   5000  ->   5FFF   save_syscall_data - syscall trace
6 poddubny 54
;   6000  ->   68FF   free
1 ha 55
;   6900  ->   6EFF   saved picture under mouse pointer
56
;
6 poddubny 57
;   6F00  ->   7FFF   free
1 ha 58
;
59
;   8000  ->   A3FF   used FLOPPY driver
60
;
61
;   A400  ->   AFFF   free
62
;
63
;   B000  ->   B005   jump address for irq0 (task switch)
64
;   B008  ->   B00B   count of ticks remaining to updating CPU usage info
65
;
6 poddubny 66
;   B060  ->   B0FF   free
67
 
1 ha 68
;   B100  ->   B2FF   IDT
6 poddubny 69
;   B300  ->   BEFF   free
1 ha 70
;!!!
71
 
72
;   BF00  ->   BFFF   bytes, 1 if process running/memory in use
73
;   C000  ->   C3FF   window stack C000 no of windows - all in words
74
;   C402  ->   C7FF   window position in stack
75
;   D000  ->   D1FF   FDC controller
76
;   D200  ->   D3FF   FDC controller for Fat12
77
;   D400  ->   DFFF   free
78
;   E000  byte        multitasking started
79
;   E004  dword       save for boot mem 0x24
80
;   E010  dword       pm bank switch address
81
;   E014  dword       window multiplier
82
;   E020  dword       putpixel address
83
;   E024  dword       getpixel address
84
;   E030  dword       Vesa 1.2 pm bank switch address
85
;   F000  dword       hd partition 1 start
86
;   F004  dword       root start at partition 1
87
;   F008  dword       root start at hd
88
;   F100  byte        1=only os draw on screen
89
;   F200  dword       mousepicture -pointer
90
;   F204  dword       mouse appearance counter
91
;   F300  dword       x & y temp for windowmove
92
;   F400  byte        no of keys in buffer
93
;   F401  byte        'buffer'
94
;   F402  ->   F4FF   reserved for keys
95
;   F500  byte        no of buttons in buffer
96
;   F501  dword       'buffer'
97
;   F502  ->   F5FF   reserved for buttons
98
;   F600  dword       tsc / second
99
;   F604  byte        mouse port: 1 ps2, 2 com1, 3 com2
100
;   FB00  ->   FB0F   mouse memory 00 chunk count - FB0A-B x - FB0C-D y
101
;   FB10  ->   FB17   mouse color mem
102
;   FB21              x move
103
;   FB22              y move
104
;   FB28              high bits temp
105
;   FB30              color temp
106
;   FB40  byte        buttons down
107
;   FB44  byte        0 mouse down -> do not draw
108
;   FB4A  ->   FB4D   FB4A-B x-under - FB4C-D y-under
109
;   FBF0  byte        multiplied window
110
;   FBF1  byte        bits per pixel
111
;   FC00  ->   FCFE   com1/ps2 buffer
112
;   FCFF              com1/ps2 buffer count starting from FC00
113
;   FDF0  ->   FDF3   timer tick inc every 1/100 sec 4 bytes
114
;   FE00  dword       screen x size
115
;   FE04  dword       screen y size
116
;   FE08  dword       screen y multiplier
117
;   FE0C  dword       screen mode
118
;   FE10  dword       entries in hd cache
119
;   FE80  dword       address of LFB in physical
120
;   FE84  dword       address of applications memory start in physical
121
;   FE88  dword       address of button list
122
;   FE8C  dword       memory to use
123
;   FF00  byte        1 = system shutdown request
124
;   FF01  dword       if >1 then activate process
125
;   FFF0  byte        1 = redraw background request from app
126
;   FFF1  byte        1 = diskette int occur
127
;   FFF2              write and read bank in screen
128
;   FFF4  byte        0 if first mouse draw & do not return picture under
129
;   FFF5  byte        1 do not draw pointer
130
;   FFFF  byte        do not change task for 1/100 sec.
131
;
132
;  10000  ->  1FFFF   32 bit os
133
;  20000  ->  2FFFF   32 bit stack
134
;  30000  ->  36FFF   basic text font II
135
;  37000  ->  3BFFF   basic text font I
136
;  40000  ->  4FFFF   data of retrieved disks and partitions (Mario79)
6 poddubny 137
;  50000  ->  500FF   free
1 ha 138
;  51000  ->  54000   esp0,esp1,esp2
6 poddubny 139
;  5F000  ->  5FFFF   free
1 ha 140
;  60000  ->  7FFFF   paging tables
141
;  80000  ->  8FFFF   additional app info, in 256 byte steps - 256 entries
142
;
143
;           00  11db  name of app running
144
;           10 108db  floating point unit save area
145
;           7f byte   0= no fpu saved ,  1= fpu saved to 0x10 -> restore
146
;           80 dword  address of random shaped window area
147
;           84 byte   shape area scale
148
;           88 dword  used GDT of TSS
149
;           8C dword  application memory size
150
;           90 dword  window X position save
151
;           94 dword  window Y position save
152
;           98 dword  window X size save
153
;           9C dword  window Y size save
154
;           A0 dword  IPC memory start
155
;           A4 dword  IPC memory size
156
;           A8 dword  event bits: mouse, stack,..
157
;
158
;           B0 dword  int40 handler in use ; 0 if not in use
159
;           B4  byte  keyboard mode: 0 = keymap, 1 = scancodes
160
;
161
;  90000  ->  9FFFF   tmp
162
;  A0000  ->  AFFFF   screen access area
163
;  B0000  ->  FFFFF   bios rest in peace -area
164
; 100000  -> 27FFFF   diskette image
165
; 280000  -> 281FFF   ramdisk fat
166
; 282000  -> 283FFF   floppy  fat
167
;
168
; 284000  -> 28FFFF   free
169
;
170
; 290000  -> 297FFF   TSS's of interrupts
6 poddubny 171
; 298000  -> 29FFFF   free
1 ha 172
; 2A0000  -> 2B00ff   wav device data
173
; 2C0000  -> 2C3fff   button info
174
;
175
;        0000 word    number of buttons
176
;        first button entry at 0x10
177
;        +0000 word   process number
178
;        +0002 word   button id number : bits 00-15
179
;        +0004 word   x start
180
;        +0006 word   x size
181
;        +0008 word   y start
182
;        +000A word   y size
183
;        +000C word   button id number : bits 16-31
184
;
185
; 2D0000  -> 2DFFFF   reserved port area
186
;
187
;     0000   dword    no of port areas reserved
188
;     0010   dword    process id
189
;            dword    start port
190
;            dword    end port
191
;            dword    0
192
;
193
; 2E0000  -> 2EFFFF   irq data area
194
; 2F0000  -> 2FFFFF   low memory save
195
;
196
; 300000  -> 45FFFF   background image, max 1 M
197
;
198
; 460000  -> 5FFFFF   display info
199
;
200
; 600000  -> 6FFFFF   hd cache
201
;
202
; 700000  -> 71ffff   tcp memory       (128 kb)
203
; 720000  -> 75ffff   interrupt stacks (256 kpl * 1024)
204
;
205
; 760000  -> 76ffff   !vrr driver
206
; 770000  -> 777fff   tcp memory       ( 32 kb)
207
;
208
; 778000  -> 77ffff   window skinning  ( 32 kb)
209
; 780000  -> 7fffff   free
210
;
211
; 800000  -> BFFFFF   mapped to LFB
212
;
213
;
214
; C00000  -> C01FFF   draw_data   - 256 entries
215
;
216
;         00   dword  draw limit - x start
217
;         04   dword  draw limit - y start
218
;         08   dword  draw limit - x end
219
;         0C   dword  draw limit - y end
220
;         1C   dword  app int vector
221
;
222
; C03000  -> D11fff   sysint_stack_data
223
;                     - system interrupt stacks
224
;                     - 256 entries * 4096 step
225
;
6 poddubny 226
; D20000  -> F28000   TSS and IO map for (8192*8)=65536 ports
227
;                     (128+8192)*256 = 557956 = 0x88000
1 ha 228
;
229
; 1000000 -> 3FFFFFF  for applications
230
;
231