Subversion Repositories Kolibri OS

Rev

Rev 3508 | Rev 3539 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3508 Rev 3534
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2012. 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: 3508 $
8
$Revision: 3534 $
9
 
9
 
10
 
10
 
11
keymap:
11
keymap:
12
 
12
 
13
     db   '6',27
13
     db   '6',27
14
     db   '1234567890-=',8,9
14
     db   '1234567890-=',8,9
15
     db   'qwertyuiop[]',13
15
     db   'qwertyuiop[]',13
16
     db   '~asdfghjkl;',39,96,0,'\zxcvbnm,./',0,'45 '
16
     db   '~asdfghjkl;',39,96,0,'\zxcvbnm,./',0,'45 '
17
     db   '@234567890123',180,178,184,'6',176,'7'
17
     db   '@234567890123',180,178,184,'6',176,'7'
18
     db   179,'8',181,177,183,185,182
18
     db   179,'8',181,177,183,185,182
19
     db   'AB
19
     db   'AB
20
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23
 
23
 
24
keymap_shift:
24
keymap_shift:
25
     db   '6',27
25
     db   '6',27
26
     db   '!@#$%^&*()_+',8,9
26
     db   '!@#$%^&*()_+',8,9
27
     db   'QWERTYUIOP{}',13
27
     db   'QWERTYUIOP{}',13
28
     db   '~ASDFGHJKL:"~',0,'|ZXCVBNM<>?',0,'45 '
28
     db   '~ASDFGHJKL:"~',0,'|ZXCVBNM<>?',0,'45 '
29
     db   '@234567890123',180,178,184,'6',176,'7'
29
     db   '@234567890123',180,178,184,'6',176,'7'
30
     db   179,'8',181,177,183,185,182
30
     db   179,'8',181,177,183,185,182
31
     db   'AB>D',255,'FGHIJKLMNOPQRSTUVWXYZ'
31
     db   'AB>D',255,'FGHIJKLMNOPQRSTUVWXYZ'
32
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35
 
35
 
36
 
36
 
37
keymap_alt:
37
keymap_alt:
38
     db   ' ',27
38
     db   ' ',27
39
     db   ' @ $  {[]}\ ',8,9
39
     db   ' @ $  {[]}\ ',8,9
40
     db   '            ',13
40
     db   '            ',13
41
     db   '             ',0,'           ',0,'4',0,' '
41
     db   '             ',0,'           ',0,'4',0,' '
42
     db   '             ',180,178,184,'6',176,'7'
42
     db   '             ',180,178,184,'6',176,'7'
43
     db   179,'8',181,177,183,185,182
43
     db   179,'8',181,177,183,185,182
44
     db   'ABCD',255,'FGHIJKLMNOPQRSTUVWXYZ'
44
     db   'ABCD',255,'FGHIJKLMNOPQRSTUVWXYZ'
45
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47
     db   'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48
 
48
 
49
 
49
 
50
 
50
 
51
if lang eq ru
51
if lang eq ru
52
  boot_initirq      db   'ˆ­¨æ¨ «¨§ æ¨ï IRQ',0
52
  boot_initirq      db   'ˆ­¨æ¨ «¨§ æ¨ï IRQ',0
53
  boot_picinit      db   'ˆ­¨æ¨ «¨§ æ¨ï PIC',0
53
  boot_picinit      db   'ˆ­¨æ¨ «¨§ æ¨ï PIC',0
54
  boot_v86machine   db   'ˆ­¨æ¨ «¨§ æ¨ï á¨á⥬ë V86 ¬ è¨­ë',0
54
  boot_v86machine   db   'ˆ­¨æ¨ «¨§ æ¨ï á¨á⥬ë V86 ¬ è¨­ë',0
55
  boot_inittimer    db   'ˆ­¨æ¨ «¨§ æ¨ï á¨á⥬­®£® â ©¬¥à  (IRQ0)',0
55
  boot_inittimer    db   'ˆ­¨æ¨ «¨§ æ¨ï á¨á⥬­®£® â ©¬¥à  (IRQ0)',0
56
  boot_initapic     db   '®¯ë⪠ ¨­¨æ¨ «¨§ æ¨¨ APIC',0
56
  boot_initapic     db   '®¯ë⪠ ¨­¨æ¨ «¨§ æ¨¨ APIC',0
57
  boot_enableirq    db   '‚ª«îç¨âì ¯à¥à뢠­¨ï 2, 6, 13, 14, 15',0
57
  boot_enableirq    db   '‚ª«îç¨âì ¯à¥à뢠­¨ï 2, 6, 13, 14, 15',0
58
  boot_enablint_ide db   ' §à¥è¥­¨¥ ¯à¥à뢠­¨© ¢ ª®­â஫«¥à¥ IDE',0
58
  boot_enablint_ide db   ' §à¥è¥­¨¥ ¯à¥à뢠­¨© ¢ ª®­â஫«¥à¥ IDE',0
59
  boot_detectfloppy db   '®¨áª floppy ¤¨áª®¢®¤®¢',0
59
  boot_detectfloppy db   '®¨áª floppy ¤¨áª®¢®¤®¢',0
