Rev 6332 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6332 | Rev 6339 | ||
---|---|---|---|
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: 6332 $ |
8 | $Revision: 6339 $ |
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 | sys_pml2 equ 0x0072000 |
|
226 | 227 | ||
227 | SLOT_BASE equ (OS_BASE+0x0080000) |
228 | SLOT_BASE equ (OS_BASE+0x0080000) |
228 | 229 | ||
229 | VGABasePtr equ (OS_BASE+0x00A0000) |
230 | VGABasePtr equ (OS_BASE+0x00A0000) |
230 | 231 | ||
231 | CLEAN_ZONE equ (_CLEAN_ZONE-OS_BASE) |
232 | CLEAN_ZONE equ (_CLEAN_ZONE-OS_BASE) |
232 | 233 | ||
233 | UPPER_KERNEL_PAGES equ (OS_BASE+0x0400000) |
234 | UPPER_KERNEL_PAGES equ (OS_BASE+0x0400000) |
234 | 235 | ||
235 | virtual at (OS_BASE+0x05FFF80) |
236 | virtual at (OS_BASE+0x05FFF80) |
236 | tss TSS |
237 | tss TSS |
237 | end virtual |
238 | end virtual |
238 | 239 | ||
239 | HEAP_BASE equ (OS_BASE+0x0800000) |
240 | HEAP_BASE equ (OS_BASE+0x0800000) |
240 | HEAP_MIN_SIZE equ 0x01000000 |
241 | HEAP_MIN_SIZE equ 0x01000000 |
241 | 242 | ||
242 | page_tabs equ 0xFDC00000 |
243 | page_tabs equ 0xFD800000 |
243 | app_page_tabs equ 0xFDC00000 |
244 | app_page_tabs equ 0xFD800000 |
244 | kernel_tabs equ (page_tabs+ (OS_BASE shr 10)) ;0xFDE00000 |
245 | kernel_tabs equ (page_tabs+ (OS_BASE shr 9)) ;0xFDE00000 |
245 | master_tab equ (page_tabs+ (page_tabs shr 10)) ;0xFDFF70000 |
246 | master_tab equ (page_tabs+ (page_tabs shr 9)) ;0xFDFF70000 |
246 | 247 | ||
247 | LFB_BASE equ 0xFE000000 |
248 | LFB_BASE equ 0xFE000000 |
248 | 249 | ||
249 | 250 | ||
250 | new_app_base equ 0; |
251 | new_app_base equ 0; |
251 | 252 | ||
252 | twdw equ 0x2000 ;(CURRENT_TASK-window_data) |
253 | twdw equ 0x2000 ;(CURRENT_TASK-window_data) |
253 | 254 | ||
254 | std_application_base_address equ new_app_base |
255 | std_application_base_address equ new_app_base |
255 | RING0_STACK_SIZE equ (0x2000 - 512) ;512 байт для контекста FPU |
256 | RING0_STACK_SIZE equ (0x2000 - 512) ;512 байт для контекста FPU |
256 | 257 | ||
257 | REG_SS equ (RING0_STACK_SIZE-4) |
258 | REG_SS equ (RING0_STACK_SIZE-4) |
258 | REG_APP_ESP equ (RING0_STACK_SIZE-8) |
259 | REG_APP_ESP equ (RING0_STACK_SIZE-8) |
259 | REG_EFLAGS equ (RING0_STACK_SIZE-12) |
260 | REG_EFLAGS equ (RING0_STACK_SIZE-12) |
260 | REG_CS equ (RING0_STACK_SIZE-16) |
261 | REG_CS equ (RING0_STACK_SIZE-16) |
261 | REG_EIP equ (RING0_STACK_SIZE-20) |
262 | REG_EIP equ (RING0_STACK_SIZE-20) |
262 | REG_EAX equ (RING0_STACK_SIZE-24) |
263 | REG_EAX equ (RING0_STACK_SIZE-24) |
263 | REG_ECX equ (RING0_STACK_SIZE-28) |
264 | REG_ECX equ (RING0_STACK_SIZE-28) |
264 | REG_EDX equ (RING0_STACK_SIZE-32) |
265 | REG_EDX equ (RING0_STACK_SIZE-32) |
265 | REG_EBX equ (RING0_STACK_SIZE-36) |
266 | REG_EBX equ (RING0_STACK_SIZE-36) |
266 | REG_ESP equ (RING0_STACK_SIZE-40) ;RING0_STACK_SIZE-20 |
267 | REG_ESP equ (RING0_STACK_SIZE-40) ;RING0_STACK_SIZE-20 |
267 | REG_EBP equ (RING0_STACK_SIZE-44) |
268 | REG_EBP equ (RING0_STACK_SIZE-44) |
268 | REG_ESI equ (RING0_STACK_SIZE-48) |
269 | REG_ESI equ (RING0_STACK_SIZE-48) |
269 | REG_EDI equ (RING0_STACK_SIZE-52) |
270 | REG_EDI equ (RING0_STACK_SIZE-52) |
270 | REG_RET equ (RING0_STACK_SIZE-56) ;irq0.return |
271 | REG_RET equ (RING0_STACK_SIZE-56) ;irq0.return |
271 | 272 | ||
272 | 273 | ||
273 | PAGE_SIZE equ 4096 |
274 | PAGE_SIZE equ 4096 |
274 | 275 | ||
275 | PG_UNMAP equ 0x000 |
276 | PG_UNMAP equ 0x000 |
276 | PG_READ equ 0x001 |
277 | PG_READ equ 0x001 |
277 | PG_WRITE equ 0x002 |
278 | PG_WRITE equ 0x002 |
278 | PG_USER equ 0x004 |
279 | PG_USER equ 0x004 |
279 | PG_PCD equ 0x008 |
280 | PG_PCD equ 0x008 |
280 | PG_PWT equ 0x010 |
281 | PG_PWT equ 0x010 |
281 | PG_ACCESSED equ 0x020 |
282 | PG_ACCESSED equ 0x020 |
282 | PG_DIRTY equ 0x040 |
283 | PG_DIRTY equ 0x040 |
283 | PG_PAT equ 0x080 |
284 | PG_PAT equ 0x080 |
284 | PG_GLOBAL equ 0x100 |
285 | PG_GLOBAL equ 0; 0x100 |
285 | PG_SHARED equ 0x200 |
286 | PG_SHARED equ 0x200 |
286 | 287 | ||
287 | PG_SWR equ 0x003 ; (PG_WRITE+PG_READ) |
288 | PG_SWR equ 0x003 ; (PG_WRITE+PG_READ) |
288 | PG_UR equ 0x005 ; (PG_USER+PG_READ) |
289 | PG_UR equ 0x005 ; (PG_USER+PG_READ) |
289 | PG_UWR equ 0x007 ; (PG_USER+PG_WRITE+PG_READ) |
290 | PG_UWR equ 0x007 ; (PG_USER+PG_WRITE+PG_READ) |
290 | PG_NOCACHE equ 0x018 ; (PG_PCD+PG_PWT) |
291 | PG_NOCACHE equ 0x018 ; (PG_PCD+PG_PWT) |
291 | 292 | ||
292 | PDE_LARGE equ 0x080 |
293 | PDE_LARGE equ 0x080 |
293 | 294 | ||
294 | PAT_WB equ 0x000 |
295 | PAT_WB equ 0x000 |
295 | PAT_WC equ 0x008 |
296 | PAT_WC equ 0x008 |
296 | PAT_UCM equ 0x010 |
297 | PAT_UCM equ 0x010 |
297 | PAT_UC equ 0x018 |
298 | PAT_UC equ 0x018 |
298 | 299 | ||
299 | PAT_TYPE_UC equ 0 |
300 | PAT_TYPE_UC equ 0 |
300 | PAT_TYPE_WC equ 1 |
301 | PAT_TYPE_WC equ 1 |
301 | PAT_TYPE_WB equ 6 |
302 | PAT_TYPE_WB equ 6 |
302 | PAT_TYPE_UCM equ 7 |
303 | PAT_TYPE_UCM equ 7 |
303 | 304 | ||
304 | PAT_VALUE equ 0x00070106; (UC<<24)|(UCM<<16)|(WC<<8)|WB |
305 | PAT_VALUE equ 0x00070106; (UC<<24)|(UCM<<16)|(WC<<8)|WB |
305 | 306 | ||
306 | ;;;;;;;;;;;boot time variables |
307 | ;;;;;;;;;;;boot time variables |
307 | 308 | ||
308 | BOOT_BPP equ 0x9000 ;byte bits per pixel |
309 | BOOT_BPP equ 0x9000 ;byte bits per pixel |
309 | BOOT_PITCH equ 0x9001 ;word scanline length |
310 | BOOT_PITCH equ 0x9001 ;word scanline length |
310 | BOOT_VESA_MODE equ 0x9008 ;word vesa video mode |
311 | BOOT_VESA_MODE equ 0x9008 ;word vesa video mode |
311 | BOOT_X_RES equ 0x900A ;word X res |
312 | BOOT_X_RES equ 0x900A ;word X res |
312 | BOOT_Y_RES equ 0x900C ;word Y res |
313 | BOOT_Y_RES equ 0x900C ;word Y res |
313 | BOOT_BANK_SW equ 0x9014 ;dword Vesa 1.2 pm bank switch |
314 | BOOT_BANK_SW equ 0x9014 ;dword Vesa 1.2 pm bank switch |
314 | BOOT_LFB equ 0x9018 ;dword Vesa 2.0 LFB address |
315 | BOOT_LFB equ 0x9018 ;dword Vesa 2.0 LFB address |
315 | BOOT_MTRR equ 0x901C ;byte 0 or 1 : enable MTRR graphics acceleration |
316 | 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) |
317 | ;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? |
318 | 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 |
319 | ;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. |
320 | BOOT_DEBUG_PRINT equ 0x901E ;byte If nonzero, duplicates debug output to the screen. |
320 | BOOT_DMA equ 0x901F ; |
321 | BOOT_DMA equ 0x901F ; |
321 | BOOT_PCI_DATA equ 0x9020 ;8bytes pci data |
322 | BOOT_PCI_DATA equ 0x9020 ;8bytes pci data |
322 | BOOT_VRR equ 0x9030 ;byte VRR start enabled 1, 2-no |
323 | 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 |
324 | ;BOOT_IDE_BASE_ADDR equ 0x9031 ;word IDEContrRegsBaseAddr ; now free and is not used |
324 | BOOT_MEM_AMOUNT equ 0x9034 ;dword memory amount |
325 | BOOT_MEM_AMOUNT equ 0x9034 ;dword memory amount |
325 | 326 | ||
326 | BOOT_APM_ENTRY equ 0x9040 |
327 | BOOT_APM_ENTRY equ 0x9040 |
327 | BOOT_APM_VERSION equ 0x9044 |
328 | BOOT_APM_VERSION equ 0x9044 |
328 | BOOT_APM_FLAGS equ 0x9046 ;unused |
329 | BOOT_APM_FLAGS equ 0x9046 ;unused |
329 | BOOT_APM_CODE_32 equ 0x9050 |
330 | BOOT_APM_CODE_32 equ 0x9050 |
330 | BOOT_APM_CODE_16 equ 0x9052 |
331 | BOOT_APM_CODE_16 equ 0x9052 |
331 | BOOT_APM_DATA_16 equ 0x9054 |
332 | BOOT_APM_DATA_16 equ 0x9054 |
332 | ;BOOT_IDE_BAR0_16 equ 0x9056 ; now free and is not used |
333 | ;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 |
334 | ;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 |
335 | ;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 |
336 | ;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 |
337 | ;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 |
338 | ;BOOT_IDE_INTERR_16 equ 0x9060 ; now free and is not used |
338 | 339 | ||
339 | TMP_FILE_NAME equ 0 |
340 | TMP_FILE_NAME equ 0 |
340 | TMP_CMD_LINE equ 1024 |
341 | TMP_CMD_LINE equ 1024 |
341 | TMP_ICON_OFFS equ 1280 |
342 | TMP_ICON_OFFS equ 1280 |
342 | 343 | ||
343 | 344 | ||
344 | EVENT_REDRAW equ 0x00000001 |
345 | EVENT_REDRAW equ 0x00000001 |
345 | EVENT_KEY equ 0x00000002 |
346 | EVENT_KEY equ 0x00000002 |
346 | EVENT_BUTTON equ 0x00000004 |
347 | EVENT_BUTTON equ 0x00000004 |
347 | EVENT_BACKGROUND equ 0x00000010 |
348 | EVENT_BACKGROUND equ 0x00000010 |
348 | EVENT_MOUSE equ 0x00000020 |
349 | EVENT_MOUSE equ 0x00000020 |
349 | EVENT_IPC equ 0x00000040 |
350 | EVENT_IPC equ 0x00000040 |
350 | EVENT_NETWORK equ 0x00000080 |
351 | EVENT_NETWORK equ 0x00000080 |
351 | EVENT_DEBUG equ 0x00000100 |
352 | EVENT_DEBUG equ 0x00000100 |
352 | EVENT_NETWORK2 equ 0x00000200 |
353 | EVENT_NETWORK2 equ 0x00000200 |
353 | EVENT_EXTENDED equ 0x00000400 |
354 | EVENT_EXTENDED equ 0x00000400 |
354 | 355 | ||
355 | EV_INTR equ 1 |
356 | EV_INTR equ 1 |
356 | 357 | ||
357 | STDIN_FILENO equ 0 |
358 | STDIN_FILENO equ 0 |
358 | STDOUT_FILENO equ 1 |
359 | STDOUT_FILENO equ 1 |
359 | STDERR_FILENO equ 2 |
360 | STDERR_FILENO equ 2 |
360 | 361 | ||
361 | SYSTEM_SHUTDOWN equ 2 |
362 | SYSTEM_SHUTDOWN equ 2 |
362 | SYSTEM_REBOOT equ 3 |
363 | SYSTEM_REBOOT equ 3 |
363 | SYSTEM_RESTART equ 4 |
364 | SYSTEM_RESTART equ 4 |
364 | 365 | ||
365 | struct SYSCALL_STACK |
366 | struct SYSCALL_STACK |
366 | _eip dd ? |
367 | _eip dd ? |
367 | _edi dd ? ; +4 |
368 | _edi dd ? ; +4 |
368 | _esi dd ? ; +8 |
369 | _esi dd ? ; +8 |
369 | _ebp dd ? ; +12 |
370 | _ebp dd ? ; +12 |
370 | _esp dd ? ; +16 |
371 | _esp dd ? ; +16 |
371 | _ebx dd ? ; +20 |
372 | _ebx dd ? ; +20 |
372 | _edx dd ? ; +24 |
373 | _edx dd ? ; +24 |
373 | _ecx dd ? ; +28 |
374 | _ecx dd ? ; +28 |
374 | _eax dd ? ; +32 |
375 | _eax dd ? ; +32 |
375 | ends |
376 | ends |
376 | 377 | ||
377 | struct LHEAD |
378 | struct LHEAD |
378 | next dd ? ;next object in list |
379 | next dd ? ;next object in list |
379 | prev dd ? ;prev object in list |
380 | prev dd ? ;prev object in list |
380 | ends |
381 | ends |
381 | 382 | ||
382 | struct MUTEX_WAITER |
383 | struct MUTEX_WAITER |
383 | list LHEAD |
384 | list LHEAD |
384 | task dd ? |
385 | task dd ? |
385 | type dd ? |
386 | type dd ? |
386 | ends |
387 | ends |
387 | 388 | ||
388 | struct MUTEX |
389 | struct MUTEX |
389 | wait_list LHEAD |
390 | wait_list LHEAD |
390 | count dd ? |
391 | count dd ? |
391 | ends |
392 | ends |
392 | 393 | ||
393 | struct RWSEM |
394 | struct RWSEM |
394 | wait_list LHEAD |
395 | wait_list LHEAD |
395 | count dd ? |
396 | count dd ? |
396 | ends |
397 | ends |
397 | 398 | ||
398 | struct FUTEX |
399 | struct FUTEX |
399 | list LHEAD |
400 | list LHEAD |
400 | magic dd ? |
401 | magic dd ? |
401 | handle dd ? |
402 | handle dd ? |
402 | destroy dd ? |
403 | destroy dd ? |
403 | 404 | ||
404 | wait_list LHEAD |
405 | wait_list LHEAD |
405 | pointer dd ? |
406 | pointer dd ? |
406 | flags dd ? |
407 | flags dd ? |
407 | ends |
408 | ends |
408 | 409 | ||
409 | FUTEX_INIT equ 0 |
410 | FUTEX_INIT equ 0 |
410 | FUTEX_DESTROY equ 1 |
411 | FUTEX_DESTROY equ 1 |
411 | FUTEX_WAIT equ 2 |
412 | FUTEX_WAIT equ 2 |
412 | FUTEX_WAKE equ 3 |
413 | FUTEX_WAKE equ 3 |
413 | 414 | ||
414 | struct PROC |
415 | struct PROC |
415 | list LHEAD |
416 | list LHEAD |
416 | thr_list LHEAD |
417 | thr_list LHEAD |
417 | heap_lock MUTEX |
418 | heap_lock MUTEX |
418 | heap_base rd 1 |
419 | heap_base rd 1 |
419 | heap_top rd 1 |
420 | heap_top rd 1 |
420 | mem_used rd 1 |
421 | mem_used rd 1 |
421 | dlls_list_ptr rd 1 |
422 | dlls_list_ptr rd 1 |
422 | pdt_0_phys rd 1 |
423 | pdt_0_phys rd 1 |
423 | pdt_1_phys rd 1 |
424 | pdt_1_phys rd 1 |
424 | io_map_0 rd 1 |
425 | io_map_0 rd 1 |
425 | io_map_1 rd 1 |
426 | io_map_1 rd 1 |
426 | 427 | ||
427 | ht_lock rd 1 |
428 | ht_lock rd 1 |
428 | ht_free rd 1 ;htab[0] stdin |
429 | ht_free rd 1 ;htab[0] stdin |
429 | ht_next rd 1 ;htab[1] stdout |
430 | ht_next rd 1 ;htab[1] stdout |
430 | htab rd (4096-$)/4 ;htab[2] stderr |
431 | htab rd (4096-$)/4 ;htab[2] stderr |
431 | ; htab rd (4096+3072-$)/4 ;htab[2] stderr |
- | |
432 | ; workdir rb 1024 |
- | |
433 | pdt_0 rd 1024 |
432 | pdt_0 rd 2048 |
434 | ends |
433 | ends |
435 | 434 | ||
436 | struct DBG_REGS |
435 | struct DBG_REGS |
437 | dr0 dd ? |
436 | dr0 dd ? |
438 | dr1 dd ? |
437 | dr1 dd ? |
439 | dr2 dd ? |
438 | dr2 dd ? |
440 | dr3 dd ? |
439 | dr3 dd ? |
441 | dr7 dd ? |
440 | dr7 dd ? |
442 | ends |
441 | ends |
443 | 442 | ||
444 | struct POINT |
443 | struct POINT |
445 | x dd ? |
444 | x dd ? |
446 | y dd ? |
445 | y dd ? |
447 | ends |
446 | ends |
448 | 447 | ||
449 | struct RECT |
448 | struct RECT |
450 | left dd ? |
449 | left dd ? |
451 | top dd ? |
450 | top dd ? |
452 | right dd ? |
451 | right dd ? |
453 | bottom dd ? |
452 | bottom dd ? |
454 | ends |
453 | ends |
455 | 454 | ||
456 | struct BOX |
455 | struct BOX |
457 | left dd ? |
456 | left dd ? |
458 | top dd ? |
457 | top dd ? |
459 | width dd ? |
458 | width dd ? |
460 | height dd ? |
459 | height dd ? |
461 | ends |
460 | ends |
462 | 461 | ||
463 | struct APPDATA |
462 | struct APPDATA |
464 | app_name rb 11 |
463 | app_name rb 11 |
465 | rb 5 |
464 | rb 5 |
466 | 465 | ||
467 | list LHEAD ;+16 |
466 | list LHEAD ;+16 |
468 | process dd ? ;+24 |
467 | process dd ? ;+24 |
469 | fpu_state dd ? ;+28 |
468 | fpu_state dd ? ;+28 |
470 | exc_handler dd ? ;+32 |
469 | exc_handler dd ? ;+32 |
471 | except_mask dd ? ;+36 |
470 | except_mask dd ? ;+36 |
472 | pl0_stack dd ? ;+40 |
471 | pl0_stack dd ? ;+40 |
473 | cursor dd ? ;+44 |
472 | cursor dd ? ;+44 |
474 | fd_ev dd ? ;+48 |
473 | fd_ev dd ? ;+48 |
475 | bk_ev dd ? ;+52 |
474 | bk_ev dd ? ;+52 |
476 | fd_obj dd ? ;+56 |
475 | fd_obj dd ? ;+56 |
477 | bk_obj dd ? ;+60 |
476 | bk_obj dd ? ;+60 |
478 | saved_esp dd ? ;+64 |
477 | saved_esp dd ? ;+64 |
479 | io_map rd 2 ;+68 |
478 | io_map rd 2 ;+68 |
480 | dbg_state dd ? ;+76 |
479 | dbg_state dd ? ;+76 |
481 | cur_dir dd ? ;+80 |
480 | cur_dir dd ? ;+80 |
482 | wait_timeout dd ? ;+84 |
481 | wait_timeout dd ? ;+84 |
483 | saved_esp0 dd ? ;+88 |
482 | saved_esp0 dd ? ;+88 |
484 | wait_begin dd ? ;+92 +++ |
483 | wait_begin dd ? ;+92 +++ |
485 | wait_test dd ? ;+96 +++ |
484 | wait_test dd ? ;+96 +++ |
486 | wait_param dd ? ;+100 +++ |
485 | wait_param dd ? ;+100 +++ |
487 | tls_base dd ? ;+104 |
486 | tls_base dd ? ;+104 |
488 | dd ? ;+108 |
487 | dd ? ;+108 |
489 | event_filter dd ? ;+112 |
488 | event_filter dd ? ;+112 |
490 | draw_bgr_x dd ? ;+116 |
489 | draw_bgr_x dd ? ;+116 |
491 | draw_bgr_y dd ? ;+120 |
490 | draw_bgr_y dd ? ;+120 |
492 | dd ? ;+124 |
491 | dd ? ;+124 |
493 | 492 | ||
494 | wnd_shape dd ? ;+128 |
493 | wnd_shape dd ? ;+128 |
495 | wnd_shape_scale dd ? ;+132 |
494 | wnd_shape_scale dd ? ;+132 |
496 | dd ? ;+136 |
495 | dd ? ;+136 |
497 | dd ? ;+140 |
496 | dd ? ;+140 |
498 | saved_box BOX ;+144 |
497 | saved_box BOX ;+144 |
499 | ipc_start dd ? ;+160 |
498 | ipc_start dd ? ;+160 |
500 | ipc_size dd ? ;+164 |
499 | ipc_size dd ? ;+164 |
501 | event_mask dd ? ;+168 |
500 | event_mask dd ? ;+168 |
502 | debugger_slot dd ? ;+172 |
501 | debugger_slot dd ? ;+172 |
503 | terminate_protection dd ? ;+176 |
502 | terminate_protection dd ? ;+176 |
504 | keyboard_mode db ? ;+180 |
503 | keyboard_mode db ? ;+180 |
505 | rb 3 |
504 | rb 3 |
506 | exec_params dd ? ;+184 |
505 | exec_params dd ? ;+184 |
507 | dbg_event_mem dd ? ;+188 |
506 | dbg_event_mem dd ? ;+188 |
508 | dbg_regs DBG_REGS ;+192 |
507 | dbg_regs DBG_REGS ;+192 |
509 | wnd_caption dd ? ;+212 |
508 | wnd_caption dd ? ;+212 |
510 | wnd_clientbox BOX ;+216 |
509 | wnd_clientbox BOX ;+216 |
511 | priority dd ? ;+232 |
510 | priority dd ? ;+232 |
512 | in_schedule LHEAD ;+236 |
511 | in_schedule LHEAD ;+236 |
513 | ends |
512 | ends |
514 | 513 | ||
515 | APP_OBJ_OFFSET equ 48 |
514 | APP_OBJ_OFFSET equ 48 |
516 | APP_EV_OFFSET equ 40 |
515 | APP_EV_OFFSET equ 40 |
517 | 516 | ||
518 | struct TASKDATA |
517 | struct TASKDATA |
519 | event_mask dd ? |
518 | event_mask dd ? |
520 | pid dd ? |
519 | pid dd ? |
521 | dw ? |
520 | dw ? |
522 | state db ? |
521 | state db ? |
523 | db ? |
522 | db ? |
524 | dw ? |
523 | dw ? |
525 | wnd_number db ? |
524 | wnd_number db ? |
526 | db ? |
525 | db ? |
527 | mem_start dd ? |
526 | mem_start dd ? |
528 | counter_sum dd ? |
527 | counter_sum dd ? |
529 | counter_add dd ? |
528 | counter_add dd ? |
530 | cpu_usage dd ? |
529 | cpu_usage dd ? |
531 | ends |
530 | ends |
532 | 531 | ||
533 | TSTATE_RUNNING = 0 |
532 | TSTATE_RUNNING = 0 |
534 | TSTATE_RUN_SUSPENDED = 1 |
533 | TSTATE_RUN_SUSPENDED = 1 |
535 | TSTATE_WAIT_SUSPENDED = 2 |
534 | TSTATE_WAIT_SUSPENDED = 2 |
536 | TSTATE_ZOMBIE = 3 |
535 | TSTATE_ZOMBIE = 3 |
537 | TSTATE_TERMINATING = 4 |
536 | TSTATE_TERMINATING = 4 |
538 | TSTATE_WAITING = 5 |
537 | TSTATE_WAITING = 5 |
539 | TSTATE_FREE = 9 |
538 | TSTATE_FREE = 9 |
540 | 539 | ||
541 | ; constants definition |
540 | ; constants definition |
542 | WSTATE_NORMAL = 00000000b |
541 | WSTATE_NORMAL = 00000000b |
543 | WSTATE_MAXIMIZED = 00000001b |
542 | WSTATE_MAXIMIZED = 00000001b |
544 | WSTATE_MINIMIZED = 00000010b |
543 | WSTATE_MINIMIZED = 00000010b |
545 | WSTATE_ROLLEDUP = 00000100b |
544 | WSTATE_ROLLEDUP = 00000100b |
546 | 545 | ||
547 | WSTATE_REDRAW = 00000001b |
546 | WSTATE_REDRAW = 00000001b |
548 | WSTATE_WNDDRAWN = 00000010b |
547 | WSTATE_WNDDRAWN = 00000010b |
549 | 548 | ||
550 | WSTYLE_HASCAPTION = 00010000b |
549 | WSTYLE_HASCAPTION = 00010000b |
551 | WSTYLE_CLIENTRELATIVE = 00100000b |
550 | WSTYLE_CLIENTRELATIVE = 00100000b |
552 | 551 | ||
553 | ZPOS_DESKTOP = -2 |
552 | ZPOS_DESKTOP = -2 |
554 | ZPOS_ALWAYS_BACK = -1 |
553 | ZPOS_ALWAYS_BACK = -1 |
555 | ZPOS_NORMAL = 0 |
554 | ZPOS_NORMAL = 0 |
556 | ZPOS_ALWAYS_TOP = 1 ;ZPOS_ALWAYS_TOP is always last and has max number! |
555 | ZPOS_ALWAYS_TOP = 1 ;ZPOS_ALWAYS_TOP is always last and has max number! |
557 | ; structures definition |
556 | ; structures definition |
558 | struct WDATA |
557 | struct WDATA |
559 | box BOX |
558 | box BOX |
560 | cl_workarea dd ? |
559 | cl_workarea dd ? |
561 | cl_titlebar dd ? |
560 | cl_titlebar dd ? |
562 | cl_frames dd ? |
561 | cl_frames dd ? |
563 | z_modif db ? |
562 | z_modif db ? |
564 | fl_wstate db ? |
563 | fl_wstate db ? |
565 | fl_wdrawn db ? |
564 | fl_wdrawn db ? |
566 | fl_redraw db ? |
565 | fl_redraw db ? |
567 | ends |
566 | ends |
568 | 567 | ||
569 | label WDATA.fl_wstyle byte at WDATA.cl_workarea + 3 |
568 | label WDATA.fl_wstyle byte at WDATA.cl_workarea + 3 |
570 | 569 | ||
571 | 570 | ||
572 | struct SYS_VARS |
571 | struct SYS_VARS |
573 | bpp dd ? |
572 | bpp dd ? |
574 | scanline dd ? |
573 | scanline dd ? |
575 | vesa_mode dd ? |
574 | vesa_mode dd ? |
576 | x_res dd ? |
575 | x_res dd ? |
577 | y_res dd ? |
576 | y_res dd ? |
578 | ends |
577 | ends |
579 | 578 | ||
580 | struct APPOBJ ; common object header |
579 | struct APPOBJ ; common object header |
581 | magic dd ? ; |
580 | magic dd ? ; |
582 | destroy dd ? ; internal destructor |
581 | destroy dd ? ; internal destructor |
583 | fd dd ? ; next object in list |
582 | fd dd ? ; next object in list |
584 | bk dd ? ; prev object in list |
583 | bk dd ? ; prev object in list |
585 | pid dd ? ; owner id |
584 | pid dd ? ; owner id |
586 | ends |
585 | ends |
587 | 586 | ||
588 | struct CURSOR APPOBJ |
587 | struct CURSOR APPOBJ |
589 | base dd ? ;allocated memory |
588 | base dd ? ;allocated memory |
590 | hot_x dd ? ;hotspot coords |
589 | hot_x dd ? ;hotspot coords |
591 | hot_y dd ? |
590 | hot_y dd ? |
592 | 591 | ||
593 | list_next dd ? ;next cursor in cursor list |
592 | list_next dd ? ;next cursor in cursor list |
594 | list_prev dd ? ;prev cursor in cursor list |
593 | list_prev dd ? ;prev cursor in cursor list |
595 | dev_obj dd ? ;device depended data |
594 | dev_obj dd ? ;device depended data |
596 | ends |
595 | ends |
597 | 596 | ||
598 | 597 | ||
599 | struct EVENT APPOBJ |
598 | struct EVENT APPOBJ |
600 | id dd ? ;event uid |
599 | id dd ? ;event uid |
601 | state dd ? ;internal flags |
600 | state dd ? ;internal flags |
602 | code dd ? |
601 | code dd ? |
603 | rd 5 |
602 | rd 5 |
604 | ends |
603 | ends |
605 | 604 | ||
606 | 605 | ||
607 | struct SMEM |
606 | struct SMEM |
608 | bk dd ? |
607 | bk dd ? |
609 | fd dd ? ;+4 |
608 | fd dd ? ;+4 |
610 | base dd ? ;+8 |
609 | base dd ? ;+8 |
611 | size dd ? ;+12 |
610 | size dd ? ;+12 |
612 | access dd ? ;+16 |
611 | access dd ? ;+16 |
613 | refcount dd ? ;+20 |
612 | refcount dd ? ;+20 |
614 | name rb 32 ;+24 |
613 | name rb 32 ;+24 |
615 | ends |
614 | ends |
616 | 615 | ||
617 | struct SMAP APPOBJ |
616 | struct SMAP APPOBJ |
618 | base dd ? ;mapped base |
617 | base dd ? ;mapped base |
619 | parent dd ? ;SMEM |
618 | parent dd ? ;SMEM |
620 | ends |
619 | ends |
621 | 620 | ||
622 | struct DLLDESCR |
621 | struct DLLDESCR |
623 | bk dd ? |
622 | bk dd ? |
624 | fd dd ? ;+4 |
623 | fd dd ? ;+4 |
625 | data dd ? ;+8 |
624 | data dd ? ;+8 |
626 | size dd ? ;+12 |
625 | size dd ? ;+12 |
627 | timestamp dq ? |
626 | timestamp dq ? |
628 | refcount dd ? |
627 | refcount dd ? |
629 | defaultbase dd ? |
628 | defaultbase dd ? |
630 | coff_hdr dd ? |
629 | coff_hdr dd ? |
631 | symbols_ptr dd ? |
630 | symbols_ptr dd ? |
632 | symbols_num dd ? |
631 | symbols_num dd ? |
633 | symbols_lim dd ? |
632 | symbols_lim dd ? |
634 | exports dd ? ;export table |
633 | exports dd ? ;export table |
635 | name rb 260 |
634 | name rb 260 |
636 | ends |
635 | ends |
637 | 636 | ||
638 | struct HDLL |
637 | struct HDLL |
639 | fd dd ? ;next object in list |
638 | fd dd ? ;next object in list |
640 | bk dd ? ;prev object in list |
639 | bk dd ? ;prev object in list |
641 | pid dd ? ;owner id |
640 | pid dd ? ;owner id |
642 | 641 | ||
643 | base dd ? ;mapped base |
642 | base dd ? ;mapped base |
644 | size dd ? ;mapped size |
643 | size dd ? ;mapped size |
645 | refcount dd ? ;reference counter for this process and this lib |
644 | refcount dd ? ;reference counter for this process and this lib |
646 | parent dd ? ;DLLDESCR |
645 | parent dd ? ;DLLDESCR |
647 | ends |
646 | ends |
648 | 647 | ||
649 | 648 | ||
650 | struct BOOT_DATA |
649 | struct BOOT_DATA |
651 | bpp dd ? |
650 | bpp dd ? |
652 | scanline dd ? |
651 | scanline dd ? |
653 | vesa_mode dd ? |
652 | vesa_mode dd ? |
654 | x_res dd ? |
653 | x_res dd ? |
655 | y_res dd ? |
654 | y_res dd ? |
656 | mouse_port dd ? |
655 | mouse_port dd ? |
657 | bank_switch dd ? |
656 | bank_switch dd ? |
658 | lfb dd ? |
657 | lfb dd ? |
659 | vesa_mem dd ? |
658 | vesa_mem dd ? |
660 | log dd ? |
659 | log dd ? |
661 | direct_lfb dd ? |
660 | direct_lfb dd ? |
662 | pci_data dd ? |
661 | pci_data dd ? |
663 | dd ? |
662 | dd ? |
664 | vrr dd ? |
663 | vrr dd ? |
665 | ide_base dd ? |
664 | ide_base dd ? |
666 | mem_amount dd ? |
665 | mem_amount dd ? |
667 | pages_count dd ? |
666 | pages_count dd ? |
668 | pagemap_size dd ? |
667 | pagemap_size dd ? |
669 | kernel_max dd ? |
668 | kernel_max dd ? |
670 | kernel_pages dd ? |
669 | kernel_pages dd ? |
671 | kernel_tables dd ? |
670 | kernel_tables dd ? |
672 | 671 | ||
673 | cpu_vendor dd ? |
672 | cpu_vendor dd ? |
674 | dd ? |
673 | dd ? |
675 | dd ? |
674 | dd ? |
676 | cpu_sign dd ? |
675 | cpu_sign dd ? |
677 | cpu_info dd ? |
676 | cpu_info dd ? |
678 | cpu_caps dd ? |
677 | cpu_caps dd ? |
679 | dd ? |
678 | dd ? |
680 | dd ? |
679 | dd ? |
681 | ends |
680 | ends |
682 | 681 | ||
683 | struct display_t |
682 | struct display_t |
684 | x dd ? |
683 | x dd ? |
685 | y dd ? |
684 | y dd ? |
686 | width dd ? |
685 | width dd ? |
687 | height dd ? |
686 | height dd ? |
688 | bits_per_pixel dd ? |
687 | bits_per_pixel dd ? |
689 | vrefresh dd ? |
688 | vrefresh dd ? |
690 | current_lfb dd ? |
689 | current_lfb dd ? |
691 | lfb_pitch dd ? |
690 | lfb_pitch dd ? |
692 | 691 | ||
693 | win_map_lock RWSEM |
692 | win_map_lock RWSEM |
694 | win_map dd ? |
693 | win_map dd ? |
695 | win_map_pitch dd ? |
694 | win_map_pitch dd ? |
696 | win_map_size dd ? |
695 | win_map_size dd ? |
697 | 696 | ||
698 | modes dd ? |
697 | modes dd ? |
699 | ddev dd ? |
698 | ddev dd ? |
700 | connector dd ? |
699 | connector dd ? |
701 | crtc dd ? |
700 | crtc dd ? |
702 | 701 | ||
703 | cr_list.next dd ? |
702 | cr_list.next dd ? |
704 | cr_list.prev dd ? |
703 | cr_list.prev dd ? |
705 | 704 | ||
706 | cursor dd ? |
705 | cursor dd ? |
707 | 706 | ||
708 | init_cursor dd ? |
707 | init_cursor dd ? |
709 | select_cursor dd ? |
708 | select_cursor dd ? |
710 | show_cursor dd ? |
709 | show_cursor dd ? |
711 | move_cursor dd ? |
710 | move_cursor dd ? |
712 | restore_cursor dd ? |
711 | restore_cursor dd ? |
713 | disable_mouse dd ? |
712 | disable_mouse dd ? |
714 | mask_seqno dd ? |
713 | mask_seqno dd ? |
715 | check_mouse dd ? |
714 | check_mouse dd ? |
716 | check_m_pixel dd ? |
715 | check_m_pixel dd ? |
717 | 716 | ||
718 | bytes_per_pixel dd ? |
717 | bytes_per_pixel dd ? |
719 | ends |
718 | ends |
720 | 719 | ||
721 | struct DISPMODE |
720 | struct DISPMODE |
722 | width dw ? |
721 | width dw ? |
723 | height dw ? |
722 | height dw ? |
724 | bpp dw ? |
723 | bpp dw ? |
725 | freq dw ? |
724 | freq dw ? |
726 | ends |
725 | ends |
727 | 726 | ||
728 | 727 | ||
729 | struct PCIDEV |
728 | struct PCIDEV |
730 | bk dd ? |
729 | bk dd ? |
731 | fd dd ? |
730 | fd dd ? |
732 | vendor_device_id dd ? |
731 | vendor_device_id dd ? |
733 | class dd ? |
732 | class dd ? |
734 | devfn db ? |
733 | devfn db ? |
735 | bus db ? |
734 | bus db ? |
736 | rb 2 |
735 | rb 2 |
737 | owner dd ? ; pointer to SRV or 0 |
736 | owner dd ? ; pointer to SRV or 0 |
738 | ends |
737 | ends |
739 | 738 | ||
740 | struct IDE_DATA |
739 | struct IDE_DATA |
741 | ProgrammingInterface dd ? |
740 | ProgrammingInterface dd ? |
742 | Interrupt dw ? |
741 | Interrupt dw ? |
743 | RegsBaseAddres dw ? |
742 | RegsBaseAddres dw ? |
744 | BAR0_val dw ? |
743 | BAR0_val dw ? |
745 | BAR1_val dw ? |
744 | BAR1_val dw ? |
746 | BAR2_val dw ? |
745 | BAR2_val dw ? |
747 | BAR3_val dw ? |
746 | BAR3_val dw ? |
748 | dma_hdd_channel_1 db ? |
747 | dma_hdd_channel_1 db ? |
749 | dma_hdd_channel_2 db ? |
748 | dma_hdd_channel_2 db ? |
750 | ends |
749 | ends |
751 | 750 | ||
752 | struct IDE_CACHE |
751 | struct IDE_CACHE |
753 | pointer dd ? |
752 | pointer dd ? |
754 | size dd ? ; not use |
753 | size dd ? ; not use |
755 | data_pointer dd ? |
754 | data_pointer dd ? |
756 | system_data_size dd ? ; not use |
755 | system_data_size dd ? ; not use |
757 | appl_data_size dd ? ; not use |
756 | appl_data_size dd ? ; not use |
758 | system_data dd ? |
757 | system_data dd ? |
759 | appl_data dd ? |
758 | appl_data dd ? |
760 | system_sad_size dd ? |
759 | system_sad_size dd ? |
761 | appl_sad_size dd ? |
760 | appl_sad_size dd ? |
762 | search_start dd ? |
761 | search_start dd ? |
763 | appl_search_start dd ? |
762 | appl_search_start dd ? |
764 | ends |
763 | ends |
765 | 764 | ||
766 | struct IDE_DEVICE |
765 | struct IDE_DEVICE |
767 | UDMA_possible_modes db ? |
766 | UDMA_possible_modes db ? |
768 | UDMA_set_mode db ? |
767 | UDMA_set_mode db ? |
769 | ends |
768 | ends |
770 | 769 | ||
771 | ; The following macro assume that we are on uniprocessor machine. |
770 | ; The following macro assume that we are on uniprocessor machine. |
772 | ; Serious work is needed for multiprocessor machines. |
771 | ; Serious work is needed for multiprocessor machines. |
773 | macro spin_lock_irqsave spinlock |
772 | macro spin_lock_irqsave spinlock |
774 | { |
773 | { |
775 | pushf |
774 | pushf |
776 | cli |
775 | cli |
777 | } |
776 | } |
778 | macro spin_unlock_irqrestore spinlock |
777 | macro spin_unlock_irqrestore spinlock |
779 | { |
778 | { |
780 | popf |
779 | popf |
781 | } |
780 | } |
782 | macro spin_lock_irq spinlock |
781 | macro spin_lock_irq spinlock |
783 | { |
782 | { |
784 | cli |
783 | cli |
785 | } |
784 | } |
786 | macro spin_unlock_irq spinlock |
785 | macro spin_unlock_irq spinlock |
787 | { |
786 | { |
788 | sti |
787 | sti |
789 | } |
788 | } |
790 | 789 | ||
791 | struct MEM_STATE |
790 | struct MEM_STATE |
792 | mutex MUTEX |
791 | mutex MUTEX |
793 | smallmap dd ? |
792 | smallmap dd ? |
794 | treemap dd ? |
793 | treemap dd ? |
795 | topsize dd ? |
794 | topsize dd ? |
796 | top dd ? |
795 | top dd ? |
797 | smallbins rd 4*32 |
796 | smallbins rd 4*32 |
798 | treebins rd 32 |
797 | treebins rd 32 |
799 | ends |
798 | ends |
800 | 799 | ||
801 | struct PG_DATA |
800 | struct PG_DATA |
802 | mem_amount dd ? |
801 | mem_amount dd ? |
803 | vesa_mem dd ? |
802 | vesa_mem dd ? |
804 | pages_count dd ? |
803 | pages_count dd ? |
805 | pages_free dd ? |
804 | pages_free dd ? |
806 | pages_faults dd ? |
805 | pages_faults dd ? |
807 | pagemap_size dd ? |
806 | pagemap_size dd ? |
808 | kernel_pages dd ? |
807 | kernel_pages dd ? |
809 | kernel_tables dd ? |
808 | kernel_tables dd ? |
810 | sys_page_dir dd ? |
809 | sys_page_dir dd ? |
811 | mutex MUTEX |
810 | mutex MUTEX |
812 | ends |
811 | ends |
813 | 812 | ||
814 | struct SRV |
813 | struct SRV |
815 | srv_name rb 16 ;ASCIIZ string |
814 | srv_name rb 16 ;ASCIIZ string |
816 | magic dd ? ;+0x10 ;'SRV ' |
815 | magic dd ? ;+0x10 ;'SRV ' |
817 | size dd ? ;+0x14 ;size of structure SRV |
816 | size dd ? ;+0x14 ;size of structure SRV |
818 | fd dd ? ;+0x18 ;next SRV descriptor |
817 | fd dd ? ;+0x18 ;next SRV descriptor |
819 | bk dd ? ;+0x1C ;prev SRV descriptor |
818 | bk dd ? ;+0x1C ;prev SRV descriptor |
820 | base dd ? ;+0x20 ;service base address |
819 | base dd ? ;+0x20 ;service base address |
821 | entry dd ? ;+0x24 ;service START function |
820 | entry dd ? ;+0x24 ;service START function |
822 | srv_proc dd ? ;+0x28 ;user mode service handler |
821 | srv_proc dd ? ;+0x28 ;user mode service handler |
823 | srv_proc_ex dd ? ;+0x2C ;kernel mode service handler |
822 | srv_proc_ex dd ? ;+0x2C ;kernel mode service handler |
824 | ends |
823 | ends |
825 | 824 | ||
826 | struct USBSRV |
825 | struct USBSRV |
827 | srv SRV |
826 | srv SRV |
828 | usb_func dd ? |
827 | usb_func dd ? |
829 | ends |
828 | ends |
830 | 829 | ||
831 | struct USBFUNC |
830 | struct USBFUNC |
832 | strucsize dd ? |
831 | strucsize dd ? |
833 | add_device dd ? |
832 | add_device dd ? |
834 | device_disconnect dd ? |
833 | device_disconnect dd ? |
835 | ends |
834 | ends |
836 | 835 | ||
837 | DRV_ENTRY equ 1 |
836 | DRV_ENTRY equ 1 |
838 | DRV_EXIT equ -1 |
837 | DRV_EXIT equ -1 |
839 | 838 | ||
840 | struct COFF_HEADER |
839 | struct COFF_HEADER |
841 | machine dw ? |
840 | machine dw ? |
842 | nSections dw ? |
841 | nSections dw ? |
843 | DataTime dd ? |
842 | DataTime dd ? |
844 | pSymTable dd ? |
843 | pSymTable dd ? |
845 | nSymbols dd ? |
844 | nSymbols dd ? |
846 | optHeader dw ? |
845 | optHeader dw ? |
847 | flags dw ? |
846 | flags dw ? |
848 | ends |
847 | ends |
849 | 848 | ||
850 | struct COFF_SECTION |
849 | struct COFF_SECTION |
851 | Name rb 8 |
850 | Name rb 8 |
852 | VirtualSize dd ? |
851 | VirtualSize dd ? |
853 | VirtualAddress dd ? |
852 | VirtualAddress dd ? |
854 | SizeOfRawData dd ? |
853 | SizeOfRawData dd ? |
855 | PtrRawData dd ? |
854 | PtrRawData dd ? |
856 | PtrReloc dd ? |
855 | PtrReloc dd ? |
857 | PtrLinenumbers dd ? |
856 | PtrLinenumbers dd ? |
858 | NumReloc dw ? |
857 | NumReloc dw ? |
859 | NumLinenum dw ? |
858 | NumLinenum dw ? |
860 | Characteristics dd ? |
859 | Characteristics dd ? |
861 | ends |
860 | ends |
862 | 861 | ||
863 | struct COFF_RELOC |
862 | struct COFF_RELOC |
864 | VirtualAddress dd ? |
863 | VirtualAddress dd ? |
865 | SymIndex dd ? |
864 | SymIndex dd ? |
866 | Type dw ? |
865 | Type dw ? |
867 | ends |
866 | ends |
868 | 867 | ||
869 | struct COFF_SYM |
868 | struct COFF_SYM |
870 | Name rb 8 |
869 | Name rb 8 |
871 | Value dd ? |
870 | Value dd ? |
872 | SectionNumber dw ? |
871 | SectionNumber dw ? |
873 | Type dw ? |
872 | Type dw ? |
874 | StorageClass db ? |
873 | StorageClass db ? |
875 | NumAuxSymbols db ? |
874 | NumAuxSymbols db ? |
876 | ends |
875 | ends |
877 | 876 | ||
878 | struct STRIPPED_PE_HEADER |
877 | struct STRIPPED_PE_HEADER |
879 | Signature dw ? |
878 | Signature dw ? |
880 | Characteristics dw ? |
879 | Characteristics dw ? |
881 | AddressOfEntryPoint dd ? |
880 | AddressOfEntryPoint dd ? |
882 | ImageBase dd ? |
881 | ImageBase dd ? |
883 | SectionAlignmentLog db ? |
882 | SectionAlignmentLog db ? |
884 | FileAlignmentLog db ? |
883 | FileAlignmentLog db ? |
885 | MajorOSVersion db ? |
884 | MajorOSVersion db ? |
886 | MinorOSVersion db ? |
885 | MinorOSVersion db ? |
887 | SizeOfImage dd ? |
886 | SizeOfImage dd ? |
888 | SizeOfStackReserve dd ? |
887 | SizeOfStackReserve dd ? |
889 | SizeOfHeapReserve dd ? |
888 | SizeOfHeapReserve dd ? |
890 | SizeOfHeaders dd ? |
889 | SizeOfHeaders dd ? |
891 | Subsystem db ? |
890 | Subsystem db ? |
892 | NumberOfRvaAndSizes db ? |
891 | NumberOfRvaAndSizes db ? |
893 | NumberOfSections dw ? |
892 | NumberOfSections dw ? |
894 | ends |
893 | ends |
895 | STRIPPED_PE_SIGNATURE = 0x4503 ; 'PE' xor 'S' |
894 | STRIPPED_PE_SIGNATURE = 0x4503 ; 'PE' xor 'S' |
896 | SPE_DIRECTORY_IMPORT = 0 |
895 | SPE_DIRECTORY_IMPORT = 0 |
897 | SPE_DIRECTORY_EXPORT = 1 |
896 | SPE_DIRECTORY_EXPORT = 1 |
898 | SPE_DIRECTORY_BASERELOC = 2 |
897 | SPE_DIRECTORY_BASERELOC = 2 |
899 | 898 | ||
900 | struct IOCTL |
899 | struct IOCTL |
901 | handle dd ? |
900 | handle dd ? |
902 | io_code dd ? |
901 | io_code dd ? |
903 | input dd ? |
902 | input dd ? |
904 | inp_size dd ? |
903 | inp_size dd ? |
905 | output dd ? |
904 | output dd ? |
906 | out_size dd ? |
905 | out_size dd ? |
907 | ends |
906 | ends |
908 | 907 | ||
909 | struct IRQH |
908 | struct IRQH |
910 | list LHEAD |
909 | list LHEAD |
911 | handler dd ? ;handler roututine |
910 | handler dd ? ;handler roututine |
912 | data dd ? ;user-specific data |
911 | data dd ? ;user-specific data |
913 | num_ints dd ? ;how many times handled |
912 | num_ints dd ? ;how many times handled |
914 | ends8)|WB |
913 | ends8)|WB |
915 | 914 | ||
916 | ;;;;;;;;;;;boot><8)|WB |
915 | ;;;;;;;;;;;boot><8)|WB |
917 | 916 | ||
918 | ;;;;;;;;;;;boot>16)|(WC<<8)|WB |
917 | ;;;;;;;;;;;boot>16)|(WC<<8)|WB |
919 | 918 | ||
920 | ;;;;;;;;;;;boot><16)|(WC<<8)|WB |
919 | ;;;;;;;;;;;boot><16)|(WC<<8)|WB |
921 | 920 | ||
922 | ;;;;;;;;;;;boot>24)|(UCM<<16)|(WC<<8)|WB |
921 | ;;;;;;;;;;;boot>24)|(UCM<<16)|(WC<<8)|WB |
923 | 922 | ||
924 | ;;;;;;;;;;;boot><24)|(UCM<<16)|(WC<<8)|WB |
923 | ;;;;;;;;;;;boot><24)|(UCM<<16)|(WC<<8)|WB |
925 | 924 | ||
926 | ;;;;;;;;;;;boot> |
925 | ;;;;;;;;;;;boot> |