Rev 129 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 129 | Rev 384 | ||
---|---|---|---|
1 | ; |
1 | ; |
2 | ; MEMORY MAP |
2 | ; MEMORY MAP |
3 | ; |
3 | ; |
4 | ; Boot: |
4 | ; Boot: |
5 | ; |
5 | ; |
6 | ; 0:9000 byte bits per pixel |
6 | ; 0:9000 byte bits per pixel |
7 | ; 0:9001 word scanline length |
7 | ; 0:9001 word scanline length |
8 | ; 0:9008 word vesa video mode |
8 | ; 0:9008 word vesa video mode |
9 | ; 0:900A word X res |
9 | ; 0:900A word X res |
10 | ; 0:900C word Y res |
10 | ; 0:900C word Y res |
11 | ; 0:9010 byte mouse port - not used |
11 | ; 0:9010 byte mouse port - not used |
12 | ; 0:9014 dword Vesa 1.2 pm bank switch |
12 | ; 0:9014 dword Vesa 1.2 pm bank switch |
13 | ; 0:9018 dword Vesa 2.0 LFB address |
13 | ; 0:9018 dword Vesa 2.0 LFB address |
14 | ; 0:901C byte 0 or 1 : enable MTRR graphics acceleration |
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) |
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 |
16 | ; 0:901E byte 0 or 1 : enable direct lfb write, paging disabled |
- | 17 | ; 0:901F byte DMA write : 1=yes, 2=no |
|
17 | ; 0:9020 8bytes pci data |
18 | ; 0:9020 8bytes pci data |
18 | ; 0:9030 byte VRR start enabled 1, 2-no |
19 | ; 0:9030 byte VRR start enabled 1, 2-no |
19 | ; 0:9031 word IDEContrRegsBaseAddr |
20 | ; 0:9031 word IDEContrRegsBaseAddr |
20 | ; 0:9034 byte vesa major version number (ascii) |
- | |
21 | ; 0:9035 byte card vendor (intel=1, s3=2, other=3) |
- | |
22 | ; 0x9040 - dword - entry point of APM BIOS |
21 | ; 0x9040 - dword - entry point of APM BIOS |
23 | ; 0x9044 - word - version (BCD) |
22 | ; 0x9044 - word - version (BCD) |
24 | ; 0x9046 - word - flags |
23 | ; 0x9046 - word - flags |
25 | ; |
24 | ; |
26 | ; Runtime: |
25 | ; Runtime: |
27 | ; |
26 | ; |
28 | ; 0000 -> 1FFF window_data - 256 entries |
27 | ; 0000 -> 1FFF window_data - 256 entries |
29 | ; |
28 | ; |
30 | ; 0000 dword x start |
29 | ; 0000 dword x start |
31 | ; 0004 dword y start |
30 | ; 0004 dword y start |
32 | ; 0008 dword x size |
31 | ; 0008 dword x size |
33 | ; 000C dword y size |
32 | ; 000C dword y size |
34 | ; 0010 dword color of work area |
33 | ; 0010 dword color of work area |
35 | ; 0014 dword color of grab bar |
34 | ; 0014 dword color of grab bar |
36 | ; 0018 dword color of frames |
35 | ; 0018 dword color of frames |
37 | ; 001C dword window flags, +30 = window drawn, +31 redraw flag |
36 | ; 001C dword window flags, +30 = window drawn, +31 redraw flag |
38 | ; |
37 | ; |
39 | ; 2000 -> 2FFF free |
38 | ; 2000 -> 2FFF free |
40 | ; |
39 | ; |
41 | ; 3000 -> 4FFF task list - 256 entries |
40 | ; 3000 -> 4FFF task list - 256 entries |
42 | ; |
41 | ; |
43 | ; 00 dword process count |
42 | ; 00 dword process count |
44 | ; 04 dword no of processes |
43 | ; 04 dword no of processes |
45 | ; 10 dword base of running process at 0x3000+ |
44 | ; 10 dword base of running process at 0x3000+ |
46 | ; |
45 | ; |
47 | ; 20 dword application event mask |
46 | ; 20 dword application event mask |
48 | ; 24 dword PID - process identification number |
47 | ; 24 dword PID - process identification number |
49 | ; 2a byte slot state: 0=running, 1,2=suspended |
48 | ; 2a byte slot state: 0=running, 1,2=suspended |
50 | ; 3=zombie, 4=terminate, |
49 | ; 3=zombie, 4=terminate, |
51 | ; 5=waiting for event, 9 = not used |
50 | ; 5=waiting for event, 9 = not used |
52 | ; 2e byte window number on screen |
51 | ; 2e byte window number on screen |
53 | ; 30 dword exact position in memory |
52 | ; 30 dword exact position in memory |
54 | ; 34 dword counter sum |
53 | ; 34 dword counter sum |
55 | ; 38 dword time stamp counter add |
54 | ; 38 dword time stamp counter add |
56 | ; 3c dword cpu usage in cpu timer tics |
55 | ; 3c dword cpu usage in cpu timer tics |
57 | ; |
56 | ; |
58 | ; |
57 | ; |
59 | ; 5000 -> 5FFF save_syscall_data - syscall trace |
- | |
60 | ; 6000 -> 68FF free |
58 | ; 5000 -> 68FF free |
61 | ; 6900 -> 6EFF saved picture under mouse pointer |
59 | ; 6900 -> 6EFF saved picture under mouse pointer |
62 | ; |
60 | ; |
63 | ; 6F00 -> 6FFF free |
61 | ; 6F00 -> 6FFF free |
64 | ; |
62 | ; |
65 | ; 7000 -> 7FFF used CD driver |
63 | ; 7000 -> 7FFF used CD driver |
66 | ; |
64 | ; |
67 | ; 8000 -> A3FF used FLOPPY driver |
65 | ; 8000 -> A3FF used FLOPPY driver |
68 | ; |
66 | ; |
69 | ; A400 -> B0FF free |
67 | ; A400 -> B0FF free |
70 | 68 | ||
71 | ; B100 -> B2FF IDT |
69 | ; B100 -> B2FF IDT |
72 | 70 | ||
73 | ; B300 -> BFFF free |
71 | ; B300 -> BFFF free |
74 | 72 | ||
75 | ; C000 -> C3FF window stack C000 no of windows - all in words |
73 | ; C000 -> C3FF window stack C000 no of windows - all in words |
76 | ; C402 -> C7FF window position in stack |
74 | ; C402 -> C7FF window position in stack |
77 | ; D000 -> D1FF FDC controller |
75 | ; D000 -> D1FF FDC controller |
78 | ; D200 -> D3FF FDC controller for Fat12 |
76 | ; D200 -> D3FF FDC controller for Fat12 |
79 | ; D400 -> DFFF free |
77 | ; D400 -> DFFF free |
80 | ; E000 byte multitasking started |
78 | ; E000 byte multitasking started |
81 | ; E020 dword putpixel address |
79 | ; E020 dword putpixel address |
82 | ; E024 dword getpixel address |
80 | ; E024 dword getpixel address |
83 | ; E030 dword Vesa 1.2 pm bank switch address |
81 | ; E030 dword Vesa 1.2 pm bank switch address |
84 | ; E034 byte vesa major version number (ascii) |
- | |
85 | ; E035 byte card vendor (intel=1, s3=2, other=3) |
- | |
86 | ; F200 dword mousepicture -pointer |
82 | ; F200 dword mousepicture -pointer |
87 | ; F204 dword mouse appearance counter |
83 | ; F204 dword mouse appearance counter |
88 | ; F300 dword x & y temp for windowmove |
84 | ; F300 dword x & y temp for windowmove |
89 | ; F400 byte no of keys in buffer |
85 | ; F400 byte no of keys in buffer |
90 | ; F401 byte 'buffer' |
86 | ; F401 byte 'buffer' |
91 | ; F402 -> F4FF reserved for keys |
87 | ; F402 -> F4FF reserved for keys |
92 | ; F500 byte no of buttons in buffer |
88 | ; F500 byte no of buttons in buffer |
93 | ; F501 dword 'buffer' |
89 | ; F501 dword 'buffer' |
94 | ; F502 -> F5FF reserved for buttons |
90 | ; F502 -> F5FF reserved for buttons |
95 | ; F600 dword tsc / second |
91 | ; F600 dword tsc / second |
96 | ; F604 byte mouse port: 1 ps2, 2 com1, 3 com2 |
92 | ; F604 byte mouse port: 1 ps2, 2 com1, 3 com2 |
97 | ; FB00 -> FB0F mouse memory 00 chunk count - FB0A-B x - FB0C-D y |
93 | ; FB00 -> FB0F mouse memory 00 chunk count - FB0A-B x - FB0C-D y |
98 | ; FB10 -> FB17 mouse color mem |
94 | ; FB10 -> FB17 mouse color mem |
99 | ; FB21 x move |
95 | ; FB21 x move |
100 | ; FB22 y move |
96 | ; FB22 y move |
101 | ; FB28 high bits temp |
97 | ; FB28 high bits temp |
102 | ; FB30 color temp |
98 | ; FB30 color temp |
103 | ; FB40 byte buttons down |
99 | ; FB40 byte buttons down |
104 | ; FB44 byte 0 mouse down -> do not draw |
100 | ; FB44 byte 0 mouse down -> do not draw |
105 | ; FB4A -> FB4D FB4A-B x-under - FB4C-D y-under |
101 | ; FB4A -> FB4D FB4A-B x-under - FB4C-D y-under |
106 | ; FBF1 byte bits per pixel |
102 | ; FBF1 byte bits per pixel |
107 | ; FC00 -> FCFE com1/ps2 buffer |
103 | ; FC00 -> FCFE com1/ps2 buffer |
108 | ; FCFF com1/ps2 buffer count starting from FC00 |
104 | ; FCFF com1/ps2 buffer count starting from FC00 |
109 | ; FE00 dword screen x size |
105 | ; FE00 dword screen x size |
110 | ; FE04 dword screen y size |
106 | ; FE04 dword screen y size |
111 | ; FE08 dword screen y multiplier |
107 | ; FE08 dword screen y multiplier |
112 | ; FE0C dword screen mode |
108 | ; FE0C dword screen mode |
113 | ; FE10 dword entries in hd cache |
- | |
114 | ; FE80 dword address of LFB in physical |
109 | ; FE80 dword address of LFB in physical |
115 | ; FE84 dword address of applications memory start in physical |
110 | ; FE84 dword address of applications memory start in physical |
116 | ; FE88 dword address of button list |
111 | ; FE88 dword address of button list |
117 | ; FE8C dword memory to use |
112 | ; FE8C dword memory to use |
118 | ; FF00 byte 1 = system shutdown request |
113 | ; FF00 byte 1 = system shutdown request |
119 | ; FF01 dword free |
114 | ; FF01 dword free |
120 | ; FFF0 byte 1 = redraw background request from app |
115 | ; FFF0 byte 1 = redraw background request from app |
121 | ; FFF1 byte 1 = diskette int occur |
116 | ; FFF1 byte 1 = diskette int occur |
122 | ; FFF2 write and read bank in screen |
117 | ; FFF2 write and read bank in screen |
123 | ; FFF4 byte 0 if first mouse draw & do not return picture under |
118 | ; FFF4 byte 0 if first mouse draw & do not return picture under |
124 | ; FFF5 byte 1 do not draw pointer |
119 | ; FFF5 byte 1 do not draw pointer |
125 | ; FFFF byte do not change task for 1/100 sec. |
120 | ; FFFF byte do not change task for 1/100 sec. |
126 | ; |
121 | ; |
127 | ; 10000 -> 3DBFF kernel, 32-bit run-time code (up to 183 Kb) |
122 | ; 10000 -> 3DBFF kernel, 32-bit run-time code (up to 183 Kb) |
128 | ; 3DC00 -> 3EBFF stack at boot time (4Kb) |
123 | ; 3DC00 -> 3EBFF stack at boot time (4Kb) |
129 | ; 3EC00 -> 3F5FF basic text font II |
124 | ; 3EC00 -> 3F5FF basic text font II |
130 | ; 3F600 -> 3FFFF basic text font I |
125 | ; 3F600 -> 3FFFF basic text font I |
131 | ; 40000 -> 4FFFF data of retrieved disks and partitions (Mario79) |
126 | ; 40000 -> 4FFFF data of retrieved disks and partitions (Mario79) |
- | 127 | ||
132 | 128 | ; 50000 -> 50FFF main page directory |
|
133 | ; 50000 -> 5FFFF free (64 Kb) |
129 | ; 50200 -> 5FFFF pages bitmap |
134 | 130 | ||
135 | ; 60000 -> 7FFFF reserved to physical memory manager |
131 | ; 60000 -> 7FFFF free (128 Kb) |
136 | ; 80000 -> 8FFFF additional app info, in 256 byte steps - 256 entries |
132 | ; 80000 -> 8FFFF additional app info, in 256 byte steps - 256 entries |
137 | ; |
133 | ; |
138 | ; 00 11db name of app running |
134 | ; 00 11db name of app running |
139 | ; 10 108db floating point unit save area |
135 | ; 10 108db floating point unit save area |
140 | ; 7f byte 0= no fpu saved , 1= fpu saved to 0x10 -> restore |
136 | ; 7f byte 0= no fpu saved , 1= fpu saved to 0x10 -> restore |
141 | ; 80 dword address of random shaped window area |
137 | ; 80 dword address of random shaped window area |
142 | ; 84 byte shape area scale |
138 | ; 84 byte shape area scale |
143 | ; 88 dword free |
139 | ; 88 dword free |
144 | ; 8C dword application memory size |
140 | ; 8C dword application memory size |
145 | ; 90 dword window X position save |
141 | ; 90 dword window X position save |
146 | ; 94 dword window Y position save |
142 | ; 94 dword window Y position save |
147 | ; 98 dword window X size save |
143 | ; 98 dword window X size save |
148 | ; 9C dword window Y size save |
144 | ; 9C dword window Y size save |
149 | ; A0 dword IPC memory start |
145 | ; A0 dword IPC memory start |
150 | ; A4 dword IPC memory size |
146 | ; A4 dword IPC memory size |
151 | ; A8 dword event bits: mouse, stack,.. |
147 | ; A8 dword event bits: mouse, stack,.. |
152 | ; AC dword 0 or debugger slot |
148 | ; AC dword 0 or debugger slot |
153 | ; B0 dword free |
149 | ; B0 dword free |
154 | ; B4 byte keyboard mode: 0 = keymap, 1 = scancodes |
150 | ; B4 byte keyboard mode: 0 = keymap, 1 = scancodes |
155 | ; B8 dword physical address of directory table |
151 | ; B8 dword physical address of directory table |
156 | ; BC dword address of debug event memory |
152 | ; BC dword address of debug event memory |
157 | ; C0 5 dd thread debug registers: DR0,DR1,DR2,DR3,DR7 |
153 | ; C0 5 dd thread debug registers: DR0,DR1,DR2,DR3,DR7 |
158 | ; |
154 | ; |
159 | ; 90000 -> 9FFFF tmp |
155 | ; 90000 -> 9FFFF tmp |
160 | ; A0000 -> AFFFF screen access area |
156 | ; A0000 -> AFFFF screen access area |
161 | ; B0000 -> FFFFF bios rest in peace -area |
157 | ; B0000 -> FFFFF bios rest in peace -area |
162 | ; 100000 -> 27FFFF diskette image |
158 | ; 100000 -> 27FFFF diskette image |
163 | ; 280000 -> 281FFF ramdisk fat |
159 | ; 280000 -> 281FFF ramdisk fat |
164 | ; 282000 -> 283FFF floppy fat |
160 | ; 282000 -> 283FFF floppy fat |
165 | ; |
161 | ; |
166 | ; 284000 -> 29FFFF free (112 Kb) |
162 | ; 284000 -> 29FFFF free (112 Kb) |
167 | ; |
163 | ; |
168 | ; 2A0000 -> 2B00ff wav device data |
164 | ; 2A0000 -> 2B00ff wav device data |
169 | ; 2C0000 -> 2C3fff button info |
165 | ; 2C0000 -> 2C3fff button info |
170 | ; |
166 | ; |
171 | ; 0000 word number of buttons |
167 | ; 0000 word number of buttons |
172 | ; first button entry at 0x10 |
168 | ; first button entry at 0x10 |
173 | ; +0000 word process number |
169 | ; +0000 word process number |
174 | ; +0002 word button id number : bits 00-15 |
170 | ; +0002 word button id number : bits 00-15 |
175 | ; +0004 word x start |
171 | ; +0004 word x start |
176 | ; +0006 word x size |
172 | ; +0006 word x size |
177 | ; +0008 word y start |
173 | ; +0008 word y start |
178 | ; +000A word y size |
174 | ; +000A word y size |
179 | ; +000C word button id number : bits 16-31 |
175 | ; +000C word button id number : bits 16-31 |
180 | ; |
176 | ; |
181 | ; 2C4000 -> 2CFFFF free (48Kb) |
177 | ; 2C4000 -> 2CFFFF free (48Kb) |
182 | ; |
178 | ; |
183 | ; 2D0000 -> 2DFFFF reserved port area |
179 | ; 2D0000 -> 2DFFFF reserved port area |
184 | ; |
180 | ; |
185 | ; 0000 dword no of port areas reserved |
181 | ; 0000 dword no of port areas reserved |
186 | ; 0010 dword process id |
182 | ; 0010 dword process id |
187 | ; dword start port |
183 | ; dword start port |
188 | ; dword end port |
184 | ; dword end port |
189 | ; dword 0 |
185 | ; dword 0 |
190 | ; |
186 | ; |
191 | ; 2E0000 -> 2EFFFF irq data area |
187 | ; 2E0000 -> 2EFFFF irq data area |
192 | ; 2F0000 -> 2FFFFF low memory save |
188 | ; 2F0000 -> 2FFFFF low memory save |
193 | ; |
189 | ; |
194 | ; 300000 -> 45FFFF background image, max 1,375 M |
190 | ; 300000 -> 45FFFF background image, max 1,375 M |
195 | ; |
191 | ; |
196 | ; 460000 -> 5FFFFF display info |
192 | ; 460000 -> 5FFFFF display info |
197 | ; |
193 | ; |
198 | ; 600000 -> 6FFFFF hd cache |
194 | ; 600000 -> 6FFFFF hd cache |
199 | ; |
195 | ; |
200 | ; 700000 -> 71ffff tcp memory (128 kb) |
196 | ; 700000 -> 71ffff tcp memory (128 kb) |
201 | ; 720000 -> 75ffff free (256 kb) |
197 | ; 720000 -> 75ffff free (256 kb) |
202 | ; |
198 | ; |
203 | ; 760000 -> 76ffff !vrr driver |
199 | ; 760000 -> 76ffff !vrr driver |
204 | ; 770000 -> 777fff tcp memory ( 32 kb) |
200 | ; 770000 -> 777fff tcp memory ( 32 kb) |
205 | ; |
201 | ; |
206 | ; 778000 -> 77ffff window skinning ( 32 kb) |
202 | ; 780000 -> 987FFF TSS and IO map for (8192*8)=65536 ports |
207 | ; 780000 -> 7fffff reserved to physical memory manager |
203 | ; (128+8192)*256 = 2129920 = 0x208000 |
208 | ; |
204 | ; |
209 | ; 800000 -> BFFFFF mapped to LFB |
- | |
210 | ; |
- | |
211 | ; |
- | |
212 | ; C00000 -> C01FFF draw_data - 256 entries |
205 | ; 988000 -> 98AFFF draw_data - 256 entries |
213 | ; |
206 | ; |
214 | ; 00 dword draw limit - x start |
207 | ; 00 dword draw limit - x start |
215 | ; 04 dword draw limit - y start |
208 | ; 04 dword draw limit - y start |
216 | ; 08 dword draw limit - x end |
209 | ; 08 dword draw limit - x end |
217 | ; 0C dword draw limit - y end |
210 | ; 0C dword draw limit - y end |
218 | ; |
211 | ; |
219 | ; C02000 -> C02fff free (4 Kb) |
- | |
220 | ; |
- | |
221 | ; C03000 -> D02fff sysint_stack_data |
- | |
222 | ; - ring0 stacks for ring3 processes |
- | |
223 | ; - used for interrupt handling |
- | |
224 | ; - 256 entries * 4096 step |
- | |
225 | ; |
- | |
226 | ; D03000 -> D1ffff free (116 Kb) |
- | |
227 | ; |
212 | ; |
228 | ; D20000 -> F28000 TSS and IO map for (8192*8)=65536 ports |
213 | ; 0x0098B000 -> kernel heap |
229 | ; (128+8192)*256 = 557956 = 0x88000 |
- | |
230 | ; |
214 | ; |
- | 215 | ; 0x01FFFFFF heap min limit |
|
- | 216 | ; 0x7DBFFFFF heap max limit |
|
- | 217 | ; 0x7DC00000 -> 0x7FBFFFFF LFB 32Mb |
|
- | 218 | ; 0x7DC00000 -> 0x7E3FFFFF application available LFB 8Mb |
|
- | 219 | ; 0x7E400000 -> 0x7FBFFFFF kernel LFB part 24 Mb |
|
- | 220 | ; 0x7FC00000 -> 0x7FFFFFFF page tables 4Mb |
|
231 | ; 1000000 -> 3FFFFFF for applications |
221 | ; 0x80000000 -> 0xFFFFFFFF application 2Gb |
232 | ; |
- | |
233 | - | ||
234 | - |