60
  boot_detecthdcd   db   '®¨áª ¦¥áâª¨å ¤¨áª®¢ ¨ ATAPI ¯à¨¢®¤®¢',0
60
  boot_detecthdcd   db   '®¨áª ¦¥áâª¨å ¤¨áª®¢ ¨ ATAPI ¯à¨¢®¤®¢',0
61
  boot_getcache     db   '®«ã祭¨¥ ¯ ¬ï⨠¤«ï ªíè ',0
61
  boot_getcache     db   '®«ã祭¨¥ ¯ ¬ï⨠¤«ï ªíè ',0
62
  boot_detectpart   db   '®¨áª à §¤¥«®¢ ­  ¤¨áª®¢ëå ãáâனá⢠å',0
62
  boot_detectpart   db   '®¨áª à §¤¥«®¢ ­  ¤¨áª®¢ëå ãáâனá⢠å',0
63
  boot_init_sys     db   'ˆ­¨æ¨ «¨§ æ¨ï á¨á⥬­®£® ª â «®£  /sys',0
63
  boot_init_sys     db   'ˆ­¨æ¨ «¨§ æ¨ï á¨á⥬­®£® ª â «®£  /sys',0
64
  boot_loadlibs     db   '‡ £à㧪  ¡¨¡«¨®â¥ª (.obj)',0
64
  boot_loadlibs     db   '‡ £à㧪  ¡¨¡«¨®â¥ª (.obj)',0
65
  boot_memdetect    db   'Š®«¨ç¥á⢮ ®¯¥à â¨¢­®© ¯ ¬ïâ¨','     ',' Œ¡',0
65
  boot_memdetect    db   'Š®«¨ç¥á⢮ ®¯¥à â¨¢­®© ¯ ¬ïâ¨','     ',' Œ¡',0
66
  boot_tss          db   '“áâ ­®¢ª  TSSs',0
66
  boot_tss          db   '“áâ ­®¢ª  TSSs',0
67
  boot_cpuid        db   '—⥭¨¥ CPUIDs',0
67
  boot_cpuid        db   '—⥭¨¥ CPUIDs',0
68
;  boot_devices      db   '®¨áª ãáâனáâ¢',0
68
;  boot_devices      db   '®¨áª ãáâனáâ¢',0
69
  boot_timer        db   '“áâ ­®¢ª  â ©¬¥à ',0
69
  boot_timer        db   '“áâ ­®¢ª  â ©¬¥à ',0
70
  boot_irqs         db   '¥à¥®¯à¥¤¥«¥­¨¥ IRQ',0
70
  boot_irqs         db   '¥à¥®¯à¥¤¥«¥­¨¥ IRQ',0
71
  boot_setmouse     db   '“áâ ­®¢ª  ¬ëè¨',0
71
  boot_setmouse     db   '“áâ ­®¢ª  ¬ëè¨',0
72
  boot_windefs      db   '“áâ ­®¢ª  ­ áâ஥ª ®ª®­ ¯® 㬮«ç ­¨î',0
72
  boot_windefs      db   '“áâ ­®¢ª  ­ áâ஥ª ®ª®­ ¯® 㬮«ç ­¨î',0
73
  boot_bgr          db   '“áâ ­®¢ª  ä®­ ',0
73
  boot_bgr          db   '“áâ ­®¢ª  ä®­ ',0
74
  boot_resirqports  db   '¥§¥à¢¨à®¢ ­¨¥ IRQ ¨ ¯®à⮢',0
74
  boot_resirqports  db   '¥§¥à¢¨à®¢ ­¨¥ IRQ ¨ ¯®à⮢',0
75
  boot_setrports    db   '“áâ ­®¢ª   ¤à¥á®¢ IRQ',0
75
  boot_setrports    db   '“áâ ­®¢ª   ¤à¥á®¢ IRQ',0
76
  boot_setostask    db   '‘®§¤ ­¨¥ ¯à®æ¥áá  ï¤à ',0
76
  boot_setostask    db   '‘®§¤ ­¨¥ ¯à®æ¥áá  ï¤à ',0
77
  boot_allirqs      db   'Žâªàë⨥ ¢á¥å IRQ',0
77
  boot_allirqs      db   'Žâªàë⨥ ¢á¥å IRQ',0
78
  boot_tsc          db   '—⥭¨¥ TSC',0
78
  boot_tsc          db   '—⥭¨¥ TSC',0
79
  boot_cpufreq      db   '— áâ®â  ¯à®æ¥áá®à  ','    ',' Œƒæ',0
79
  boot_cpufreq      db   '— áâ®â  ¯à®æ¥áá®à  ','    ',' Œƒæ',0
80
  boot_pal_ega      db   '“áâ ­®¢ª  EGA/CGA 320x200 ¯ «¨âàë',0
80
  boot_pal_ega      db   '“áâ ­®¢ª  EGA/CGA 320x200 ¯ «¨âàë',0
81
  boot_pal_vga      db   '“áâ ­®¢ª  VGA 640x480 ¯ «¨âàë',0
81
  boot_pal_vga      db   '“áâ ­®¢ª  VGA 640x480 ¯ «¨âàë',0
82
  boot_failed       db   '‡ £à㧪  ¯¥à¢®£® ¯à¨«®¦¥­¨ï ­¥ 㤠« áì',0
