Rev 10051 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1349 | art_zh | 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
||
10051 | ace_dent | 3 | ;; Copyright (C) KolibriOS team 2004-2024. All rights reserved. ;; |
1349 | art_zh | 4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
||
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
||
7 | |||
8 | |||
9 | keymap: |
||
10 | |||
11 | db '6',27 |
||
12 | db '1234567890-=',8,9 |
||
13 | db 'qwertyuiop[]',13 |
||
14 | db '~asdfghjkl;',39,96,0,'\zxcvbnm,./',0,'45 ' |
||
15 | db '@234567890123',180,178,184,'6',176,'7' |
||
16 | db 179,'8',181,177,183,185,182 |
||
17 | db 'AB |
||
18 | db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
19 | db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
20 | db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
21 | |||
22 | keymap_shift: |
||
23 | db '6',27 |
||
24 | db '!@#$%^&*()_+',8,9 |
||
25 | db 'QWERTYUIOP{}',13 |
||
26 | db '~ASDFGHJKL:"~',0,'|ZXCVBNM<>?',0,'45 ' |
||
27 | db '@234567890123',180,178,184,'6',176,'7' |
||
28 | db 179,'8',181,177,183,185,182 |
||
29 | db 'AB>D',255,'FGHIJKLMNOPQRSTUVWXYZ' |
||
30 | db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
31 | db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
32 | db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
33 | |||
34 | |||
35 | keymap_alt: |
||
36 | db ' ',27 |
||
37 | db ' @ $ {[]}\ ',8,9 |
||
38 | db ' ',13 |
||
39 | db ' ',0,' ',0,'4',0,' ' |
||
40 | db ' ',180,178,184,'6',176,'7' |
||
41 | db 179,'8',181,177,183,185,182 |
||
42 | db 'ABCD',255,'FGHIJKLMNOPQRSTUVWXYZ' |
||
43 | db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
44 | db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
45 | db 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
||
46 | |||
47 | |||
2104 | maximYCH | 48 | |
49 | if lang eq ru |
||
4135 | clevermous | 50 | boot_initirq cp866 'Инициализация IRQ',0 |
51 | boot_picinit cp866 'Инициализация PIC',0 |
||
4273 | clevermous | 52 | boot_v86machine cp866 'Инициализация системной V86 машины',0 |
4135 | clevermous | 53 | boot_inittimer cp866 'Инициализация системного таймера (IRQ0)',0 |
54 | boot_initapic cp866 'Попытка инициализации APIC',0 |
||
55 | boot_enableirq cp866 'Включить прерывания 2, 13',0 |
||
56 | boot_disabling_ide cp866 'Запрещение прерываний в контроллере IDE',0 |
||
57 | boot_enabling_ide cp866 'Разрешение прерываний в контроллере IDE',0 |
||
58 | boot_set_int_IDE cp866 'Установка обработчиков прерываний IDE',0 |
||
59 | boot_detectfloppy cp866 'Поиск floppy дисководов',0 |
||
60 | boot_detecthdcd cp866 'Поиск жестких дисков и ATAPI приводов',0 |
||
61 | boot_getcache cp866 'Получение памяти для кэша',0 |
||
62 | boot_detectpart cp866 'Поиск разделов на дисковых устройствах',0 |
||
63 | boot_init_sys cp866 'Инициализация системного каталога /sys',0 |
||
64 | boot_loadlibs cp866 'Загрузка библиотек (.obj)',0 |
||
65 | boot_memdetect cp866 'Количество оперативной памяти',' ',' Мб',0 |
||
66 | boot_tss cp866 'Установка TSSs',0 |
||
67 | boot_cpuid cp866 'Чтение CPUIDs',0 |
||
68 | ; boot_devices cp866 'Поиск устройств',0 |
||
69 | boot_timer cp866 'Установка таймера',0 |
||
4273 | clevermous | 70 | boot_initramdisk cp866 'Инициализация рамдиска',0 |
4135 | clevermous | 71 | boot_irqs cp866 'Переопределение IRQ',0 |
72 | boot_setmouse cp866 'Установка мыши',0 |
||
73 | boot_windefs cp866 'Установка настроек окон по умолчанию',0 |
||
74 | boot_bgr cp866 'Установка фона',0 |
||
75 | boot_resirqports cp866 'Резервирование IRQ и портов',0 |
||
76 | boot_setrports cp866 'Установка адресов IRQ',0 |
||
77 | boot_setostask cp866 'Создание процесса ядра',0 |
||
78 | boot_allirqs cp866 'Открытие всех IRQ',0 |
||
79 | boot_tsc cp866 'Чтение TSC',0 |
||
80 | boot_cpufreq cp866 'Частота процессора ',' ',' МГц',0 |
||
81 | boot_pal_ega cp866 'Установка EGA/CGA 320x200 палитры',0 |
||
82 | boot_pal_vga cp866 'Установка VGA 640x480 палитры',0 |
||
83 | boot_failed cp866 'Загрузка первого приложения не удалась',0 |
||
84 | boot_mtrr cp866 'Установка MTRR',0 |
||
3481 | Serge | 85 | |
4135 | clevermous | 86 | boot_APIC_found cp866 'APIC включен', 0 |
87 | boot_APIC_nfound cp866 'APIC не найден', 0 |
||
2104 | maximYCH | 88 | if preboot_blogesc |
4135 | clevermous | 89 | boot_tasking cp866 'Все готово для запуска, нажмитре ESC для старта',0 |
2104 | maximYCH | 90 | end if |
3274 | esevece | 91 | else if lang eq sp |
92 | include 'data32sp.inc' |
||
3927 | kaitz | 93 | else if lang eq et |
94 | include 'data32et.inc' |
||
2104 | maximYCH | 95 | else |
2642 | mario79 | 96 | boot_initirq db 'Initialize IRQ',0 |
97 | boot_picinit db 'Initialize PIC',0 |
||
98 | boot_v86machine db 'Initialize system V86 machine',0 |
||
99 | boot_inittimer db 'Initialize system timer (IRQ0)',0 |
||
4273 | clevermous | 100 | boot_initramdisk db 'Initialize ramdisk',0 |
2642 | mario79 | 101 | boot_initapic db 'Try to initialize APIC',0 |
3775 | mario79 | 102 | boot_enableirq db 'Enable interrupts 2, 13',0 |
3762 | mario79 | 103 | boot_disabling_ide db 'Disable interrupts in IDE controller',0 |
104 | boot_enabling_ide db 'Enable interrupts in IDE controller',0 |
||
3778 | mario79 | 105 | boot_set_int_IDE db 'Set handler of interrupts for IDE',0 |
2642 | mario79 | 106 | boot_detectfloppy db 'Search floppy drives',0 |
107 | boot_detecthdcd db 'Search hard drives and ATAPI drives',0 |
||
108 | boot_getcache db 'Get memory for cache',0 |
||
109 | boot_detectpart db 'Search partitions on disk devices',0 |
||
110 | boot_init_sys db 'Initialize system directory /sys',0 |
||
111 | boot_loadlibs db 'Loading librares (.obj)',0 |
||
1349 | art_zh | 112 | boot_memdetect db 'Determining amount of memory',0 |
113 | boot_tss db 'Setting TSSs',0 |
||
114 | boot_cpuid db 'Reading CPUIDs',0 |
||
2642 | mario79 | 115 | ; boot_devices db 'Detecting devices',0 |
1349 | art_zh | 116 | boot_setmouse db 'Setting mouse',0 |
117 | boot_windefs db 'Setting window defaults',0 |
||
118 | boot_bgr db 'Calculating background',0 |
||
119 | boot_resirqports db 'Reserving IRQs & ports',0 |
||
120 | boot_setostask db 'Setting OS task',0 |
||
2288 | clevermous | 121 | boot_allirqs db 'Unmasking IRQs',0 |
1349 | art_zh | 122 | boot_tsc db 'Reading TSC',0 |
123 | boot_cpufreq db 'CPU frequency is ',' ',' MHz',0 |
||
124 | boot_pal_ega db 'Setting EGA/CGA 320x200 palette',0 |
||
125 | boot_pal_vga db 'Setting VGA 640x480 palette',0 |
||
126 | boot_failed db 'Failed to start first app',0 |
||
127 | boot_mtrr db 'Setting MTRR',0 |
||
3481 | Serge | 128 | |
2642 | mario79 | 129 | boot_APIC_found db 'APIC enabled', 0 |
130 | boot_APIC_nfound db 'APIC not found', 0 |
||
1349 | art_zh | 131 | if preboot_blogesc |
132 | boot_tasking db 'All set - press ESC to start',0 |
||
133 | end if |
||
2104 | maximYCH | 134 | end if |
1349 | art_zh | 135 | |
136 | ;new_process_loading db 'K : New Process - loading',13,10,0 |
||
137 | ;new_process_running db 'K : New Process - done',13,10,0 |
||
138 | start_not_enough_memory db 'K : New Process - not enough memory',13,10,0 |
||
139 | |||
140 | msg_unresolved db 'unresolved ',0 |
||
5088 | clevermous | 141 | ;msg_module db 'in module ',0 |
142 | ;if ~ lang eq sp |
||
143 | ;msg_version db 'incompatible driver version',13,10,0 |
||
144 | ;msg_www db 'please visit www.kolibrios.org',13,10,0 |
||
145 | ;end if |
||
1349 | art_zh | 146 | msg_CR db 13,10,0 |
147 | |||
8088 | dunkaist | 148 | szPS2MDriver db '/sys/drivers/PS2MOUSE.SYS',0 |
1349 | art_zh | 149 | ;szCOM_MDriver db 'COM_MOUSE',0 |
8088 | dunkaist | 150 | szVidintel db '/sys/drivers/vidintel.sys',0 |
1349 | art_zh | 151 | szUSB db 'USB',0 |
152 | |||
153 | szEXPORTS db 'EXPORTS',0 |
||
154 | sz_EXPORTS db '_EXPORTS',0 |
||
155 | |||
156 | szIMPORTS db 'IMPORTS',0 |
||
157 | |||
158 | read_firstapp db '/sys/' |
||
8088 | dunkaist | 159 | firstapp db '/sys/LAUNCHER',0 |
160 | notifyapp db '/sys/@notify',0 |
||
1948 | clevermous | 161 | if lang eq ru |
4135 | clevermous | 162 | ud_user_message cp866 'Ошибка: неподдерживаемая инструкция процессора',0 |
4793 | yogev_ezra | 163 | mtrr_user_message cp866 '"Обнаружена проблема с конфигурацией MTRR.\nПроизводительность может быть пониженной" -dW',0 |
3929 | kaitz | 164 | else if ~ lang eq sp |
1948 | clevermous | 165 | ud_user_message db 'Error: unsupported processor instruction',0 |
4793 | yogev_ezra | 166 | mtrr_user_message db '"There is a problem with MTRR configuration.\nPerformance can be low" -dW',0 |
1948 | clevermous | 167 | end if |
1349 | art_zh | 168 | |
4273 | clevermous | 169 | kernel_file_load: |
6244 | serge | 170 | ; load kernel.mnt to _CLEAN_ZONE |
4273 | clevermous | 171 | dd 0 ; subfunction |
172 | dq 0 ; offset in file |
||
6244 | serge | 173 | dd 0x31000 ; number of bytes to read |
174 | dd _CLEAN_ZONE ; buffer for data |
||
8088 | dunkaist | 175 | db '/sys/KERNEL.MNT',0 |
1349 | art_zh | 176 | |
9813 | vitalkrilo | 177 | dev_data_path db '/RD/1/DRIVERS/DEVICES.DAT',0 |
8671 | Coldy | 178 | ; { Patch by Coldy, For DLL autoload |
9756 | vitalkrilo | 179 | dll_lib_path db '/SYS/LIB/DLL.OBJ',0 |
10051 | ace_dent | 180 | dll_error_msg db '"DLL.OBJ not found!\nTerminate application!" -dE',0 |
8671 | Coldy | 181 | ; } End patch by Coldy, For DLL autoload |
1349 | art_zh | 182 | align 4 |
183 | |||
184 | shmem_list: |
||
185 | .bk dd shmem_list |
||
186 | .fd dd shmem_list |
||
187 | |||
188 | dll_list: |
||
189 | .bk dd dll_list |
||
190 | .fd dd dll_list |
||
191 | |||
3393 | clevermous | 192 | pcidev_list: |
193 | .bk dd pcidev_list |
||
194 | .fd dd pcidev_list |
||
195 | |||
2412 | Serge | 196 | MAX_DEFAULT_DLL_ADDR = 0x80000000 |
197 | MIN_DEFAULT_DLL_ADDR = 0x70000000 |
||
1349 | art_zh | 198 | dll_cur_addr dd MIN_DEFAULT_DLL_ADDR |
199 | |||
200 | |||
10056 | dunkaist | 201 | if lang eq en_US |
7601 | dunkaist | 202 | SYSLANG = 1 |
10056 | dunkaist | 203 | else if lang eq fi_FI |
7601 | dunkaist | 204 | SYSLANG = 2 |
10056 | dunkaist | 205 | else if lang eq de_DE |
7601 | dunkaist | 206 | SYSLANG = 3 |
10056 | dunkaist | 207 | else if lang eq ru_RU |
7601 | dunkaist | 208 | SYSLANG = 4 |
10056 | dunkaist | 209 | else if lang eq fr_FR |
7601 | dunkaist | 210 | SYSLANG = 5 |
10056 | dunkaist | 211 | else if lang eq et_EE |
7601 | dunkaist | 212 | SYSLANG = 6 |
10056 | dunkaist | 213 | else if lang eq uk_UA |
7601 | dunkaist | 214 | SYSLANG = 7 |
10056 | dunkaist | 215 | else if lang eq it_IT |
7601 | dunkaist | 216 | SYSLANG = 8 |
10056 | dunkaist | 217 | else if lang eq nl_BE |
9822 | dunkaist | 218 | SYSLANG = 9 |
10056 | dunkaist | 219 | else if lang eq es_ES |
9822 | dunkaist | 220 | SYSLANG = 10 |
10056 | dunkaist | 221 | else if lang eq ca_ES |
9822 | dunkaist | 222 | SYSLANG = 11 |
7601 | dunkaist | 223 | else |
224 | display 'unsupported language specified',13,10 |
||
225 | end if |
||
10056 | dunkaist | 226 | align 4 |
7601 | dunkaist | 227 | syslang dd SYSLANG |
10056 | dunkaist | 228 | keyboard dd SYSLANG |
7601 | dunkaist | 229 | |
1349 | art_zh | 230 | boot_y dd 10 |
231 | |||
232 | pci_bios_entry dd 0 |
||
233 | dw pci_code_sel |
||
234 | |||
235 | if __DEBUG__ eq 1 |
||
236 | include_debug_strings |
||
237 | end if |
||
238 | |||
239 | IncludeIGlobals |
||
240 | |||
241 | align 16 |
||
242 | gdts: |
||
243 | |||
244 | dw gdte-$-1 |
||
245 | dd gdts |
||
246 | dw 0 |
||
247 | |||
248 | ; Attention! Do not change the order of the first four selectors. They are used in Fast System Call |
||
249 | ; must be : os_code, os_data, app_code, app_data, .... |
||
250 | |||
251 | int_code_l: |
||
252 | os_code_l: |
||
253 | dw 0xffff |
||
254 | dw 0x0000 |
||
255 | db 0x00 |
||
256 | dw 11011111b *256 +10011010b |
||
257 | db 0x00 |
||
258 | |||
259 | int_data_l: |
||
260 | os_data_l: |
||
261 | dw 0xffff |
||
262 | dw 0x0000 |
||
263 | db 0x00 |
||
264 | dw 11011111b *256 +10010010b |
||
265 | db 0x00 |
||
266 | |||
267 | app_code_l: |
||
268 | dw 0xFFFF |
||
269 | dw 0 |
||
270 | db 0 |
||
271 | db cpl3 |
||
272 | dw G32+D32+0xF; |
||
273 | |||
274 | app_data_l: |
||
275 | dw 0xFFFF |
||
276 | dw 0 |
||
277 | db 0 |
||
278 | db drw3 |
||
279 | dw G32+D32+0xF; |
||
280 | |||
281 | ; ------------- PCI BIOS ------------------ |
||
282 | |||
283 | pci_code_32: |
||
284 | dw 0 ;lim 0-15 |
||
285 | dw 0 ;base 0-15 |
||
286 | db 0 ;base 16-23 |
||
287 | db cpl0 ;type |
||
288 | db D32 ;lim 16-19+props |
||
289 | db 0 ;base 24-31 |
||
290 | |||
291 | pci_data_32: |
||
292 | dw 0 ;lim 0-15 |
||
293 | dw 0 ;base 0-15 |
||
294 | db 0 ;base 16-23 |
||
295 | db dpl0 ;type |
||
296 | db D32 ;lim 16-19+props |
||
297 | db 0 ;base 24-31 |
||
298 | |||
299 | ; --------------- APM --------------------- |
||
300 | apm_code_32: |
||
301 | dw 0x0f ; limit 64kb |
||
302 | db 0, 0, 0 |
||
303 | dw 11010000b *256 +10011010b |
||
304 | db 0x00 |
||
305 | apm_code_16: |
||
306 | dw 0x0f |
||
307 | db 0, 0, 0 |
||
308 | dw 10010000b *256 +10011010b |
||
309 | db 0x00 |
||
310 | apm_data_16: |
||
311 | dw 0x0f |
||
312 | db 0, 0, 0 |
||
313 | dw 10010000b *256 +10010010b |
||
314 | db 0x00 |
||
315 | ; ----------------------------------------- |
||
316 | |||
317 | graph_data_l: |
||
318 | |||
319 | dw 0x7ff |
||
320 | dw 0x0000 |
||
321 | db 0x00 |
||
322 | dw 11010000b *256 +11110010b |
||
323 | db 0x00 |
||
324 | tss0_l: |
||
2384 | hidnplayr | 325 | dw sizeof.TSS-1 |
1349 | art_zh | 326 | dw tss and 0xFFFF |
327 | db (tss shr 16) and 0xFF |
||
328 | db 10001001b |
||
329 | dw (tss shr 16) and 0xFF00 |
||
330 | |||
331 | tls_data_l: |
||
332 | dw 0x0FFF |
||
333 | dw 0 |
||
334 | db 0 |
||
335 | db drw3 |
||
336 | dw D32 |
||
337 | |||
338 | gdte: |
||
339 | |||
3627 | Serge | 340 | diff16 "end of .data segment",0,$ |
7721 | dunkaist | 341 | endofcode: |
3627 | Serge | 342 | |
1349 | art_zh | 343 | align 16 |
2430 | mario79 | 344 | cur_saved_data: |
6585 | pathoswith | 345 | rb 4096 |
7276 | dunkaist | 346 | align 64 |
2288 | clevermous | 347 | fpu_data: |
7276 | dunkaist | 348 | rb 0xa80 ; bochs avx512 |
7165 | clevermous | 349 | fpu_data_size = $ - fpu_data |
9930 | Doczom | 350 | |
7522 | dunkaist | 351 | BPSLine_calc_area rd MAX_SCREEN_HEIGHT |
352 | d_width_calc_area rd MAX_SCREEN_HEIGHT |
||
1349 | art_zh | 353 | |
6585 | pathoswith | 354 | mem_block_list rd 64*2 |
355 | mem_used_list rd 64*2 |
||
356 | mem_hash_cnt rd 64 |
||
1349 | art_zh | 357 | |
6585 | pathoswith | 358 | thr_slot_map rd 8 |
5130 | serge | 359 | |
6585 | pathoswith | 360 | _display display_t |
361 | bios_fb FRB |
||
3481 | Serge | 362 | |
3732 | Serge | 363 | mst MEM_STATE |
1349 | art_zh | 364 | |
6585 | pathoswith | 365 | cpu_freq dq ? |
1349 | art_zh | 366 | |
6585 | pathoswith | 367 | heap_mutex MUTEX |
368 | heap_size dd ? |
||
369 | heap_free dd ? |
||
370 | heap_blocks dd ? |
||
371 | free_blocks dd ? |
||
372 | mem_block_mask rd 2 |
||
373 | next_memblock dd ? |
||
1349 | art_zh | 374 | |
6585 | pathoswith | 375 | pte_valid_mask dd ? |
376 | page_start dd ? |
||
377 | page_end dd ? |
||
378 | sys_page_map dd ? |
||
379 | os_stack_seg dd ? |
||
1349 | art_zh | 380 | |
6585 | pathoswith | 381 | srv.fd dd ? |
382 | srv.bk dd ? |
||
1349 | art_zh | 383 | |
6585 | pathoswith | 384 | LFBAddress dd ? |
1349 | art_zh | 385 | |
6585 | pathoswith | 386 | PUTPIXEL dd ? |
387 | GETPIXEL dd ? |
||
3606 | Serge | 388 | |
3627 | Serge | 389 | if VESA_1_2_VIDEO |
6585 | pathoswith | 390 | BANK_SWITCH dd ? ; reserved for vesa 1.2 |
391 | BANK_RW dd ? |
||
3627 | Serge | 392 | end if |
393 | |||
6585 | pathoswith | 394 | def_cursor dd ? |
395 | def_cursor_clock dd ? |
||
9848 | rgimad | 396 | def_cursor_hresize dd ? |
397 | def_cursor_vresize dd ? |
||
398 | def_cursor_dresize1 dd ? |
||
399 | def_cursor_dresize2 dd ? |
||
6585 | pathoswith | 400 | current_cursor dd ? |
401 | cur_saved_base dd ? |
||
3627 | Serge | 402 | |
6585 | pathoswith | 403 | cur.lock dd ? ; 1 - lock update, 2- hide |
404 | cur.left dd ? ; cursor clip box |
||
405 | cur.top dd ? |
||
406 | cur.w dd ? |
||
407 | cur.h dd ? |
||
3627 | Serge | 408 | |
6585 | pathoswith | 409 | ipc_tmp dd ? |
410 | ipc_pdir dd ? |
||
411 | ipc_ptab dd ? |
||
3627 | Serge | 412 | |
6585 | pathoswith | 413 | proc_mem_map dd ? |
414 | proc_mem_pdir dd ? |
||
415 | proc_mem_tab dd ? |
||
3627 | Serge | 416 | |
6585 | pathoswith | 417 | tmp_task_ptab dd ? |
3627 | Serge | 418 | |
6585 | pathoswith | 419 | default_io_map dd ? |
1349 | art_zh | 420 | |
6585 | pathoswith | 421 | LFBSize dd ? |
1349 | art_zh | 422 | |
6585 | pathoswith | 423 | current_process dd ? |
8869 | rgimad | 424 | current_slot dd ? ; pointer to APPDATA of current thread |
425 | current_slot_idx dd ? ; index of current thread slot |
||
8866 | rgimad | 426 | thread_count dd ? |
3727 | Serge | 427 | |
6585 | pathoswith | 428 | ; device addresses |
9930 | Doczom | 429 | ;cdbase dd ? |
430 | ;cdid dd ? |
||
1349 | art_zh | 431 | |
6585 | pathoswith | 432 | hdbase dd ? ; for boot 0x1f0 |
433 | hdid dd ? |
||
434 | hdpos dd ? ; for boot 0x1 |
||
435 | cdpos dd ? |
||
1349 | art_zh | 436 | |
6585 | pathoswith | 437 | ;CPUID information |
438 | cpu_vendor rd 3 |
||
439 | cpu_sign dd ? |
||
440 | cpu_info dd ? |
||
441 | cpu_caps rd 4 |
||
1349 | art_zh | 442 | |
7124 | dunkaist | 443 | xsave_area_size dd ? |
7276 | dunkaist | 444 | xsave_eax dd ? |
445 | xsave_edx dd ? |
||
7124 | dunkaist | 446 | |
6585 | pathoswith | 447 | pg_data PG_DATA |
448 | heap_test dd ? |
||
1349 | art_zh | 449 | |
6585 | pathoswith | 450 | skin_data dd ? |
1349 | art_zh | 451 | |
6585 | pathoswith | 452 | mouse_active dd ? |
453 | mouse_pause dd ? |
||
5130 | serge | 454 | |
6585 | pathoswith | 455 | BgrDrawMode dd ? |
456 | BgrDataWidth dd ? |
||
457 | BgrDataHeight dd ? |
||
1349 | art_zh | 458 | |
6585 | pathoswith | 459 | buttontype dd ? |
460 | windowtypechanged dd ? |
||
1349 | art_zh | 461 | |
6585 | pathoswith | 462 | debug_step_pointer dd ? |
1349 | art_zh | 463 | |
6585 | pathoswith | 464 | lba_read_enabled dd ? ; 0 = disabled , 1 = enabled |
465 | pci_access_enabled dd ? ; 0 = disabled , 1 = enabled |
||
1349 | art_zh | 466 | |
6585 | pathoswith | 467 | NumBiosDisks dd ? |
6843 | dunkaist | 468 | BiosDisksData rb 200h ; struct BiosDiskData |
6585 | pathoswith | 469 | BiosDiskCaches rb 80h*(cache_ide1-cache_ide0) |
470 | BiosDiskPartitions rd 80h |
||
1349 | art_zh | 471 | |
6585 | pathoswith | 472 | img_background dd ? |
473 | mem_BACKGROUND dd ? |
||
474 | static_background_data dd ? |
||
1349 | art_zh | 475 | |
6585 | pathoswith | 476 | hd1_status dd ? ; 0 - free : other - pid |
477 | application_table_owner dd ? ; 0 - free : other - pid |
||
478 | application_table_mutex MUTEX |
||
1349 | art_zh | 479 | |
6585 | pathoswith | 480 | redrawmouse_unconditional dd ? |
1349 | art_zh | 481 | |
6585 | pathoswith | 482 | MOUSE_SCROLL_H rw 1 |
483 | MOUSE_X: rw 1 |
||
484 | MOUSE_Y: rw 1 |
||
485 | MOUSE_SCROLL_V rw 1 |
||
1349 | art_zh | 486 | |
6585 | pathoswith | 487 | X_UNDER rw 1 |
488 | Y_UNDER rw 1 |
||
489 | COLOR_TEMP dd ? |
||
490 | MOUSE_COLOR_MEM dd ? |
||
1349 | art_zh | 491 | |
6585 | pathoswith | 492 | SCR_MODE rw 2 |
2450 | mario79 | 493 | |
6585 | pathoswith | 494 | BTN_DOWN: rb 4 |
1349 | art_zh | 495 | |
6585 | pathoswith | 496 | cpu_phys_addr_width db ? ; also known as MAXPHYADDR in Intel manuals |
497 | hdd_appl_data db ? ; 0 = system cache, 1 - application cache |
||
498 | cd_appl_data db ? ; 0 = system cache, 1 - application cache |
||
3606 | Serge | 499 | |
6585 | pathoswith | 500 | timer_ticks_enable db ? ; for cd driver |
3588 | Serge | 501 | |
6585 | pathoswith | 502 | REDRAW_BACKGROUND db ? |
1349 | art_zh | 503 | |
3627 | Serge | 504 | align 16 |
6585 | pathoswith | 505 | DRIVE_DATA: rb DRIVE_DATA_SIZE |
1349 | art_zh | 506 | |
507 | IncludeUGlobals |
||
3727 | Serge | 508 | |
509 | uglobals_size = $ - endofcode |
||
510 | |||
511 | if ~ lang eq sp |
||
512 | diff16 "end of .bss",0,$ |
||
513 | end if |
||
514 | |||
8085 | dunkaist | 515 | ; check if kernel fits memmap |
9958 | dunkaist | 516 | assert $-OS_BASE+PAGE_SIZE < TMP_STACK_TOP |
8085 | dunkaist | 517 | |
9958 | dunkaist | 518 | org (OS_BASE + RAMDISK_BASE) |
3727 | Serge | 519 | |
5057 | clevermous | 520 | ; Currently size of memory allocated for the ramdisk is fixed. |
521 | ; This should be revisited when/if memory map would become more dynamic. |
||
522 | RAMDISK_CAPACITY = 2880 ; in sectors |
||
3727 | Serge | 523 | |
6585 | pathoswith | 524 | RAMDISK: |
525 | rb RAMDISK_CAPACITY*512 |
||
5057 | clevermous | 526 | |
3727 | Serge | 527 | _CLEAN_ZONE: |
7136 | dunkaist | 528 | CLEAN_ZONE = _CLEAN_ZONE - OS_BASE |
3727 | Serge | 529 | |
6585 | pathoswith | 530 | BgrAuxTable rb 32768 |
5057 | clevermous | 531 | align 65536 |
6585 | pathoswith | 532 | SB16Buffer rb 65536 |
5057 | clevermous | 533 | |
3727 | Serge | 534 | align 4096 |
6585 | pathoswith | 535 | BUTTON_INFO rb 64*1024 |
536 | RESERVED_PORTS: |
||
537 | rb 64*1024 |
||
538 | sys_pgmap: |
||
539 | rb 1024*1024/8 |
||
9930 | Doczom | 540 | |
541 | |||
9958 | dunkaist | 542 | CDDataBuf: rb 0x1000>> |