Rev 6263 | Rev 6333 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6263 | Rev 6318 | ||
---|---|---|---|
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
7 | 7 | ||
8 | $Revision: 6263 $ |
8 | $Revision: 6318 $ |
9 | 9 | ||
10 | 10 | ||
11 | dpl0 equ 10010000b ; data read dpl0 |
11 | dpl0 equ 10010000b ; data read dpl0 |
12 | drw0 equ 10010010b ; data read/write dpl0 |
12 | drw0 equ 10010010b ; data read/write dpl0 |
13 | drw3 equ 11110010b ; data read/write dpl3 |
13 | drw3 equ 11110010b ; data read/write dpl3 |
14 | cpl0 equ 10011010b ; code read dpl0 |
14 | cpl0 equ 10011010b ; code read dpl0 |
15 | cpl3 equ 11111010b ; code read dpl3 |
15 | cpl3 equ 11111010b ; code read dpl3 |
16 | 16 | ||
17 | D32 equ 01000000b ; 32bit segment |
17 | D32 equ 01000000b ; 32bit segment |
18 | G32 equ 10000000b ; page gran |
18 | G32 equ 10000000b ; page gran |
19 | 19 | ||
20 | 20 | ||
21 | ;;;;;;;;;;;;cpu_caps flags;;;;;;;;;;;;;;;; |
21 | ;;;;;;;;;;;;cpu_caps flags;;;;;;;;;;;;;;;; |
22 | 22 | ||
23 | CPU_386 equ 3 |
23 | CPU_386 equ 3 |
24 | CPU_486 equ 4 |
24 | CPU_486 equ 4 |
25 | CPU_PENTIUM equ 5 |
25 | CPU_PENTIUM equ 5 |
26 | CPU_P6 equ 6 |
26 | CPU_P6 equ 6 |
27 | CPU_PENTIUM4 equ 0x0F |
27 | CPU_PENTIUM4 equ 0x0F |
28 | 28 | ||
29 | CAPS_FPU equ 00 ;on-chip x87 floating point unit |
29 | CAPS_FPU equ 00 ;on-chip x87 floating point unit |
30 | CAPS_VME equ 01 ;virtual-mode enhancements |
30 | CAPS_VME equ 01 ;virtual-mode enhancements |
31 | CAPS_DE equ 02 ;debugging extensions |
31 | CAPS_DE equ 02 ;debugging extensions |
32 | CAPS_PSE equ 03 ;page-size extensions |
32 | CAPS_PSE equ 03 ;page-size extensions |
33 | CAPS_TSC equ 04 ;time stamp counter |
33 | CAPS_TSC equ 04 ;time stamp counter |
34 | CAPS_MSR equ 05 ;model-specific registers |
34 | CAPS_MSR equ 05 ;model-specific registers |
35 | CAPS_PAE equ 06 ;physical-address extensions |
35 | CAPS_PAE equ 06 ;physical-address extensions |
36 | CAPS_MCE equ 07 ;machine check exception |
36 | CAPS_MCE equ 07 ;machine check exception |
37 | CAPS_CX8 equ 08 ;CMPXCHG8B instruction |
37 | CAPS_CX8 equ 08 ;CMPXCHG8B instruction |
38 | CAPS_APIC equ 09 ;on-chip advanced programmable |
38 | CAPS_APIC equ 09 ;on-chip advanced programmable |
39 | ; interrupt controller |
39 | ; interrupt controller |
40 | ; 10 ;unused |
40 | ; 10 ;unused |
41 | CAPS_SEP equ 11 ;SYSENTER and SYSEXIT instructions |
41 | CAPS_SEP equ 11 ;SYSENTER and SYSEXIT instructions |
42 | CAPS_MTRR equ 12 ;memory-type range registers |
42 | CAPS_MTRR equ 12 ;memory-type range registers |
43 | CAPS_PGE equ 13 ;page global extension |
43 | CAPS_PGE equ 13 ;page global extension |
44 | CAPS_MCA equ 14 ;machine check architecture |
44 | CAPS_MCA equ 14 ;machine check architecture |
45 | CAPS_CMOV equ 15 ;conditional move instructions |
45 | CAPS_CMOV equ 15 ;conditional move instructions |
46 | CAPS_PAT equ 16 ;page attribute table |
46 | CAPS_PAT equ 16 ;page attribute table |
47 | 47 | ||
48 | CAPS_PSE36 equ 17 ;page-size extensions |
48 | CAPS_PSE36 equ 17 ;page-size extensions |
49 | CAPS_PSN equ 18 ;processor serial number |
49 | CAPS_PSN equ 18 ;processor serial number |
50 | CAPS_CLFLUSH equ 19 ;CLFUSH instruction |
50 | CAPS_CLFLUSH equ 19 ;CLFUSH instruction |
51 | 51 | ||
52 | CAPS_DS equ 21 ;debug store |
52 | CAPS_DS equ 21 ;debug store |
53 | CAPS_ACPI equ 22 ;thermal monitor and software |
53 | CAPS_ACPI equ 22 ;thermal monitor and software |
54 | ;controlled clock supported |
54 | ;controlled clock supported |
55 | CAPS_MMX equ 23 ;MMX instructions |
55 | CAPS_MMX equ 23 ;MMX instructions |
56 | CAPS_FXSR equ 24 ;FXSAVE and FXRSTOR instructions |
56 | CAPS_FXSR equ 24 ;FXSAVE and FXRSTOR instructions |
57 | CAPS_SSE equ 25 ;SSE instructions |
57 | CAPS_SSE equ 25 ;SSE instructions |
58 | CAPS_SSE2 equ 26 ;SSE2 instructions |
58 | CAPS_SSE2 equ 26 ;SSE2 instructions |
59 | CAPS_SS equ 27 ;self-snoop |
59 | CAPS_SS equ 27 ;self-snoop |
60 | CAPS_HTT equ 28 ;hyper-threading technology |
60 | CAPS_HTT equ 28 ;hyper-threading technology |
61 | CAPS_TM equ 29 ;thermal monitor supported |
61 | CAPS_TM equ 29 ;thermal monitor supported |
62 | CAPS_IA64 equ 30 ;IA64 capabilities |
62 | CAPS_IA64 equ 30 ;IA64 capabilities |
63 | CAPS_PBE equ 31 ;pending break enable |
63 | CAPS_PBE equ 31 ;pending break enable |
64 | 64 | ||
65 | ;ecx |
65 | ;ecx |
66 | CAPS_SSE3 equ 32 ;SSE3 instructions |
66 | CAPS_SSE3 equ 32 ;SSE3 instructions |
67 | ; 33 |
67 | ; 33 |
68 | ; 34 |
68 | ; 34 |
69 | CAPS_MONITOR equ 35 ;MONITOR/MWAIT instructions |
69 | CAPS_MONITOR equ 35 ;MONITOR/MWAIT instructions |
70 | CAPS_DS_CPL equ 36 ; |
70 | CAPS_DS_CPL equ 36 ; |
71 | CAPS_VMX equ 37 ;virtual mode extensions |
71 | CAPS_VMX equ 37 ;virtual mode extensions |
72 | ; 38 ; |
72 | ; 38 ; |
73 | CAPS_EST equ 39 ;enhansed speed step |
73 | CAPS_EST equ 39 ;enhansed speed step |
74 | CAPS_TM2 equ 40 ;thermal monitor2 supported |
74 | CAPS_TM2 equ 40 ;thermal monitor2 supported |
75 | ; 41 |
75 | ; 41 |
76 | CAPS_CID equ 42 ; |
76 | CAPS_CID equ 42 ; |
77 | ; 43 |
77 | ; 43 |
78 | ; 44 |
78 | ; 44 |
79 | CAPS_CX16 equ 45 ;CMPXCHG16B instruction |
79 | CAPS_CX16 equ 45 ;CMPXCHG16B instruction |
80 | CAPS_xTPR equ 46 ; |
80 | CAPS_xTPR equ 46 ; |
81 | ; |
81 | ; |
82 | ;reserved |
82 | ;reserved |
83 | ; |
83 | ; |
84 | ;ext edx /ecx |
84 | ;ext edx /ecx |
85 | CAPS_SYSCAL equ 64 ; |
85 | CAPS_SYSCAL equ 64 ; |
86 | CAPS_XD equ 65 ;execution disable |
86 | CAPS_XD equ 65 ;execution disable |
87 | CAPS_FFXSR equ 66 ; |
87 | CAPS_FFXSR equ 66 ; |
88 | CAPS_RDTSCP equ 67 ; |
88 | CAPS_RDTSCP equ 67 ; |
89 | CAPS_X64 equ 68 ; |
89 | CAPS_X64 equ 68 ; |
90 | CAPS_3DNOW equ 69 ; |
90 | CAPS_3DNOW equ 69 ; |
91 | CAPS_3DNOWEXT equ 70 ; |
91 | CAPS_3DNOWEXT equ 70 ; |
92 | CAPS_LAHF equ 71 ; |
92 | CAPS_LAHF equ 71 ; |
93 | CAPS_CMP_LEG equ 72 ; |
93 | CAPS_CMP_LEG equ 72 ; |
94 | CAPS_SVM equ 73 ;secure virual machine |
94 | CAPS_SVM equ 73 ;secure virual machine |
95 | CAPS_ALTMOVCR8 equ 74 ; |
95 | CAPS_ALTMOVCR8 equ 74 ; |
96 | 96 | ||
97 | ; CPU MSR names |
97 | ; CPU MSR names |
98 | MSR_SYSENTER_CS equ 0x174 |
98 | MSR_SYSENTER_CS equ 0x174 |
99 | MSR_SYSENTER_ESP equ 0x175 |
99 | MSR_SYSENTER_ESP equ 0x175 |
100 | MSR_SYSENTER_EIP equ 0x176 |
100 | MSR_SYSENTER_EIP equ 0x176 |
101 | MSR_CR_PAT equ 0x277 |
101 | MSR_CR_PAT equ 0x277 |
102 | MSR_MTRR_DEF_TYPE equ 0x2FF |
102 | MSR_MTRR_DEF_TYPE equ 0x2FF |
103 | 103 | ||
104 | MSR_AMD_EFER equ 0xC0000080 ; Extended Feature Enable Register |
104 | MSR_AMD_EFER equ 0xC0000080 ; Extended Feature Enable Register |
105 | MSR_AMD_STAR equ 0xC0000081 ; SYSCALL/SYSRET Target Address Register |
105 | MSR_AMD_STAR equ 0xC0000081 ; SYSCALL/SYSRET Target Address Register |
106 | 106 | ||
107 | CR0_PE equ 0x00000001 ;protected mode |
107 | CR0_PE equ 0x00000001 ;protected mode |
108 | CR0_MP equ 0x00000002 ;monitor fpu |
108 | CR0_MP equ 0x00000002 ;monitor fpu |
109 | CR0_EM equ 0x00000004 ;fpu emulation |
109 | CR0_EM equ 0x00000004 ;fpu emulation |
110 | CR0_TS equ 0x00000008 ;task switch |
110 | CR0_TS equ 0x00000008 ;task switch |
111 | CR0_ET equ 0x00000010 ;extension type hardcoded to 1 |
111 | CR0_ET equ 0x00000010 ;extension type hardcoded to 1 |
112 | CR0_NE equ 0x00000020 ;numeric error |
112 | CR0_NE equ 0x00000020 ;numeric error |
113 | CR0_WP equ 0x00010000 ;write protect |
113 | CR0_WP equ 0x00010000 ;write protect |
114 | CR0_AM equ 0x00040000 ;alignment check |
114 | CR0_AM equ 0x00040000 ;alignment check |
115 | CR0_NW equ 0x20000000 ;not write-through |
115 | CR0_NW equ 0x20000000 ;not write-through |
116 | CR0_CD equ 0x40000000 ;cache disable |
116 | CR0_CD equ 0x40000000 ;cache disable |
117 | CR0_PG equ 0x80000000 ;paging |
117 | CR0_PG equ 0x80000000 ;paging |
118 | 118 | ||
119 | 119 | ||
120 | CR4_VME equ 0x0001 |
120 | CR4_VME equ 0x0001 |
121 | CR4_PVI equ 0x0002 |
121 | CR4_PVI equ 0x0002 |
122 | CR4_TSD equ 0x0004 |
122 | CR4_TSD equ 0x0004 |
123 | CR4_DE equ 0x0008 |
123 | CR4_DE equ 0x0008 |
124 | CR4_PSE equ 0x0010 |
124 | CR4_PSE equ 0x0010 |
125 | CR4_PAE equ 0x0020 |
125 | CR4_PAE equ 0x0020 |
126 | CR4_MCE equ 0x0040 |
126 | CR4_MCE equ 0x0040 |
127 | CR4_PGE equ 0x0080 |
127 | CR4_PGE equ 0x0080 |
128 | CR4_PCE equ 0x0100 |
128 | CR4_PCE equ 0x0100 |
129 | CR4_OSFXSR equ 0x0200 |
129 | CR4_OSFXSR equ 0x0200 |
130 | CR4_OSXMMEXPT equ 0x0400 |
130 | CR4_OSXMMEXPT equ 0x0400 |
131 | 131 | ||
132 | SSE_IE equ 0x0001 |
132 | SSE_IE equ 0x0001 |
133 | SSE_DE equ 0x0002 |
133 | SSE_DE equ 0x0002 |
134 | SSE_ZE equ 0x0004 |
134 | SSE_ZE equ 0x0004 |
135 | SSE_OE equ 0x0008 |
135 | SSE_OE equ 0x0008 |
136 | SSE_UE equ 0x0010 |
136 | SSE_UE equ 0x0010 |
137 | SSE_PE equ 0x0020 |
137 | SSE_PE equ 0x0020 |
138 | SSE_DAZ equ 0x0040 |
138 | SSE_DAZ equ 0x0040 |
139 | SSE_IM equ 0x0080 |
139 | SSE_IM equ 0x0080 |
140 | SSE_DM equ 0x0100 |
140 | SSE_DM equ 0x0100 |
141 | SSE_ZM equ 0x0200 |
141 | SSE_ZM equ 0x0200 |
142 | SSE_OM equ 0x0400 |
142 | SSE_OM equ 0x0400 |
143 | SSE_UM equ 0x0800 |
143 | SSE_UM equ 0x0800 |
144 | SSE_PM equ 0x1000 |
144 | SSE_PM equ 0x1000 |
145 | SSE_FZ equ 0x8000 |
145 | SSE_FZ equ 0x8000 |
146 | 146 | ||
147 | SSE_INIT equ (SSE_IM+SSE_DM+SSE_ZM+SSE_OM+SSE_UM+SSE_PM) |
147 | SSE_INIT equ (SSE_IM+SSE_DM+SSE_ZM+SSE_OM+SSE_UM+SSE_PM) |
148 | 148 | ||
149 | IRQ_PIC equ 0 |
149 | IRQ_PIC equ 0 |
150 | IRQ_APIC equ 1 |
150 | IRQ_APIC equ 1 |
151 | 151 | ||
152 | struct TSS |
152 | struct TSS |
153 | _back rw 2 |
153 | _back rw 2 |
154 | _esp0 rd 1 |
154 | _esp0 rd 1 |
155 | _ss0 rw 2 |
155 | _ss0 rw 2 |
156 | _esp1 rd 1 |
156 | _esp1 rd 1 |
157 | _ss1 rw 2 |
157 | _ss1 rw 2 |
158 | _esp2 rd 1 |
158 | _esp2 rd 1 |
159 | _ss2 rw 2 |
159 | _ss2 rw 2 |
160 | _cr3 rd 1 |
160 | _cr3 rd 1 |
161 | _eip rd 1 |
161 | _eip rd 1 |
162 | _eflags rd 1 |
162 | _eflags rd 1 |
163 | _eax rd 1 |
163 | _eax rd 1 |
164 | _ecx rd 1 |
164 | _ecx rd 1 |
165 | _edx rd 1 |
165 | _edx rd 1 |
166 | _ebx rd 1 |
166 | _ebx rd 1 |
167 | _esp rd 1 |
167 | _esp rd 1 |
168 | _ebp rd 1 |
168 | _ebp rd 1 |
169 | _esi rd 1 |
169 | _esi rd 1 |
170 | _edi rd 1 |
170 | _edi rd 1 |
171 | _es rw 2 |
171 | _es rw 2 |
172 | _cs rw 2 |
172 | _cs rw 2 |
173 | _ss rw 2 |
173 | _ss rw 2 |
174 | _ds rw 2 |
174 | _ds rw 2 |
175 | _fs rw 2 |
175 | _fs rw 2 |
176 | _gs rw 2 |
176 | _gs rw 2 |
177 | _ldt rw 2 |
177 | _ldt rw 2 |
178 | _trap rw 1 |
178 | _trap rw 1 |
179 | _io rw 1 |
179 | _io rw 1 |
180 | rb 24 |
180 | rb 24 |
181 | _io_map_0 rb 4096 |
181 | _io_map_0 rb 4096 |
182 | _io_map_1 rb 4096 |
182 | _io_map_1 rb 4096 |
183 | ends |
183 | ends |
184 | 184 | ||
185 | DRIVE_DATA_SIZE equ 16 |
185 | DRIVE_DATA_SIZE equ 16 |
186 | 186 | ||
187 | OS_BASE equ 0x80000000 |
187 | OS_BASE equ 0x80000000 |
188 | 188 | ||
189 | window_data equ (OS_BASE+0x0001000) |
189 | window_data equ (OS_BASE+0x0001000) |
190 | 190 | ||
191 | CURRENT_TASK equ (OS_BASE+0x0003000) |
191 | CURRENT_TASK equ (OS_BASE+0x0003000) |
192 | TASK_COUNT equ (OS_BASE+0x0003004) |
192 | TASK_COUNT equ (OS_BASE+0x0003004) |
193 | TASK_BASE equ (OS_BASE+0x0003010) |
193 | TASK_BASE equ (OS_BASE+0x0003010) |
194 | TASK_DATA equ (OS_BASE+0x0003020) |
194 | TASK_DATA equ (OS_BASE+0x0003020) |
195 | TASK_EVENT equ (OS_BASE+0x0003020) |
195 | TASK_EVENT equ (OS_BASE+0x0003020) |
196 | 196 | ||
197 | CDDataBuf equ (OS_BASE+0x0005000) |
197 | CDDataBuf equ (OS_BASE+0x0005000) |
198 | 198 | ||
199 | ;unused 0x6000 - 0x8fff |
199 | ;unused 0x6000 - 0x8fff |
200 | 200 | ||
201 | BOOT_VARS equ (OS_BASE) ;0x9000 |
201 | BOOT_VARS equ (OS_BASE) ;0x9000 |
202 | 202 | ||
203 | idts equ (OS_BASE+0x000B100) |
203 | idts equ (OS_BASE+0x000B100) |
204 | WIN_STACK equ (OS_BASE+0x000C000) |
204 | WIN_STACK equ (OS_BASE+0x000C000) |
205 | WIN_POS equ (OS_BASE+0x000C400) |
205 | WIN_POS equ (OS_BASE+0x000C400) |
206 | FDD_BUFF equ (OS_BASE+0x000D000) ;512 |
206 | FDD_BUFF equ (OS_BASE+0x000D000) ;512 |
207 | 207 | ||
208 | WIN_TEMP_XY equ (OS_BASE+0x000F300) |
208 | WIN_TEMP_XY equ (OS_BASE+0x000F300) |
209 | KEY_COUNT equ (OS_BASE+0x000F400) |
209 | KEY_COUNT equ (OS_BASE+0x000F400) |
210 | KEY_BUFF equ (OS_BASE+0x000F401) ; 120*2 + 2*2 = 244 bytes, actually 255 bytes |
210 | KEY_BUFF equ (OS_BASE+0x000F401) ; 120*2 + 2*2 = 244 bytes, actually 255 bytes |
211 | 211 | ||
212 | BTN_COUNT equ (OS_BASE+0x000F500) |
212 | BTN_COUNT equ (OS_BASE+0x000F500) |
213 | BTN_BUFF equ (OS_BASE+0x000F501) |
213 | BTN_BUFF equ (OS_BASE+0x000F501) |
214 | 214 | ||
215 | 215 | ||
216 | BTN_ADDR equ (OS_BASE+0x000FE88) |
216 | BTN_ADDR equ (OS_BASE+0x000FE88) |
217 | MEM_AMOUNT equ (OS_BASE+0x000FE8C) |
217 | MEM_AMOUNT equ (OS_BASE+0x000FE8C) |
218 | 218 | ||
219 | SYS_SHUTDOWN equ (OS_BASE+0x000FF00) |
219 | SYS_SHUTDOWN equ (OS_BASE+0x000FF00) |
220 | TASK_ACTIVATE equ (OS_BASE+0x000FF01) |
220 | TASK_ACTIVATE equ (OS_BASE+0x000FF01) |
221 | 221 | ||
222 | 222 | ||
223 | TMP_STACK_TOP equ 0x006CC00 |
223 | TMP_STACK_TOP equ 0x006CC00 |
224 | 224 | ||
225 | sys_proc equ (OS_BASE+0x006F000) |
225 | sys_proc equ (OS_BASE+0x006F000) |
226 | 226 | ||
227 | SLOT_BASE equ (OS_BASE+0x0080000) |
227 | SLOT_BASE equ (OS_BASE+0x0080000) |
228 | 228 | ||
229 | VGABasePtr equ (OS_BASE+0x00A0000) |
229 | VGABasePtr equ (OS_BASE+0x00A0000) |
230 | 230 | ||
231 | CLEAN_ZONE equ (_CLEAN_ZONE-OS_BASE) |
231 | CLEAN_ZONE equ (_CLEAN_ZONE-OS_BASE) |
232 | 232 | ||
233 | UPPER_KERNEL_PAGES equ (OS_BASE+0x0400000) |
233 | UPPER_KERNEL_PAGES equ (OS_BASE+0x0400000) |
234 | 234 | ||
235 | virtual at (OS_BASE+0x05FFF80) |
235 | virtual at (OS_BASE+0x05FFF80) |
236 | tss TSS |
236 | tss TSS |
237 | end virtual |
237 | end virtual |
238 | 238 | ||
239 | HEAP_BASE equ (OS_BASE+0x0800000) |
239 | HEAP_BASE equ (OS_BASE+0x0800000) |
240 | HEAP_MIN_SIZE equ 0x01000000 |
240 | HEAP_MIN_SIZE equ 0x01000000 |
241 | 241 | ||
242 | page_tabs equ 0xFDC00000 |
242 | page_tabs equ 0xFDC00000 |
243 | app_page_tabs equ 0xFDC00000 |
243 | app_page_tabs equ 0xFDC00000 |
244 | kernel_tabs equ (page_tabs+ (OS_BASE shr 10)) ;0xFDE00000 |
244 | kernel_tabs equ (page_tabs+ (OS_BASE shr 10)) ;0xFDE00000 |
245 | master_tab equ (page_tabs+ (page_tabs shr 10)) ;0xFDFF70000 |
245 | master_tab equ (page_tabs+ (page_tabs shr 10)) ;0xFDFF70000 |
246 | 246 | ||
247 | LFB_BASE equ 0xFE000000 |
247 | LFB_BASE equ 0xFE000000 |
248 | 248 | ||
249 | 249 | ||
250 | new_app_base equ 0; |
250 | new_app_base equ 0; |
251 | 251 | ||
252 | twdw equ 0x2000 ;(CURRENT_TASK-window_data) |
252 | twdw equ 0x2000 ;(CURRENT_TASK-window_data) |
253 | 253 | ||
254 | std_application_base_address equ new_app_base |
254 | std_application_base_address equ new_app_base |
255 | RING0_STACK_SIZE equ (0x2000 - 512) ;512 байт для контекста FPU |
255 | RING0_STACK_SIZE equ (0x2000 - 512) ;512 байт для контекста FPU |
256 | 256 | ||
257 | REG_SS equ (RING0_STACK_SIZE-4) |
257 | REG_SS equ (RING0_STACK_SIZE-4) |
258 | REG_APP_ESP equ (RING0_STACK_SIZE-8) |
258 | REG_APP_ESP equ (RING0_STACK_SIZE-8) |
259 | REG_EFLAGS equ (RING0_STACK_SIZE-12) |
259 | REG_EFLAGS equ (RING0_STACK_SIZE-12) |
260 | REG_CS equ (RING0_STACK_SIZE-16) |
260 | REG_CS equ (RING0_STACK_SIZE-16) |
261 | REG_EIP equ (RING0_STACK_SIZE-20) |
261 | REG_EIP equ (RING0_STACK_SIZE-20) |
262 | REG_EAX equ (RING0_STACK_SIZE-24) |
262 | REG_EAX equ (RING0_STACK_SIZE-24) |
263 | REG_ECX equ (RING0_STACK_SIZE-28) |
263 | REG_ECX equ (RING0_STACK_SIZE-28) |
264 | REG_EDX equ (RING0_STACK_SIZE-32) |
264 | REG_EDX equ (RING0_STACK_SIZE-32) |
265 | REG_EBX equ (RING0_STACK_SIZE-36) |
265 | REG_EBX equ (RING0_STACK_SIZE-36) |
266 | REG_ESP equ (RING0_STACK_SIZE-40) ;RING0_STACK_SIZE-20 |
266 | REG_ESP equ (RING0_STACK_SIZE-40) ;RING0_STACK_SIZE-20 |
267 | REG_EBP equ (RING0_STACK_SIZE-44) |
267 | REG_EBP equ (RING0_STACK_SIZE-44) |
268 | REG_ESI equ (RING0_STACK_SIZE-48) |
268 | REG_ESI equ (RING0_STACK_SIZE-48) |
269 | REG_EDI equ (RING0_STACK_SIZE-52) |
269 | REG_EDI equ (RING0_STACK_SIZE-52) |
270 | REG_RET equ (RING0_STACK_SIZE-56) ;irq0.return |
270 | REG_RET equ (RING0_STACK_SIZE-56) ;irq0.return |
271 | 271 | ||
272 | 272 | ||
273 | PAGE_SIZE equ 4096 |
273 | PAGE_SIZE equ 4096 |
274 | 274 | ||
275 | PG_UNMAP equ 0x000 |
275 | PG_UNMAP equ 0x000 |
276 | PG_READ equ 0x001 |
276 | PG_READ equ 0x001 |
277 | PG_WRITE equ 0x002 |
277 | PG_WRITE equ 0x002 |
278 | PG_USER equ 0x004 |
278 | PG_USER equ 0x004 |
279 | PG_PCD equ 0x008 |
279 | PG_PCD equ 0x008 |
280 | PG_PWT equ 0x010 |
280 | PG_PWT equ 0x010 |
281 | PG_ACCESSED equ 0x020 |
281 | PG_ACCESSED equ 0x020 |
282 | PG_DIRTY equ 0x040 |
282 | PG_DIRTY equ 0x040 |
283 | PG_PAT equ 0x080 |
283 | PG_PAT equ 0x080 |
284 | PG_GLOBAL equ 0x100 |
284 | PG_GLOBAL equ 0x100 |
285 | PG_SHARED equ 0x200 |
285 | PG_SHARED equ 0x200 |
286 | 286 | ||
287 | PG_SWR equ 0x003 ; (PG_WRITE+PG_READ) |
287 | PG_SWR equ 0x003 ; (PG_WRITE+PG_READ) |
288 | PG_UR equ 0x005 ; (PG_USER+PG_READ) |
288 | PG_UR equ 0x005 ; (PG_USER+PG_READ) |
289 | PG_UWR equ 0x007 ; (PG_USER+PG_WRITE+PG_READ) |
289 | PG_UWR equ 0x007 ; (PG_USER+PG_WRITE+PG_READ) |
290 | PG_NOCACHE equ 0x018 ; (PG_PCD+PG_PWT) |
290 | PG_NOCACHE equ 0x018 ; (PG_PCD+PG_PWT) |
291 | 291 | ||
292 | PDE_LARGE equ 0x080 |
292 | PDE_LARGE equ 0x080 |
293 | 293 | ||
294 | PAT_WB equ 0x000 |
294 | PAT_WB equ 0x000 |
295 | PAT_WC equ 0x008 |
295 | PAT_WC equ 0x008 |
296 | PAT_UCM equ 0x010 |
296 | PAT_UCM equ 0x010 |
297 | PAT_UC equ 0x018 |
297 | PAT_UC equ 0x018 |
298 | 298 | ||
299 | PAT_TYPE_UC equ 0 |
299 | PAT_TYPE_UC equ 0 |
300 | PAT_TYPE_WC equ 1 |
300 | PAT_TYPE_WC equ 1 |
301 | PAT_TYPE_WB equ 6 |
301 | PAT_TYPE_WB equ 6 |
302 | PAT_TYPE_UCM equ 7 |
302 | PAT_TYPE_UCM equ 7 |
303 | 303 | ||
304 | PAT_VALUE equ 0x00070106; (UC<<24)|(UCM<<16)|(WC<<8)|WB |
304 | PAT_VALUE equ 0x00070106; (UC<<24)|(UCM<<16)|(WC<<8)|WB |
305 | 305 | ||
306 | ;;;;;;;;;;;boot time variables |
306 | ;;;;;;;;;;;boot time variables |
307 | 307 | ||
308 | BOOT_BPP equ 0x9000 ;byte bits per pixel |
308 | BOOT_BPP equ 0x9000 ;byte bits per pixel |
309 | BOOT_PITCH equ 0x9001 ;word scanline length |
309 | BOOT_PITCH equ 0x9001 ;word scanline length |
310 | BOOT_VESA_MODE equ 0x9008 ;word vesa video mode |
310 | BOOT_VESA_MODE equ 0x9008 ;word vesa video mode |
311 | BOOT_X_RES equ 0x900A ;word X res |
311 | BOOT_X_RES equ 0x900A ;word X res |
312 | BOOT_Y_RES equ 0x900C ;word Y res |
312 | BOOT_Y_RES equ 0x900C ;word Y res |
313 | BOOT_BANK_SW equ 0x9014 ;dword Vesa 1.2 pm bank switch |
313 | BOOT_BANK_SW equ 0x9014 ;dword Vesa 1.2 pm bank switch |
314 | BOOT_LFB equ 0x9018 ;dword Vesa 2.0 LFB address |
314 | BOOT_LFB equ 0x9018 ;dword Vesa 2.0 LFB address |
315 | BOOT_MTRR equ 0x901C ;byte 0 or 1 : enable MTRR graphics acceleration |
315 | BOOT_MTRR equ 0x901C ;byte 0 or 1 : enable MTRR graphics acceleration |
316 | ;BOOT_LOG equ 0x901D ;byte not used anymore (0 or 1 : enable system log display) |
316 | ;BOOT_LOG equ 0x901D ;byte not used anymore (0 or 1 : enable system log display) |
317 | BOOT_LAUNCHER_START equ 0x901D ;byte (0 or 1) start the first app (right now it's LAUNCHER) after kernel is loaded? |
317 | BOOT_LAUNCHER_START equ 0x901D ;byte (0 or 1) start the first app (right now it's LAUNCHER) after kernel is loaded? |
318 | ;BOOT_DIRECT_LFB equ 0x901E ;byte 0 or 1 : enable direct lfb write, paging disabled |
318 | ;BOOT_DIRECT_LFB equ 0x901E ;byte 0 or 1 : enable direct lfb write, paging disabled |
319 | BOOT_DEBUG_PRINT equ 0x901E ;byte If nonzero, duplicates debug output to the screen. |
319 | BOOT_DEBUG_PRINT equ 0x901E ;byte If nonzero, duplicates debug output to the screen. |
320 | BOOT_DMA equ 0x901F ; |
320 | BOOT_DMA equ 0x901F ; |
321 | BOOT_PCI_DATA equ 0x9020 ;8bytes pci data |
321 | BOOT_PCI_DATA equ 0x9020 ;8bytes pci data |
322 | BOOT_VRR equ 0x9030 ;byte VRR start enabled 1, 2-no |
322 | BOOT_VRR equ 0x9030 ;byte VRR start enabled 1, 2-no |
323 | ;BOOT_IDE_BASE_ADDR equ 0x9031 ;word IDEContrRegsBaseAddr ; now free and is not used |
323 | ;BOOT_IDE_BASE_ADDR equ 0x9031 ;word IDEContrRegsBaseAddr ; now free and is not used |
324 | BOOT_MEM_AMOUNT equ 0x9034 ;dword memory amount |
324 | BOOT_MEM_AMOUNT equ 0x9034 ;dword memory amount |
325 | 325 | ||
326 | BOOT_APM_ENTRY equ 0x9040 |
326 | BOOT_APM_ENTRY equ 0x9040 |
327 | BOOT_APM_VERSION equ 0x9044 |
327 | BOOT_APM_VERSION equ 0x9044 |
328 | BOOT_APM_FLAGS equ 0x9046 ;unused |
328 | BOOT_APM_FLAGS equ 0x9046 ;unused |
329 | BOOT_APM_CODE_32 equ 0x9050 |
329 | BOOT_APM_CODE_32 equ 0x9050 |
330 | BOOT_APM_CODE_16 equ 0x9052 |
330 | BOOT_APM_CODE_16 equ 0x9052 |
331 | BOOT_APM_DATA_16 equ 0x9054 |
331 | BOOT_APM_DATA_16 equ 0x9054 |
332 | ;BOOT_IDE_BAR0_16 equ 0x9056 ; now free and is not used |
332 | ;BOOT_IDE_BAR0_16 equ 0x9056 ; now free and is not used |
333 | ;BOOT_IDE_BAR1_16 equ 0x9058 ; now free and is not used |
333 | ;BOOT_IDE_BAR1_16 equ 0x9058 ; now free and is not used |
334 | ;BOOT_IDE_BAR2_16 equ 0x905A ; now free and is not used |
334 | ;BOOT_IDE_BAR2_16 equ 0x905A ; now free and is not used |
335 | ;BOOT_IDE_BAR3_16 equ 0x905C ; now free and is not used |
335 | ;BOOT_IDE_BAR3_16 equ 0x905C ; now free and is not used |
336 | ;BOOT_IDE_PI_16 equ 0x905E ; now free and is not used |
336 | ;BOOT_IDE_PI_16 equ 0x905E ; now free and is not used |
337 | ;BOOT_IDE_INTERR_16 equ 0x9060 ; now free and is not used |
337 | ;BOOT_IDE_INTERR_16 equ 0x9060 ; now free and is not used |
338 | 338 | ||
339 | TMP_FILE_NAME equ 0 |
339 | TMP_FILE_NAME equ 0 |
340 | TMP_CMD_LINE equ 1024 |
340 | TMP_CMD_LINE equ 1024 |
341 | TMP_ICON_OFFS equ 1280 |
341 | TMP_ICON_OFFS equ 1280 |
342 | 342 | ||
343 | 343 | ||
344 | EVENT_REDRAW equ 0x00000001 |
344 | EVENT_REDRAW equ 0x00000001 |
345 | EVENT_KEY equ 0x00000002 |
345 | EVENT_KEY equ 0x00000002 |
346 | EVENT_BUTTON equ 0x00000004 |
346 | EVENT_BUTTON equ 0x00000004 |
347 | EVENT_BACKGROUND equ 0x00000010 |
347 | EVENT_BACKGROUND equ 0x00000010 |
348 | EVENT_MOUSE equ 0x00000020 |
348 | EVENT_MOUSE equ 0x00000020 |
349 | EVENT_IPC equ 0x00000040 |
349 | EVENT_IPC equ 0x00000040 |
350 | EVENT_NETWORK equ 0x00000080 |
350 | EVENT_NETWORK equ 0x00000080 |
351 | EVENT_DEBUG equ 0x00000100 |
351 | EVENT_DEBUG equ 0x00000100 |
352 | EVENT_NETWORK2 equ 0x00000200 |
352 | EVENT_NETWORK2 equ 0x00000200 |
353 | EVENT_EXTENDED equ 0x00000400 |
353 | EVENT_EXTENDED equ 0x00000400 |
354 | 354 | ||
355 | EV_INTR equ 1 |
355 | EV_INTR equ 1 |
356 | 356 | ||
357 | STDIN_FILENO equ 0 |
357 | STDIN_FILENO equ 0 |
358 | STDOUT_FILENO equ 1 |
358 | STDOUT_FILENO equ 1 |
359 | STDERR_FILENO equ 2 |
359 | STDERR_FILENO equ 2 |
360 | 360 | ||
361 | SYSTEM_SHUTDOWN equ 2 |
361 | SYSTEM_SHUTDOWN equ 2 |
362 | SYSTEM_REBOOT equ 3 |
362 | SYSTEM_REBOOT equ 3 |
363 | SYSTEM_RESTART equ 4 |
363 | SYSTEM_RESTART equ 4 |
364 | 364 | ||
365 | struct SYSCALL_STACK |
365 | struct SYSCALL_STACK |
366 | _eip dd ? |
366 | _eip dd ? |
367 | _edi dd ? ; +4 |
367 | _edi dd ? ; +4 |
368 | _esi dd ? ; +8 |
368 | _esi dd ? ; +8 |
369 | _ebp dd ? ; +12 |
369 | _ebp dd ? ; +12 |
370 | _esp dd ? ; +16 |
370 | _esp dd ? ; +16 |
371 | _ebx dd ? ; +20 |
371 | _ebx dd ? ; +20 |
372 | _edx dd ? ; +24 |
372 | _edx dd ? ; +24 |
373 | _ecx dd ? ; +28 |
373 | _ecx dd ? ; +28 |
374 | _eax dd ? ; +32 |
374 | _eax dd ? ; +32 |
375 | ends |
375 | ends |
376 | 376 | ||
377 | struct LHEAD |
377 | struct LHEAD |
378 | next dd ? ;next object in list |
378 | next dd ? ;next object in list |
379 | prev dd ? ;prev object in list |
379 | prev dd ? ;prev object in list |
380 | ends |
380 | ends |
381 | 381 | ||
382 | struct MUTEX_WAITER |
382 | struct MUTEX_WAITER |
383 | list LHEAD |
383 | list LHEAD |
384 | task dd ? |
384 | task dd ? |
385 | type dd ? |
385 | type dd ? |
386 | ends |
386 | ends |
387 | 387 | ||
388 | struct MUTEX |
388 | struct MUTEX |
389 | wait_list LHEAD |
389 | wait_list LHEAD |
390 | count dd ? |
390 | count dd ? |
391 | ends |
391 | ends |
392 | 392 | ||
393 | struct RWSEM |
393 | struct RWSEM |
394 | wait_list LHEAD |
394 | wait_list LHEAD |
395 | count dd ? |
395 | count dd ? |
396 | ends |
396 | ends |
397 | 397 | ||
398 | struct FUTEX |
398 | struct FUTEX |
399 | list LHEAD |
399 | list LHEAD |
400 | magic dd ? |
400 | magic dd ? |
401 | handle dd ? |
401 | handle dd ? |
402 | destroy dd ? |
402 | destroy dd ? |
403 | 403 | ||
404 | wait_list LHEAD |
404 | wait_list LHEAD |
405 | pointer dd ? |
405 | pointer dd ? |
406 | flags dd ? |
406 | flags dd ? |
407 | ends |
407 | ends |
408 | 408 | ||
409 | FUTEX_INIT equ 0 |
409 | FUTEX_INIT equ 0 |
410 | FUTEX_DESTROY equ 1 |
410 | FUTEX_DESTROY equ 1 |
411 | FUTEX_WAIT equ 2 |
411 | FUTEX_WAIT equ 2 |
412 | FUTEX_WAKE equ 3 |
412 | FUTEX_WAKE equ 3 |
413 | 413 | ||
414 | struct PROC |
414 | struct PROC |
415 | list LHEAD |
415 | list LHEAD |
416 | thr_list LHEAD |
416 | thr_list LHEAD |
417 | heap_lock MUTEX |
417 | heap_lock MUTEX |
418 | heap_base rd 1 |
418 | heap_base rd 1 |
419 | heap_top rd 1 |
419 | heap_top rd 1 |
420 | mem_used rd 1 |
420 | mem_used rd 1 |
421 | dlls_list_ptr rd 1 |
421 | dlls_list_ptr rd 1 |
422 | pdt_0_phys rd 1 |
422 | pdt_0_phys rd 1 |
423 | pdt_1_phys rd 1 |
423 | pdt_1_phys rd 1 |
424 | io_map_0 rd 1 |
424 | io_map_0 rd 1 |
425 | io_map_1 rd 1 |
425 | io_map_1 rd 1 |
426 | 426 | ||
427 | ht_lock rd 1 |
427 | ht_lock rd 1 |
428 | ht_free rd 1 ;htab[0] stdin |
428 | ht_free rd 1 ;htab[0] stdin |
429 | ht_next rd 1 ;htab[1] stdout |
429 | ht_next rd 1 ;htab[1] stdout |
430 | htab rd (4096-$)/4 ;htab[2] stderr |
430 | htab rd (4096-$)/4 ;htab[2] stderr |
431 | pdt_0 rd 1024 |
431 | pdt_0 rd 1024 |
432 | ends |
432 | ends |
433 | 433 | ||
434 | struct DBG_REGS |
434 | struct DBG_REGS |
435 | dr0 dd ? |
435 | dr0 dd ? |
436 | dr1 dd ? |
436 | dr1 dd ? |
437 | dr2 dd ? |
437 | dr2 dd ? |
438 | dr3 dd ? |
438 | dr3 dd ? |
439 | dr7 dd ? |
439 | dr7 dd ? |
440 | ends |
440 | ends |
441 | 441 | ||
442 | struct POINT |
442 | struct POINT |
443 | x dd ? |
443 | x dd ? |
444 | y dd ? |
444 | y dd ? |
445 | ends |
445 | ends |
446 | 446 | ||
447 | struct RECT |
447 | struct RECT |
448 | left dd ? |
448 | left dd ? |
449 | top dd ? |
449 | top dd ? |
450 | right dd ? |
450 | right dd ? |
451 | bottom dd ? |
451 | bottom dd ? |
452 | ends |
452 | ends |
453 | 453 | ||
454 | struct BOX |
454 | struct BOX |
455 | left dd ? |
455 | left dd ? |
456 | top dd ? |
456 | top dd ? |
457 | width dd ? |
457 | width dd ? |
458 | height dd ? |
458 | height dd ? |
459 | ends |
459 | ends |
460 | 460 | ||
461 | struct APPDATA |
461 | struct APPDATA |
462 | app_name rb 11 |
462 | app_name rb 11 |
463 | rb 5 |
463 | rb 5 |
464 | 464 | ||
465 | list LHEAD ;+16 |
465 | list LHEAD ;+16 |
466 | process dd ? ;+24 |
466 | process dd ? ;+24 |
467 | fpu_state dd ? ;+28 |
467 | fpu_state dd ? ;+28 |
468 | exc_handler dd ? ;+32 |
468 | exc_handler dd ? ;+32 |
469 | except_mask dd ? ;+36 |
469 | except_mask dd ? ;+36 |
470 | pl0_stack dd ? ;+40 |
470 | pl0_stack dd ? ;+40 |
471 | cursor dd ? ;+44 |
471 | cursor dd ? ;+44 |
472 | fd_ev dd ? ;+48 |
472 | fd_ev dd ? ;+48 |
473 | bk_ev dd ? ;+52 |
473 | bk_ev dd ? ;+52 |
474 | fd_obj dd ? ;+56 |
474 | fd_obj dd ? ;+56 |
475 | bk_obj dd ? ;+60 |
475 | bk_obj dd ? ;+60 |
476 | saved_esp dd ? ;+64 |
476 | saved_esp dd ? ;+64 |
477 | io_map rd 2 ;+68 |
477 | io_map rd 2 ;+68 |
478 | dbg_state dd ? ;+76 |
478 | dbg_state dd ? ;+76 |
479 | cur_dir dd ? ;+80 |
479 | cur_dir dd ? ;+80 |
480 | wait_timeout dd ? ;+84 |
480 | wait_timeout dd ? ;+84 |
481 | saved_esp0 dd ? ;+88 |
481 | saved_esp0 dd ? ;+88 |
482 | wait_begin dd ? ;+92 +++ |
482 | wait_begin dd ? ;+92 +++ |
483 | wait_test dd ? ;+96 +++ |
483 | wait_test dd ? ;+96 +++ |
484 | wait_param dd ? ;+100 +++ |
484 | wait_param dd ? ;+100 +++ |
485 | tls_base dd ? ;+104 |
485 | tls_base dd ? ;+104 |
486 | dd ? ;+108 |
486 | dd ? ;+108 |
487 | event_filter dd ? ;+112 |
487 | event_filter dd ? ;+112 |
488 | draw_bgr_x dd ? ;+116 |
488 | draw_bgr_x dd ? ;+116 |
489 | draw_bgr_y dd ? ;+120 |
489 | draw_bgr_y dd ? ;+120 |
490 | dd ? ;+124 |
490 | dd ? ;+124 |
491 | 491 | ||
492 | wnd_shape dd ? ;+128 |
492 | wnd_shape dd ? ;+128 |
493 | wnd_shape_scale dd ? ;+132 |
493 | wnd_shape_scale dd ? ;+132 |
494 | dd ? ;+136 |
494 | dd ? ;+136 |
495 | dd ? ;+140 |
495 | dd ? ;+140 |
496 | saved_box BOX ;+144 |
496 | saved_box BOX ;+144 |
497 | ipc_start dd ? ;+160 |
497 | ipc_start dd ? ;+160 |
498 | ipc_size dd ? ;+164 |
498 | ipc_size dd ? ;+164 |
499 | event_mask dd ? ;+168 |
499 | event_mask dd ? ;+168 |
500 | debugger_slot dd ? ;+172 |
500 | debugger_slot dd ? ;+172 |
501 | terminate_protection dd ? ;+176 |
501 | terminate_protection dd ? ;+176 |
502 | keyboard_mode db ? ;+180 |
502 | keyboard_mode db ? ;+180 |
503 | rb 3 |
503 | rb 3 |
504 | dd ? ;+184 |
504 | exec_params dd ? ;+184 |
505 | dbg_event_mem dd ? ;+188 |
505 | dbg_event_mem dd ? ;+188 |
506 | dbg_regs DBG_REGS ;+192 |
506 | dbg_regs DBG_REGS ;+192 |
507 | wnd_caption dd ? ;+212 |
507 | wnd_caption dd ? ;+212 |
508 | wnd_clientbox BOX ;+216 |
508 | wnd_clientbox BOX ;+216 |
509 | priority dd ? ;+232 |
509 | priority dd ? ;+232 |
510 | in_schedule LHEAD ;+236 |
510 | in_schedule LHEAD ;+236 |
511 | ends |
511 | ends |
512 | 512 | ||
513 | APP_OBJ_OFFSET equ 48 |
513 | APP_OBJ_OFFSET equ 48 |
514 | APP_EV_OFFSET equ 40 |
514 | APP_EV_OFFSET equ 40 |
515 | 515 | ||
516 | struct TASKDATA |
516 | struct TASKDATA |
517 | event_mask dd ? |
517 | event_mask dd ? |
518 | pid dd ? |
518 | pid dd ? |
519 | dw ? |
519 | dw ? |
520 | state db ? |
520 | state db ? |
521 | db ? |
521 | db ? |
522 | dw ? |
522 | dw ? |
523 | wnd_number db ? |
523 | wnd_number db ? |
524 | db ? |
524 | db ? |
525 | mem_start dd ? |
525 | mem_start dd ? |
526 | counter_sum dd ? |
526 | counter_sum dd ? |
527 | counter_add dd ? |
527 | counter_add dd ? |
528 | cpu_usage dd ? |
528 | cpu_usage dd ? |
529 | ends |
529 | ends |
530 | 530 | ||
531 | TSTATE_RUNNING = 0 |
531 | TSTATE_RUNNING = 0 |
532 | TSTATE_RUN_SUSPENDED = 1 |
532 | TSTATE_RUN_SUSPENDED = 1 |
533 | TSTATE_WAIT_SUSPENDED = 2 |
533 | TSTATE_WAIT_SUSPENDED = 2 |
534 | TSTATE_ZOMBIE = 3 |
534 | TSTATE_ZOMBIE = 3 |
535 | TSTATE_TERMINATING = 4 |
535 | TSTATE_TERMINATING = 4 |
536 | TSTATE_WAITING = 5 |
536 | TSTATE_WAITING = 5 |
537 | TSTATE_FREE = 9 |
537 | TSTATE_FREE = 9 |
538 | 538 | ||
539 | ; constants definition |
539 | ; constants definition |
540 | WSTATE_NORMAL = 00000000b |
540 | WSTATE_NORMAL = 00000000b |
541 | WSTATE_MAXIMIZED = 00000001b |
541 | WSTATE_MAXIMIZED = 00000001b |
542 | WSTATE_MINIMIZED = 00000010b |
542 | WSTATE_MINIMIZED = 00000010b |
543 | WSTATE_ROLLEDUP = 00000100b |
543 | WSTATE_ROLLEDUP = 00000100b |
544 | 544 | ||
545 | WSTATE_REDRAW = 00000001b |
545 | WSTATE_REDRAW = 00000001b |
546 | WSTATE_WNDDRAWN = 00000010b |
546 | WSTATE_WNDDRAWN = 00000010b |
547 | 547 | ||
548 | WSTYLE_HASCAPTION = 00010000b |
548 | WSTYLE_HASCAPTION = 00010000b |
549 | WSTYLE_CLIENTRELATIVE = 00100000b |
549 | WSTYLE_CLIENTRELATIVE = 00100000b |
550 | 550 | ||
551 | ZPOS_DESKTOP = -2 |
551 | ZPOS_DESKTOP = -2 |
552 | ZPOS_ALWAYS_BACK = -1 |
552 | ZPOS_ALWAYS_BACK = -1 |
553 | ZPOS_NORMAL = 0 |
553 | ZPOS_NORMAL = 0 |
554 | ZPOS_ALWAYS_TOP = 1 ;ZPOS_ALWAYS_TOP is always last and has max number! |
554 | ZPOS_ALWAYS_TOP = 1 ;ZPOS_ALWAYS_TOP is always last and has max number! |
555 | ; structures definition |
555 | ; structures definition |
556 | struct WDATA |
556 | struct WDATA |
557 | box BOX |
557 | box BOX |
558 | cl_workarea dd ? |
558 | cl_workarea dd ? |
559 | cl_titlebar dd ? |
559 | cl_titlebar dd ? |
560 | cl_frames dd ? |
560 | cl_frames dd ? |
561 | z_modif db ? |
561 | z_modif db ? |
562 | fl_wstate db ? |
562 | fl_wstate db ? |
563 | fl_wdrawn db ? |
563 | fl_wdrawn db ? |
564 | fl_redraw db ? |
564 | fl_redraw db ? |
565 | ends |
565 | ends |
566 | 566 | ||
567 | label WDATA.fl_wstyle byte at WDATA.cl_workarea + 3 |
567 | label WDATA.fl_wstyle byte at WDATA.cl_workarea + 3 |
568 | 568 | ||
569 | 569 | ||
570 | struct SYS_VARS |
570 | struct SYS_VARS |
571 | bpp dd ? |
571 | bpp dd ? |
572 | scanline dd ? |
572 | scanline dd ? |
573 | vesa_mode dd ? |
573 | vesa_mode dd ? |
574 | x_res dd ? |
574 | x_res dd ? |
575 | y_res dd ? |
575 | y_res dd ? |
576 | ends |
576 | ends |
577 | 577 | ||
578 | struct APPOBJ ; common object header |
578 | struct APPOBJ ; common object header |
579 | magic dd ? ; |
579 | magic dd ? ; |
580 | destroy dd ? ; internal destructor |
580 | destroy dd ? ; internal destructor |
581 | fd dd ? ; next object in list |
581 | fd dd ? ; next object in list |
582 | bk dd ? ; prev object in list |
582 | bk dd ? ; prev object in list |
583 | pid dd ? ; owner id |
583 | pid dd ? ; owner id |
584 | ends |
584 | ends |
585 | 585 | ||
586 | struct CURSOR APPOBJ |
586 | struct CURSOR APPOBJ |
587 | base dd ? ;allocated memory |
587 | base dd ? ;allocated memory |
588 | hot_x dd ? ;hotspot coords |
588 | hot_x dd ? ;hotspot coords |
589 | hot_y dd ? |
589 | hot_y dd ? |
590 | 590 | ||
591 | list_next dd ? ;next cursor in cursor list |
591 | list_next dd ? ;next cursor in cursor list |
592 | list_prev dd ? ;prev cursor in cursor list |
592 | list_prev dd ? ;prev cursor in cursor list |
593 | dev_obj dd ? ;device depended data |
593 | dev_obj dd ? ;device depended data |
594 | ends |
594 | ends |
595 | 595 | ||
596 | 596 | ||
597 | struct EVENT APPOBJ |
597 | struct EVENT APPOBJ |
598 | id dd ? ;event uid |
598 | id dd ? ;event uid |
599 | state dd ? ;internal flags |
599 | state dd ? ;internal flags |
600 | code dd ? |
600 | code dd ? |
601 | rd 5 |
601 | rd 5 |
602 | ends |
602 | ends |
603 | 603 | ||
604 | 604 | ||
605 | struct SMEM |
605 | struct SMEM |
606 | bk dd ? |
606 | bk dd ? |
607 | fd dd ? ;+4 |
607 | fd dd ? ;+4 |
608 | base dd ? ;+8 |
608 | base dd ? ;+8 |
609 | size dd ? ;+12 |
609 | size dd ? ;+12 |
610 | access dd ? ;+16 |
610 | access dd ? ;+16 |
611 | refcount dd ? ;+20 |
611 | refcount dd ? ;+20 |
612 | name rb 32 ;+24 |
612 | name rb 32 ;+24 |
613 | ends |
613 | ends |
614 | 614 | ||
615 | struct SMAP APPOBJ |
615 | struct SMAP APPOBJ |
616 | base dd ? ;mapped base |
616 | base dd ? ;mapped base |
617 | parent dd ? ;SMEM |
617 | parent dd ? ;SMEM |
618 | ends |
618 | ends |
619 | 619 | ||
620 | struct DLLDESCR |
620 | struct DLLDESCR |
621 | bk dd ? |
621 | bk dd ? |
622 | fd dd ? ;+4 |
622 | fd dd ? ;+4 |
623 | data dd ? ;+8 |
623 | data dd ? ;+8 |
624 | size dd ? ;+12 |
624 | size dd ? ;+12 |
625 | timestamp dq ? |
625 | timestamp dq ? |
626 | refcount dd ? |
626 | refcount dd ? |
627 | defaultbase dd ? |
627 | defaultbase dd ? |
628 | coff_hdr dd ? |
628 | coff_hdr dd ? |
629 | symbols_ptr dd ? |
629 | symbols_ptr dd ? |
630 | symbols_num dd ? |
630 | symbols_num dd ? |
631 | symbols_lim dd ? |
631 | symbols_lim dd ? |
632 | exports dd ? ;export table |
632 | exports dd ? ;export table |
633 | name rb 260 |
633 | name rb 260 |
634 | ends |
634 | ends |
635 | 635 | ||
636 | struct HDLL |
636 | struct HDLL |
637 | fd dd ? ;next object in list |
637 | fd dd ? ;next object in list |
638 | bk dd ? ;prev object in list |
638 | bk dd ? ;prev object in list |
639 | pid dd ? ;owner id |
639 | pid dd ? ;owner id |
640 | 640 | ||
641 | base dd ? ;mapped base |
641 | base dd ? ;mapped base |
642 | size dd ? ;mapped size |
642 | size dd ? ;mapped size |
643 | refcount dd ? ;reference counter for this process and this lib |
643 | refcount dd ? ;reference counter for this process and this lib |
644 | parent dd ? ;DLLDESCR |
644 | parent dd ? ;DLLDESCR |
645 | ends |
645 | ends |
646 | 646 | ||
647 | 647 | ||
648 | struct BOOT_DATA |
648 | struct BOOT_DATA |
649 | bpp dd ? |
649 | bpp dd ? |
650 | scanline dd ? |
650 | scanline dd ? |
651 | vesa_mode dd ? |
651 | vesa_mode dd ? |
652 | x_res dd ? |
652 | x_res dd ? |
653 | y_res dd ? |
653 | y_res dd ? |
654 | mouse_port dd ? |
654 | mouse_port dd ? |
655 | bank_switch dd ? |
655 | bank_switch dd ? |
656 | lfb dd ? |
656 | lfb dd ? |
657 | vesa_mem dd ? |
657 | vesa_mem dd ? |
658 | log dd ? |
658 | log dd ? |
659 | direct_lfb dd ? |
659 | direct_lfb dd ? |
660 | pci_data dd ? |
660 | pci_data dd ? |
661 | dd ? |
661 | dd ? |
662 | vrr dd ? |
662 | vrr dd ? |
663 | ide_base dd ? |
663 | ide_base dd ? |
664 | mem_amount dd ? |
664 | mem_amount dd ? |
665 | pages_count dd ? |
665 | pages_count dd ? |
666 | pagemap_size dd ? |
666 | pagemap_size dd ? |
667 | kernel_max dd ? |
667 | kernel_max dd ? |
668 | kernel_pages dd ? |
668 | kernel_pages dd ? |
669 | kernel_tables dd ? |
669 | kernel_tables dd ? |
670 | 670 | ||
671 | cpu_vendor dd ? |
671 | cpu_vendor dd ? |
672 | dd ? |
672 | dd ? |
673 | dd ? |
673 | dd ? |
674 | cpu_sign dd ? |
674 | cpu_sign dd ? |
675 | cpu_info dd ? |
675 | cpu_info dd ? |
676 | cpu_caps dd ? |
676 | cpu_caps dd ? |
677 | dd ? |
677 | dd ? |
678 | dd ? |
678 | dd ? |
679 | ends |
679 | ends |
680 | 680 | ||
681 | struct display_t |
681 | struct display_t |
682 | x dd ? |
682 | x dd ? |
683 | y dd ? |
683 | y dd ? |
684 | width dd ? |
684 | width dd ? |
685 | height dd ? |
685 | height dd ? |
686 | bits_per_pixel dd ? |
686 | bits_per_pixel dd ? |
687 | vrefresh dd ? |
687 | vrefresh dd ? |
688 | current_lfb dd ? |
688 | current_lfb dd ? |
689 | lfb_pitch dd ? |
689 | lfb_pitch dd ? |
690 | 690 | ||
691 | win_map_lock RWSEM |
691 | win_map_lock RWSEM |
692 | win_map dd ? |
692 | win_map dd ? |
693 | win_map_pitch dd ? |
693 | win_map_pitch dd ? |
694 | win_map_size dd ? |
694 | win_map_size dd ? |
695 | 695 | ||
696 | modes dd ? |
696 | modes dd ? |
697 | ddev dd ? |
697 | ddev dd ? |
698 | connector dd ? |
698 | connector dd ? |
699 | crtc dd ? |
699 | crtc dd ? |
700 | 700 | ||
701 | cr_list.next dd ? |
701 | cr_list.next dd ? |
702 | cr_list.prev dd ? |
702 | cr_list.prev dd ? |
703 | 703 | ||
704 | cursor dd ? |
704 | cursor dd ? |
705 | 705 | ||
706 | init_cursor dd ? |
706 | init_cursor dd ? |
707 | select_cursor dd ? |
707 | select_cursor dd ? |
708 | show_cursor dd ? |
708 | show_cursor dd ? |
709 | move_cursor dd ? |
709 | move_cursor dd ? |
710 | restore_cursor dd ? |
710 | restore_cursor dd ? |
711 | disable_mouse dd ? |
711 | disable_mouse dd ? |
712 | mask_seqno dd ? |
712 | mask_seqno dd ? |
713 | check_mouse dd ? |
713 | check_mouse dd ? |
714 | check_m_pixel dd ? |
714 | check_m_pixel dd ? |
715 | 715 | ||
716 | bytes_per_pixel dd ? |
716 | bytes_per_pixel dd ? |
717 | ends |
717 | ends |
718 | 718 | ||
719 | struct DISPMODE |
719 | struct DISPMODE |
720 | width dw ? |
720 | width dw ? |
721 | height dw ? |
721 | height dw ? |
722 | bpp dw ? |
722 | bpp dw ? |
723 | freq dw ? |
723 | freq dw ? |
724 | ends |
724 | ends |
725 | 725 | ||
726 | 726 | ||
727 | struct PCIDEV |
727 | struct PCIDEV |
728 | bk dd ? |
728 | bk dd ? |
729 | fd dd ? |
729 | fd dd ? |
730 | vendor_device_id dd ? |
730 | vendor_device_id dd ? |
731 | class dd ? |
731 | class dd ? |
732 | devfn db ? |
732 | devfn db ? |
733 | bus db ? |
733 | bus db ? |
734 | rb 2 |
734 | rb 2 |
735 | owner dd ? ; pointer to SRV or 0 |
735 | owner dd ? ; pointer to SRV or 0 |
736 | ends |
736 | ends |
737 | 737 | ||
738 | struct IDE_DATA |
738 | struct IDE_DATA |
739 | ProgrammingInterface dd ? |
739 | ProgrammingInterface dd ? |
740 | Interrupt dw ? |
740 | Interrupt dw ? |
741 | RegsBaseAddres dw ? |
741 | RegsBaseAddres dw ? |
742 | BAR0_val dw ? |
742 | BAR0_val dw ? |
743 | BAR1_val dw ? |
743 | BAR1_val dw ? |
744 | BAR2_val dw ? |
744 | BAR2_val dw ? |
745 | BAR3_val dw ? |
745 | BAR3_val dw ? |
746 | dma_hdd_channel_1 db ? |
746 | dma_hdd_channel_1 db ? |
747 | dma_hdd_channel_2 db ? |
747 | dma_hdd_channel_2 db ? |
748 | ends |
748 | ends |
749 | 749 | ||
750 | struct IDE_CACHE |
750 | struct IDE_CACHE |
751 | pointer dd ? |
751 | pointer dd ? |
752 | size dd ? ; not use |
752 | size dd ? ; not use |
753 | data_pointer dd ? |
753 | data_pointer dd ? |
754 | system_data_size dd ? ; not use |
754 | system_data_size dd ? ; not use |
755 | appl_data_size dd ? ; not use |
755 | appl_data_size dd ? ; not use |
756 | system_data dd ? |
756 | system_data dd ? |
757 | appl_data dd ? |
757 | appl_data dd ? |
758 | system_sad_size dd ? |
758 | system_sad_size dd ? |
759 | appl_sad_size dd ? |
759 | appl_sad_size dd ? |
760 | search_start dd ? |
760 | search_start dd ? |
761 | appl_search_start dd ? |
761 | appl_search_start dd ? |
762 | ends |
762 | ends |
763 | 763 | ||
764 | struct IDE_DEVICE |
764 | struct IDE_DEVICE |
765 | UDMA_possible_modes db ? |
765 | UDMA_possible_modes db ? |
766 | UDMA_set_mode db ? |
766 | UDMA_set_mode db ? |
767 | ends |
767 | ends |
768 | 768 | ||
769 | ; The following macro assume that we are on uniprocessor machine. |
769 | ; The following macro assume that we are on uniprocessor machine. |
770 | ; Serious work is needed for multiprocessor machines. |
770 | ; Serious work is needed for multiprocessor machines. |
771 | macro spin_lock_irqsave spinlock |
771 | macro spin_lock_irqsave spinlock |
772 | { |
772 | { |
773 | pushf |
773 | pushf |
774 | cli |
774 | cli |
775 | } |
775 | } |
776 | macro spin_unlock_irqrestore spinlock |
776 | macro spin_unlock_irqrestore spinlock |
777 | { |
777 | { |
778 | popf |
778 | popf |
779 | } |
779 | } |
780 | macro spin_lock_irq spinlock |
780 | macro spin_lock_irq spinlock |
781 | { |
781 | { |
782 | cli |
782 | cli |
783 | } |
783 | } |
784 | macro spin_unlock_irq spinlock |
784 | macro spin_unlock_irq spinlock |
785 | { |
785 | { |
786 | sti |
786 | sti |
787 | } |
787 | } |
788 | 788 | ||
789 | struct MEM_STATE |
789 | struct MEM_STATE |
790 | mutex MUTEX |
790 | mutex MUTEX |
791 | smallmap dd ? |
791 | smallmap dd ? |
792 | treemap dd ? |
792 | treemap dd ? |
793 | topsize dd ? |
793 | topsize dd ? |
794 | top dd ? |
794 | top dd ? |
795 | smallbins rd 4*32 |
795 | smallbins rd 4*32 |
796 | treebins rd 32 |
796 | treebins rd 32 |
797 | ends |
797 | ends |
798 | 798 | ||
799 | struct PG_DATA |
799 | struct PG_DATA |
800 | mem_amount dd ? |
800 | mem_amount dd ? |
801 | vesa_mem dd ? |
801 | vesa_mem dd ? |
802 | pages_count dd ? |
802 | pages_count dd ? |
803 | pages_free dd ? |
803 | pages_free dd ? |
804 | pages_faults dd ? |
804 | pages_faults dd ? |
805 | pagemap_size dd ? |
805 | pagemap_size dd ? |
806 | kernel_pages dd ? |
806 | kernel_pages dd ? |
807 | kernel_tables dd ? |
807 | kernel_tables dd ? |
808 | sys_page_dir dd ? |
808 | sys_page_dir dd ? |
809 | mutex MUTEX |
809 | mutex MUTEX |
810 | ends |
810 | ends |
811 | 811 | ||
812 | struct SRV |
812 | struct SRV |
813 | srv_name rb 16 ;ASCIIZ string |
813 | srv_name rb 16 ;ASCIIZ string |
814 | magic dd ? ;+0x10 ;'SRV ' |
814 | magic dd ? ;+0x10 ;'SRV ' |
815 | size dd ? ;+0x14 ;size of structure SRV |
815 | size dd ? ;+0x14 ;size of structure SRV |
816 | fd dd ? ;+0x18 ;next SRV descriptor |
816 | fd dd ? ;+0x18 ;next SRV descriptor |
817 | bk dd ? ;+0x1C ;prev SRV descriptor |
817 | bk dd ? ;+0x1C ;prev SRV descriptor |
818 | base dd ? ;+0x20 ;service base address |
818 | base dd ? ;+0x20 ;service base address |
819 | entry dd ? ;+0x24 ;service START function |
819 | entry dd ? ;+0x24 ;service START function |
820 | srv_proc dd ? ;+0x28 ;user mode service handler |
820 | srv_proc dd ? ;+0x28 ;user mode service handler |
821 | srv_proc_ex dd ? ;+0x2C ;kernel mode service handler |
821 | srv_proc_ex dd ? ;+0x2C ;kernel mode service handler |
822 | ends |
822 | ends |
823 | 823 | ||
824 | struct USBSRV |
824 | struct USBSRV |
825 | srv SRV |
825 | srv SRV |
826 | usb_func dd ? |
826 | usb_func dd ? |
827 | ends |
827 | ends |
828 | 828 | ||
829 | struct USBFUNC |
829 | struct USBFUNC |
830 | strucsize dd ? |
830 | strucsize dd ? |
831 | add_device dd ? |
831 | add_device dd ? |
832 | device_disconnect dd ? |
832 | device_disconnect dd ? |
833 | ends |
833 | ends |
834 | 834 | ||
835 | DRV_ENTRY equ 1 |
835 | DRV_ENTRY equ 1 |
836 | DRV_EXIT equ -1 |
836 | DRV_EXIT equ -1 |
837 | 837 | ||
838 | struct COFF_HEADER |
838 | struct COFF_HEADER |
839 | machine dw ? |
839 | machine dw ? |
840 | nSections dw ? |
840 | nSections dw ? |
841 | DataTime dd ? |
841 | DataTime dd ? |
842 | pSymTable dd ? |
842 | pSymTable dd ? |
843 | nSymbols dd ? |
843 | nSymbols dd ? |
844 | optHeader dw ? |
844 | optHeader dw ? |
845 | flags dw ? |
845 | flags dw ? |
846 | ends |
846 | ends |
847 | 847 | ||
848 | struct COFF_SECTION |
848 | struct COFF_SECTION |
849 | Name rb 8 |
849 | Name rb 8 |
850 | VirtualSize dd ? |
850 | VirtualSize dd ? |
851 | VirtualAddress dd ? |
851 | VirtualAddress dd ? |
852 | SizeOfRawData dd ? |
852 | SizeOfRawData dd ? |
853 | PtrRawData dd ? |
853 | PtrRawData dd ? |
854 | PtrReloc dd ? |
854 | PtrReloc dd ? |
855 | PtrLinenumbers dd ? |
855 | PtrLinenumbers dd ? |
856 | NumReloc dw ? |
856 | NumReloc dw ? |
857 | NumLinenum dw ? |
857 | NumLinenum dw ? |
858 | Characteristics dd ? |
858 | Characteristics dd ? |
859 | ends |
859 | ends |
860 | 860 | ||
861 | struct COFF_RELOC |
861 | struct COFF_RELOC |
862 | VirtualAddress dd ? |
862 | VirtualAddress dd ? |
863 | SymIndex dd ? |
863 | SymIndex dd ? |
864 | Type dw ? |
864 | Type dw ? |
865 | ends |
865 | ends |
866 | 866 | ||
867 | struct COFF_SYM |
867 | struct COFF_SYM |
868 | Name rb 8 |
868 | Name rb 8 |
869 | Value dd ? |
869 | Value dd ? |
870 | SectionNumber dw ? |
870 | SectionNumber dw ? |
871 | Type dw ? |
871 | Type dw ? |
872 | StorageClass db ? |
872 | StorageClass db ? |
873 | NumAuxSymbols db ? |
873 | NumAuxSymbols db ? |
874 | ends |
874 | ends |
875 | 875 | ||
876 | struct STRIPPED_PE_HEADER |
876 | struct STRIPPED_PE_HEADER |
877 | Signature dw ? |
877 | Signature dw ? |
878 | Characteristics dw ? |
878 | Characteristics dw ? |
879 | AddressOfEntryPoint dd ? |
879 | AddressOfEntryPoint dd ? |
880 | ImageBase dd ? |
880 | ImageBase dd ? |
881 | SectionAlignmentLog db ? |
881 | SectionAlignmentLog db ? |
882 | FileAlignmentLog db ? |
882 | FileAlignmentLog db ? |
883 | MajorOSVersion db ? |
883 | MajorOSVersion db ? |
884 | MinorOSVersion db ? |
884 | MinorOSVersion db ? |
885 | SizeOfImage dd ? |
885 | SizeOfImage dd ? |
886 | SizeOfStackReserve dd ? |
886 | SizeOfStackReserve dd ? |
887 | SizeOfHeapReserve dd ? |
887 | SizeOfHeapReserve dd ? |
888 | SizeOfHeaders dd ? |
888 | SizeOfHeaders dd ? |
889 | Subsystem db ? |
889 | Subsystem db ? |
890 | NumberOfRvaAndSizes db ? |
890 | NumberOfRvaAndSizes db ? |
891 | NumberOfSections dw ? |
891 | NumberOfSections dw ? |
892 | ends |
892 | ends |
893 | STRIPPED_PE_SIGNATURE = 0x4503 ; 'PE' xor 'S' |
893 | STRIPPED_PE_SIGNATURE = 0x4503 ; 'PE' xor 'S' |
894 | SPE_DIRECTORY_IMPORT = 0 |
894 | SPE_DIRECTORY_IMPORT = 0 |
895 | SPE_DIRECTORY_EXPORT = 1 |
895 | SPE_DIRECTORY_EXPORT = 1 |
896 | SPE_DIRECTORY_BASERELOC = 2 |
896 | SPE_DIRECTORY_BASERELOC = 2 |
897 | 897 | ||
898 | struct IOCTL |
898 | struct IOCTL |
899 | handle dd ? |
899 | handle dd ? |
900 | io_code dd ? |
900 | io_code dd ? |
901 | input dd ? |
901 | input dd ? |
902 | inp_size dd ? |
902 | inp_size dd ? |
903 | output dd ? |
903 | output dd ? |
904 | out_size dd ? |
904 | out_size dd ? |
905 | ends |
905 | ends |
906 | 906 | ||
907 | struct IRQH |
907 | struct IRQH |
908 | list LHEAD |
908 | list LHEAD |
909 | handler dd ? ;handler roututine |
909 | handler dd ? ;handler roututine |
910 | data dd ? ;user-specific data |
910 | data dd ? ;user-specific data |
911 | num_ints dd ? ;how many times handled |
911 | num_ints dd ? ;how many times handled |
912 | ends8)|WB |
912 | ends8)|WB |
913 | 913 | ||
914 | ;;;;;;;;;;;boot><8)|WB |
914 | ;;;;;;;;;;;boot><8)|WB |
915 | 915 | ||
916 | ;;;;;;;;;;;boot>16)|(WC<<8)|WB |
916 | ;;;;;;;;;;;boot>16)|(WC<<8)|WB |
917 | 917 | ||
918 | ;;;;;;;;;;;boot><16)|(WC<<8)|WB |
918 | ;;;;;;;;;;;boot><16)|(WC<<8)|WB |
919 | 919 | ||
920 | ;;;;;;;;;;;boot>24)|(UCM<<16)|(WC<<8)|WB |
920 | ;;;;;;;;;;;boot>24)|(UCM<<16)|(WC<<8)|WB |
921 | 921 | ||
922 | ;;;;;;;;;;;boot><24)|(UCM<<16)|(WC<<8)|WB |
922 | ;;;;;;;;;;;boot><24)|(UCM<<16)|(WC<<8)|WB |
923 | 923 | ||
924 | ;;;;;;;;;;;boot> |
924 | ;;;;;;;;;;;boot> |