82
  boot_failed       db   '‡ £à㧪  ¯¥à¢®£® ¯à¨«®¦¥­¨ï ­¥ 㤠« áì',0
83
  boot_mtrr         db   '“áâ ­®¢ª  MTRR',0
83
  boot_mtrr         db   '“áâ ­®¢ª  MTRR',0
84
 
84
 
85
  boot_APIC_found   db   'APIC ¢ª«î祭', 0
85
  boot_APIC_found   db   'APIC ¢ª«î祭', 0
86
  boot_APIC_nfound  db   'APIC ­¥ ­ ©¤¥­', 0
86
  boot_APIC_nfound  db   'APIC ­¥ ­ ©¤¥­', 0
87
if preboot_blogesc
87
if preboot_blogesc
88
  boot_tasking      db   '‚ᥠ£®â®¢® ¤«ï § ¯ã᪠, ­ ¦¬¨âॠESC ¤«ï áâ àâ ',0
88
  boot_tasking      db   '‚ᥠ£®â®¢® ¤«ï § ¯ã᪠, ­ ¦¬¨âॠESC ¤«ï áâ àâ ',0
89
end if
89
end if
90
else if lang eq sp
90
else if lang eq sp
91
  include 'data32sp.inc'
91
  include 'data32sp.inc'
92
else
92
else
93
  boot_initirq      db   'Initialize IRQ',0
93
  boot_initirq      db   'Initialize IRQ',0
94
  boot_picinit      db   'Initialize PIC',0
94
  boot_picinit      db   'Initialize PIC',0
95
  boot_v86machine   db   'Initialize system V86 machine',0
95
  boot_v86machine   db   'Initialize system V86 machine',0
96
  boot_inittimer    db   'Initialize system timer (IRQ0)',0
96
  boot_inittimer    db   'Initialize system timer (IRQ0)',0
97
  boot_initapic     db   'Try to initialize APIC',0
97
  boot_initapic     db   'Try to initialize APIC',0
98
  boot_enableirq    db   'Enable interrupts 2, 6, 13, 14, 15',0
98
  boot_enableirq    db   'Enable interrupts 2, 6, 13, 14, 15',0
99
  boot_enablint_ide db   'Enable interrupts in IDE controller',0
99
  boot_enablint_ide db   'Enable interrupts in IDE controller',0
100
  boot_detectfloppy db   'Search floppy drives',0
100
  boot_detectfloppy db   'Search floppy drives',0
101
  boot_detecthdcd   db   'Search hard drives and ATAPI drives',0
101
  boot_detecthdcd   db   'Search hard drives and ATAPI drives',0
102
  boot_getcache     db   'Get memory for cache',0
102
  boot_getcache     db   'Get memory for cache',0
103
  boot_detectpart   db   'Search partitions on disk devices',0
103
  boot_detectpart   db   'Search partitions on disk devices',0
104
  boot_init_sys     db   'Initialize system directory /sys',0
104
  boot_init_sys     db   'Initialize system directory /sys',0
105
  boot_loadlibs     db   'Loading librares (.obj)',0
105
  boot_loadlibs     db   'Loading librares (.obj)',0
106
  boot_memdetect    db   'Determining amount of memory',0
106
  boot_memdetect    db   'Determining amount of memory',0
107
  boot_tss          db   'Setting TSSs',0
107
  boot_tss          db   'Setting TSSs',0
108
  boot_cpuid        db   'Reading CPUIDs',0
108
  boot_cpuid        db   'Reading CPUIDs',0
109
;  boot_devices      db   'Detecting devices',0
109
;  boot_devices      db   'Detecting devices',0
110
  boot_setmouse     db   'Setting mouse',0
110
  boot_setmouse     db   'Setting mouse',0
111
  boot_windefs      db   'Setting window defaults',0
111
  boot_windefs      db   'Setting window defaults',0
112
  boot_bgr          db   'Calculating background',0
112
  boot_bgr          db   'Calculating background',0
113
  boot_resirqports  db   'Reserving IRQs & ports',0
113
  boot_resirqports  db   'Reserving IRQs & ports',0
114
  boot_setostask    db   'Setting OS task',0
114
  boot_setostask    db   'Setting OS task',0
115
  boot_allirqs      db   'Unmasking IRQs',0
115
  boot_allirqs      db   'Unmasking IRQs',0
116
  boot_tsc          db   'Reading TSC',0
116
  boot_tsc          db   'Reading TSC',0
117
  boot_cpufreq      db   'CPU frequency is ','    ',' MHz',0
117
  boot_cpufreq      db   'CPU frequency is ','    ',' MHz',0
118
  boot_pal_ega      db   'Setting EGA/CGA 320x200 palette',0
118
  boot_pal_ega      db   'Setting EGA/CGA 320x200 palette',0
119
  boot_pal_vga      db   'Setting VGA 640x480 palette',0
119
  boot_pal_vga      db   'Setting VGA 640x480 palette',0
120
  boot_failed       db   'Failed to start first app',0
120
  boot_failed       db   'Failed to start first app',0
121
  boot_mtrr         db   'Setting MTRR',0
121
  boot_mtrr         db   'Setting MTRR',0
122
 
122
 
123
  boot_APIC_found   db   'APIC enabled', 0
123
  boot_APIC_found   db   'APIC enabled', 0
124
  boot_APIC_nfound  db   'APIC not found', 0
124
  boot_APIC_nfound  db   'APIC not found', 0
125
if preboot_blogesc
125
if preboot_blogesc
126
  boot_tasking      db   'All set - press ESC to start',0
126
  boot_tasking      db   'All set - press ESC to start',0
127
end if
127
end if
128
end if
128
end if
129
 
129
 
130
;new_process_loading db 'K : New Process - loading',13,10,0
130
;new_process_loading db 'K : New Process - loading',13,10,0
131
;new_process_running db 'K : New Process - done',13,10,0
131
;new_process_running db 'K : New Process - done',13,10,0
132
start_not_enough_memory db 'K : New Process - not enough memory',13,10,0
132
start_not_enough_memory db 'K : New Process - not enough memory',13,10,0
133
 
133
 
134
msg_unresolved db 'unresolved ',0
134
msg_unresolved db 'unresolved ',0
135
msg_module     db 'in module ',0
135
msg_module     db 'in module ',0
136
if ~ lang eq sp
136
if ~ lang eq sp
137
msg_version    db 'incompatible driver version',13,10,0
137
msg_version    db 'incompatible driver version',13,10,0
138
msg_www        db 'please visit www.kolibrios.org',13,10,0
138
msg_www        db 'please visit www.kolibrios.org',13,10,0
139
end if
139
end if
140
msg_CR         db  13,10,0
140
msg_CR         db  13,10,0
141
 
141
 
142
intel_str      db "GenuineIntel",0
142
intel_str      db "GenuineIntel",0
143
AMD_str        db "AuthenticAMD",0
143
AMD_str        db "AuthenticAMD",0
144
 
144
 
145
szHwMouse       db 'ATI2D',0
145
szHwMouse       db 'ATI2D',0
146
szPS2MDriver    db 'PS2MOUSE',0
146
szPS2MDriver    db 'PS2MOUSE',0
147
;szCOM_MDriver   db 'COM_MOUSE',0
147
;szCOM_MDriver   db 'COM_MOUSE',0
148
szVidintel      db 'vidintel',0
148
szVidintel      db 'vidintel',0
149
szUSB           db 'USB',0
149
szUSB           db 'USB',0
150
szAtiHW         db '/rd/1/drivers/ati2d.drv',0
150
szAtiHW         db '/rd/1/drivers/ati2d.drv',0
151
 
151
 
152
szSTART        db 'START',0
152
szSTART        db 'START',0
153
szEXPORTS      db 'EXPORTS',0
153
szEXPORTS      db 'EXPORTS',0
154
sz_EXPORTS     db '_EXPORTS',0
154
sz_EXPORTS     db '_EXPORTS',0
155
 
155
 
156
szIMPORTS      db 'IMPORTS',0
156
szIMPORTS      db 'IMPORTS',0
157
 
157
 
158
read_firstapp  db '/sys/'
158
read_firstapp  db '/sys/'
159
firstapp       db  'LAUNCHER',0
159
firstapp       db  'LAUNCHER',0
160
notifyapp      db '@notify',0
160
notifyapp      db '@notify',0
161
if lang eq ru
161
if lang eq ru
162
ud_user_message db 'Žè¨¡ª : ­¥¯®¤¤¥à¦¨¢ ¥¬ ï ¨­áâàãªæ¨ï ¯à®æ¥áá®à ',0
162
ud_user_message db 'Žè¨¡ª : ­¥¯®¤¤¥à¦¨¢ ¥¬ ï ¨­áâàãªæ¨ï ¯à®æ¥áá®à ',0
163
else if ~ lang eq sp
163
else if ~ lang eq sp
164
ud_user_message db 'Error: unsupported processor instruction',0
164
ud_user_message db 'Error: unsupported processor instruction',0
165
end if
165
end if
166
 
166
 
167
bootpath       db  '/KOLIBRI    '
167
bootpath       db  '/KOLIBRI    '
168
bootpath2      db  0
168
bootpath2      db  0
169
vmode          db  '/sys/drivers/VMODE.MDR',0
169
vmode          db  '/sys/drivers/VMODE.MDR',0
170
;vrr_m          db  'VRR_M',0
170
;vrr_m          db  'VRR_M',0
171
kernel_file    db  'KERNEL  MNT'
171
kernel_file    db  'KERNEL  MNT'
172
 
172
 
173
dev_data_path  db '/RD/1/DRIVERS/DEVICES.DAT',0
173
dev_data_path  db '/RD/1/DRIVERS/DEVICES.DAT',0
174
 
174
 
175
align 4
175
align 4
176
 
176
 
177
shmem_list:
177
shmem_list:
178
 .bk           dd shmem_list
178
 .bk           dd shmem_list
179
 .fd           dd shmem_list
179
 .fd           dd shmem_list
180
 
180
 
181
dll_list:
181
dll_list:
182
 .bk           dd dll_list
182
 .bk           dd dll_list
183
 .fd           dd dll_list
183
 .fd           dd dll_list
184
 
184
 
185
pcidev_list:
185
pcidev_list:
186
 .bk           dd pcidev_list
186
 .bk           dd pcidev_list
187
 .fd           dd pcidev_list
187
 .fd           dd pcidev_list
188
 
188
 
189
MAX_DEFAULT_DLL_ADDR = 0x80000000
189
MAX_DEFAULT_DLL_ADDR = 0x80000000
190
MIN_DEFAULT_DLL_ADDR = 0x70000000
190
MIN_DEFAULT_DLL_ADDR = 0x70000000
191
dll_cur_addr   dd MIN_DEFAULT_DLL_ADDR
191
dll_cur_addr   dd MIN_DEFAULT_DLL_ADDR
192
 
192
 
193
; supported videomodes
193
; supported videomodes
194
 
194
 
195
 
195
 
196
; mike.dld {
196
; mike.dld {
197
;db 0
197
;db 0
198
;dd servetable-0x10000
198
;dd servetable-0x10000
199
;align 4
199
;align 4
200
;draw_line       dd __sys_draw_line
200
;draw_line       dd __sys_draw_line
201
;draw_pointer    dd __sys_draw_pointer
201
;draw_pointer    dd __sys_draw_pointer
202
;//mike.dld, 2006-08-02 [
202
;//mike.dld, 2006-08-02 [
203
;;drawbar         dd __sys_drawbar
203
;;drawbar         dd __sys_drawbar
204
;;drawbar         dd __sys_drawbar.forced
204
;;drawbar         dd __sys_drawbar.forced
205
;drawbar         dd vesa20_drawbar
205
;drawbar         dd vesa20_drawbar
206
;//mike.dld, 2006-08-02 ]
206
;//mike.dld, 2006-08-02 ]
207
;putpixel        dd __sys_putpixel
207
;putpixel        dd __sys_putpixel
208
; } mike.dld
208
; } mike.dld
209
 
209
 
210
 
210
 
211
align 4
211
align 4
212
keyboard   dd 1
212
keyboard   dd 1
213
syslang    dd 1
213
syslang    dd 1
214
 
214
 
215
boot_y     dd 10
215
boot_y     dd 10
216
 
216
 
217
pci_bios_entry  dd 0
217
pci_bios_entry  dd 0
218
                dw pci_code_sel
218
                dw pci_code_sel
219
 
219
 
220
if __DEBUG__ eq 1
220
if __DEBUG__ eq 1
221
  include_debug_strings
221
  include_debug_strings
222
end if
222
end if
223
 
223
 
224
IncludeIGlobals
224
IncludeIGlobals
225
 
225
 
226
align 16
226
align 16
227
gdts:
227
gdts:
228
 
228
 
229
        dw     gdte-$-1
229
        dw     gdte-$-1
230
        dd     gdts
230
        dd     gdts
231
        dw     0
231
        dw     0
232
 
232
 
233
; Attention! Do not change the order of the first four selectors. They are used in Fast System Call
233
; Attention! Do not change the order of the first four selectors. They are used in Fast System Call
234
; must be : os_code, os_data, app_code, app_data, ....
234
; must be : os_code, os_data, app_code, app_data, ....
235
 
235
 
236
int_code_l:
236
int_code_l:
237
os_code_l:
237
os_code_l:
238
        dw     0xffff
238
        dw     0xffff
239
        dw     0x0000
239
        dw     0x0000
240
        db     0x00
240
        db     0x00
241
        dw     11011111b *256 +10011010b
241
        dw     11011111b *256 +10011010b
242
        db     0x00
242
        db     0x00
243
 
243
 
244
int_data_l:
244
int_data_l:
245
os_data_l:
245
os_data_l:
246
        dw     0xffff
246
        dw     0xffff
247
        dw     0x0000
247
        dw     0x0000
248
        db     0x00
248
        db     0x00
249
        dw     11011111b *256 +10010010b
249
        dw     11011111b *256 +10010010b
250
        db     0x00
250
        db     0x00
251
 
251
 
252
app_code_l:
252
app_code_l:
253
        dw 0xFFFF
253
        dw 0xFFFF
254
        dw 0
254
        dw 0
255
        db 0
255
        db 0
256
        db cpl3
256
        db cpl3
257
        dw G32+D32+0xF;
257
        dw G32+D32+0xF;
258
 
258
 
259
app_data_l:
259
app_data_l:
260
        dw 0xFFFF
260
        dw 0xFFFF
261
        dw 0
261
        dw 0
262
        db 0
262
        db 0
263
        db drw3
263
        db drw3
264
        dw G32+D32+0xF;
264
        dw G32+D32+0xF;
265
 
265
 
266
; ------------- PCI BIOS ------------------
266
; ------------- PCI BIOS ------------------
267
 
267
 
268
pci_code_32:
268
pci_code_32:
269
        dw 0         ;lim  0-15
269
        dw 0         ;lim  0-15
270
        dw 0         ;base 0-15
270
        dw 0         ;base 0-15
271
        db 0         ;base 16-23
271
        db 0         ;base 16-23
272
        db cpl0      ;type
272
        db cpl0      ;type
273
        db D32       ;lim 16-19+props
273
        db D32       ;lim 16-19+props
274
        db 0         ;base 24-31
274
        db 0         ;base 24-31
275
 
275
 
276
pci_data_32:
276
pci_data_32:
277
        dw 0         ;lim  0-15
277
        dw 0         ;lim  0-15
278
        dw 0         ;base 0-15
278
        dw 0         ;base 0-15
279
        db 0         ;base 16-23
279
        db 0         ;base 16-23
280
        db dpl0      ;type
280
        db dpl0      ;type
281
        db D32       ;lim 16-19+props
281
        db D32       ;lim 16-19+props
282
        db 0         ;base 24-31
282
        db 0         ;base 24-31
283
 
283
 
284
; --------------- APM ---------------------
284
; --------------- APM ---------------------
285
apm_code_32:
285
apm_code_32:
286
        dw     0x0f        ; limit 64kb
286
        dw     0x0f        ; limit 64kb
287
        db     0, 0, 0
287
        db     0, 0, 0
288
        dw     11010000b *256 +10011010b
288
        dw     11010000b *256 +10011010b
289
        db     0x00
289
        db     0x00
290
apm_code_16:
290
apm_code_16:
291
        dw     0x0f
291
        dw     0x0f
292
        db     0, 0, 0
292
        db     0, 0, 0
293
        dw     10010000b *256 +10011010b
293
        dw     10010000b *256 +10011010b
294
        db     0x00
294
        db     0x00
295
apm_data_16:
295
apm_data_16:
296
        dw     0x0f
296
        dw     0x0f
297
        db     0, 0, 0
297
        db     0, 0, 0
298
        dw     10010000b *256 +10010010b
298
        dw     10010000b *256 +10010010b
299
        db     0x00
299
        db     0x00
300
; -----------------------------------------
300
; -----------------------------------------
301
 
301
 
302
graph_data_l:
302
graph_data_l:
303
 
303
 
304
        dw     0x7ff
304
        dw     0x7ff
305
        dw     0x0000
305
        dw     0x0000
306
        db     0x00
306
        db     0x00
307
        dw     11010000b *256 +11110010b
307
        dw     11010000b *256 +11110010b
308
        db     0x00
308
        db     0x00
309
tss0_l:
309
tss0_l:
310
        dw     sizeof.TSS-1
310
        dw     sizeof.TSS-1
311
        dw     tss and 0xFFFF
311
        dw     tss and 0xFFFF
312
        db     (tss shr 16) and 0xFF
312
        db     (tss shr 16) and 0xFF
313
        db     10001001b
313
        db     10001001b
314
        dw     (tss shr 16) and 0xFF00
314
        dw     (tss shr 16) and 0xFF00
315
 
315
 
316
tls_data_l:
316
tls_data_l:
317
        dw 0x0FFF
317
        dw 0x0FFF
318
        dw 0
318
        dw 0
319
        db 0
319
        db 0
320
        db drw3
320
        db drw3
321
        dw D32
321
        dw D32
322
 
322
 
323
endofcode:
323
endofcode:
324
gdte:
324
gdte:
325
 
325
 
326
align 16
326
align 16
327
cur_saved_data:
327
cur_saved_data:
328
                  rb 4096
328
                  rb 4096
329
fpu_data:
329
fpu_data:
330
                  rb 512
330
                  rb 512
331
 
331
 
332
mem_block_list    rd 64*2
332
mem_block_list    rd 64*2
333
mem_used_list     rd 64*2
333
mem_used_list     rd 64*2
334
mem_hash_cnt      rd 64
334
mem_hash_cnt      rd 64
335
 
335
 
336
cpu_freq          rq 1
336
cpu_freq          rq 1
337
 
337
 
338
heap_mutex        MUTEX
338
heap_mutex        MUTEX
339
heap_size         rd 1
339
heap_size         rd 1
340
heap_free         rd 1
340
heap_free         rd 1
341
heap_blocks       rd 1
341
heap_blocks       rd 1
342
free_blocks       rd 1
342
free_blocks       rd 1
343
 
343
 
344
mem_block_mask    rd 2
344
mem_block_mask    rd 2
345
next_memblock     rd 1
345
next_memblock     rd 1
346
 
346
 
347
 
347
 
348
mst MEM_STATE
348
mst MEM_STATE
349
 
349
 
350
page_start        rd 1
350
page_start        rd 1
351
page_end          rd 1
351
page_end          rd 1
352
sys_page_map      rd 1
352
sys_page_map      rd 1
353
os_stack_seg      rd 1
353
os_stack_seg      rd 1
354
 
354
 
355
 
355
 
356
srv.fd            rd 1
356
srv.fd            rd 1
357
srv.bk            rd 1
357
srv.bk            rd 1
358
 
358
 
359
 
359
 
360
align 16
360
align 16
361
 
361
 
362
_display          display_t
362
_display          display_t
363
 
363
 
364
_WinMapAddress    rd 1
364
_WinMapAddress    rd 1
365
_WinMapSize       rd 1
365
_WinMapSize       rd 1
366
 
366
 
367
def_cursor        rd 1
367
def_cursor        rd 1
368
def_cursor_clock  rd 1
368
def_cursor_clock  rd 1
369
current_cursor    rd 1
369
current_cursor    rd 1
370
hw_cursor         rd 1
370
hw_cursor         rd 1
371
cur_saved_base    rd 1
371
cur_saved_base    rd 1
372
 
372
 
373
cur.lock          rd 1   ;1 - lock update, 2- hide
373
cur.lock          rd 1   ;1 - lock update, 2- hide
374
cur.left          rd 1   ;cursor clip box
374
cur.left          rd 1   ;cursor clip box
375
cur.top           rd 1
375
cur.top           rd 1
376
cur.right         rd 1
376
cur.right         rd 1
377
cur.bottom        rd 1
377
cur.bottom        rd 1
378
cur.w             rd 1
378
cur.w             rd 1
379
cur.h             rd 1
379
cur.h             rd 1
380
 
380
 
381
ipc_tmp           rd 1
381
ipc_tmp           rd 1
382
ipc_pdir          rd 1
382
ipc_pdir          rd 1
383
ipc_ptab          rd 1
383
ipc_ptab          rd 1
384
 
384
 
385
proc_mem_map      rd 1
385
proc_mem_map      rd 1
386
proc_mem_pdir     rd 1
386
proc_mem_pdir     rd 1
387
proc_mem_tab      rd 1
387
proc_mem_tab      rd 1
388
 
388
 
389
tmp_task_pdir     rd 1
389
tmp_task_pdir     rd 1
390
tmp_task_ptab     rd 1
390
tmp_task_ptab     rd 1
391
 
391
 
392
default_io_map    rd 1
392
default_io_map    rd 1
393
 
393
 
394
LFBSize           rd 1
394
LFBSize           rd 1
395
 
395
 
396
current_slot      rd 1
396
current_slot      rd 1
397
 
397
 
398
; status
398
; status
399
hd1_status                  rd 1  ; 0 - free : other - pid
399
hd1_status                  rd 1  ; 0 - free : other - pid
400
application_table_status    rd 1  ; 0 - free : other - pid
400
application_table_owner     rd 1  ; 0 - free : other - pid
-
 
401
application_table_mutex     MUTEX
401
 
402
 
402
; device addresses
403
; device addresses
403
mididp            rd 1
404
mididp            rd 1
404
midisp            rd 1
405
midisp            rd 1
405
 
406
 
406
cdbase            rd 1
407
cdbase            rd 1
407
cdid              rd 1
408
cdid              rd 1
408
 
409
 
409
hdbase            rd 1    ; for boot 0x1f0
410
hdbase            rd 1    ; for boot 0x1f0
410
hdid              rd 1
411
hdid              rd 1
411
hdpos             rd 1    ; for boot 0x1
412
hdpos             rd 1    ; for boot 0x1
412
label   known_part dword
413
label   known_part dword
413
fat32part         rd 1    ; for boot 0x1
414
fat32part         rd 1    ; for boot 0x1
414
cdpos             rd 1
415
cdpos             rd 1
415
 
416
 
416
;CPUID information
417
;CPUID information
417
cpu_vendor        rd 3
418
cpu_vendor        rd 3
418
cpu_sign          rd 1
419
cpu_sign          rd 1
419
cpu_info          rd 1
420
cpu_info          rd 1
420
cpu_caps          rd 4
421
cpu_caps          rd 4
421
 
422
 
422
 
423
 
423
pg_data           PG_DATA
424
pg_data           PG_DATA
424
heap_test         rd 1
425
heap_test         rd 1
425
 
426
 
426
buttontype        rd 1
427
buttontype        rd 1
427
windowtypechanged rd 1
428
windowtypechanged rd 1
428
 
429
 
429
hd_entries        rd 1     ;unused ? 0xfe10
430
hd_entries        rd 1     ;unused ? 0xfe10
430
 
431
 
431
mouse_active          rd 1
432
mouse_active          rd 1
432
mouse_pause           rd 1
433
mouse_pause           rd 1
433
 
434
 
434
redrawmouse_unconditional rd 1
435
redrawmouse_unconditional rd 1
435
 
436
 
436
img_background        rd 1
437
img_background        rd 1
437
mem_BACKGROUND        rd 1
438
mem_BACKGROUND        rd 1
438
static_background_data rd 1
439
static_background_data rd 1
439
 
440
 
440
cache_ide0:
441
cache_ide0:
441
cache_ide0_pointer            rd 1
442
cache_ide0_pointer            rd 1
442
cache_ide0_size               rd 1   ; not use
443
cache_ide0_size               rd 1   ; not use
443
cache_ide0_data_pointer       rd 1
444
cache_ide0_data_pointer       rd 1
444
cache_ide0_system_data_size   rd 1   ; not use
445
cache_ide0_system_data_size   rd 1   ; not use
445
cache_ide0_appl_data_size     rd 1   ; not use
446
cache_ide0_appl_data_size     rd 1   ; not use
446
cache_ide0_system_data        rd 1
447
cache_ide0_system_data        rd 1
447
cache_ide0_appl_data          rd 1
448
cache_ide0_appl_data          rd 1
448
cache_ide0_system_sad_size    rd 1
449
cache_ide0_system_sad_size    rd 1
449
cache_ide0_appl_sad_size      rd 1
450
cache_ide0_appl_sad_size      rd 1
450
cache_ide0_search_start       rd 1
451
cache_ide0_search_start       rd 1
451
cache_ide0_appl_search_start  rd 1
452
cache_ide0_appl_search_start  rd 1
452
 
453
 
453
cache_ide1:
454
cache_ide1:
454
cache_ide1_pointer            rd 1
455
cache_ide1_pointer            rd 1
455
cache_ide1_size               rd 1   ; not use
456
cache_ide1_size               rd 1   ; not use
456
cache_ide1_data_pointer       rd 1
457
cache_ide1_data_pointer       rd 1
457
cache_ide1_system_data_size   rd 1   ; not use
458
cache_ide1_system_data_size   rd 1   ; not use
458
cache_ide1_appl_data_size     rd 1   ; not use
459
cache_ide1_appl_data_size     rd 1   ; not use
459
cache_ide1_system_data        rd 1
460
cache_ide1_system_data        rd 1
460
cache_ide1_appl_data          rd 1
461
cache_ide1_appl_data          rd 1
461
cache_ide1_system_sad_size    rd 1
462
cache_ide1_system_sad_size    rd 1
462
cache_ide1_appl_sad_size      rd 1
463
cache_ide1_appl_sad_size      rd 1
463
cache_ide1_search_start       rd 1
464
cache_ide1_search_start       rd 1
464
cache_ide1_appl_search_start  rd 1
465
cache_ide1_appl_search_start  rd 1
465
 
466
 
466
cache_ide2:
467
cache_ide2:
467
cache_ide2_pointer            rd 1
468
cache_ide2_pointer            rd 1
468
cache_ide2_size               rd 1   ; not use
469
cache_ide2_size               rd 1   ; not use
469
cache_ide2_data_pointer       rd 1
470
cache_ide2_data_pointer       rd 1
470
cache_ide2_system_data_size   rd 1   ; not use
471
cache_ide2_system_data_size   rd 1   ; not use
471
cache_ide2_appl_data_size     rd 1   ; not use
472
cache_ide2_appl_data_size     rd 1   ; not use
472
cache_ide2_system_data        rd 1
473
cache_ide2_system_data        rd 1
473
cache_ide2_appl_data          rd 1
474
cache_ide2_appl_data          rd 1
474
cache_ide2_system_sad_size    rd 1
475
cache_ide2_system_sad_size    rd 1
475
cache_ide2_appl_sad_size      rd 1
476
cache_ide2_appl_sad_size      rd 1
476
cache_ide2_search_start       rd 1
477
cache_ide2_search_start       rd 1
477
cache_ide2_appl_search_start  rd 1
478
cache_ide2_appl_search_start  rd 1
478
 
479
 
479
cache_ide3:
480
cache_ide3:
480
cache_ide3_pointer            rd 1
481
cache_ide3_pointer            rd 1
481
cache_ide3_size               rd 1   ; not use
482
cache_ide3_size               rd 1   ; not use
482
cache_ide3_data_pointer       rd 1
483
cache_ide3_data_pointer       rd 1
483
cache_ide3_system_data_size   rd 1   ; not use
484
cache_ide3_system_data_size   rd 1   ; not use
484
cache_ide3_appl_data_size     rd 1   ; not use
485
cache_ide3_appl_data_size     rd 1   ; not use
485
cache_ide3_system_data        rd 1
486
cache_ide3_system_data        rd 1
486
cache_ide3_appl_data          rd 1
487
cache_ide3_appl_data          rd 1
487
cache_ide3_system_sad_size    rd 1
488
cache_ide3_system_sad_size    rd 1
488
cache_ide3_appl_sad_size      rd 1
489
cache_ide3_appl_sad_size      rd 1
489
cache_ide3_search_start       rd 1
490
cache_ide3_search_start       rd 1
490
cache_ide3_appl_search_start  rd 1
491
cache_ide3_appl_search_start  rd 1
491
 
492
 
492
debug_step_pointer rd 1
493
debug_step_pointer rd 1
493
hdd_appl_data rb 1 ; 0 = system cache, 1 - application cache
494
hdd_appl_data rb 1 ; 0 = system cache, 1 - application cache
494
cd_appl_data rb 1 ; 0 = system cache, 1 - application cache
495
cd_appl_data rb 1 ; 0 = system cache, 1 - application cache
495
 
496
 
496
lba_read_enabled      rd 1  ; 0 = disabled , 1 = enabled
497
lba_read_enabled      rd 1  ; 0 = disabled , 1 = enabled
497
pci_access_enabled    rd 1  ; 0 = disabled , 1 = enabled
498
pci_access_enabled    rd 1  ; 0 = disabled , 1 = enabled
498
timer_ticks_enable rb 1         ; for cd driver
499
timer_ticks_enable rb 1         ; for cd driver
499
 
500
 
500
NumBiosDisks    rd 1
501
NumBiosDisks    rd 1
501
BiosDisksData   rb 200h
502
BiosDisksData   rb 200h
502
BiosDiskCaches  rb 80h*(cache_ide1-cache_ide0)
503
BiosDiskCaches  rb 80h*(cache_ide1-cache_ide0)
503
BiosDiskPartitions rd 80h
504
BiosDiskPartitions rd 80h
504
 
505
 
505
IncludeUGlobals
506
IncludeUGlobals
506
>
507
>