Rev 2382 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
431 | serge | 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
593 | mikedld | 2 | ;; ;; |
983 | diamond | 3 | ;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;; |
431 | serge | 4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
||
593 | mikedld | 6 | ;; KERNEL32.INC ;; |
7 | ;; ;; |
||
8 | ;; Included 32 bit kernel files for MenuetOS ;; |
||
9 | ;; ;; |
||
10 | ;; This file is kept separate as it will be easier to ;; |
||
11 | ;; maintain and compile with an automated SETUP program ;; |
||
12 | ;; in the future. ;; |
||
13 | ;; ;; |
||
431 | serge | 14 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ha | 15 | |
593 | mikedld | 16 | $Revision: 2385 $ |
17 | |||
2382 | hidnplayr | 18 | struct POINT |
19 | x dd ? |
||
20 | y dd ? |
||
21 | ends |
||
593 | mikedld | 22 | |
2382 | hidnplayr | 23 | struct RECT |
24 | left dd ? |
||
25 | top dd ? |
||
26 | right dd ? |
||
27 | bottom dd ? |
||
28 | ends |
||
41 | mikedld | 29 | |
2382 | hidnplayr | 30 | struct BOX |
31 | left dd ? |
||
32 | top dd ? |
||
33 | width dd ? |
||
34 | height dd ? |
||
35 | ends |
||
41 | mikedld | 36 | |
2382 | hidnplayr | 37 | struct DISPMODE |
38 | width dw ? |
||
39 | height dw ? |
||
40 | bpp dw ? |
||
41 | freq dw ? |
||
42 | ends |
||
41 | mikedld | 43 | |
114 | mikedld | 44 | ; constants definition |
465 | serge | 45 | WSTATE_NORMAL = 00000000b |
114 | mikedld | 46 | WSTATE_MAXIMIZED = 00000001b |
47 | WSTATE_MINIMIZED = 00000010b |
||
48 | WSTATE_ROLLEDUP = 00000100b |
||
49 | |||
1055 | Galkov | 50 | WSTATE_REDRAW = 00000001b |
114 | mikedld | 51 | WSTATE_WNDDRAWN = 00000010b |
52 | |||
53 | WSTYLE_HASCAPTION = 00010000b |
||
54 | WSTYLE_CLIENTRELATIVE = 00100000b |
||
55 | |||
2382 | hidnplayr | 56 | struct TASKDATA |
57 | event_mask dd ? |
||
58 | pid dd ? |
||
59 | dw ? |
||
60 | state db ? |
||
61 | db ? |
||
62 | dw ? |
||
63 | wnd_number db ? |
||
64 | db ? |
||
65 | mem_start dd ? |
||
66 | counter_sum dd ? |
||
67 | counter_add dd ? |
||
68 | cpu_usage dd ? |
||
69 | ends |
||
114 | mikedld | 70 | |
2382 | hidnplayr | 71 | TSTATE_RUNNING = 0 |
72 | TSTATE_RUN_SUSPENDED = 1 |
||
73 | TSTATE_WAIT_SUSPENDED = 2 |
||
74 | TSTATE_ZOMBIE = 3 |
||
75 | TSTATE_TERMINATING = 4 |
||
76 | TSTATE_WAITING = 5 |
||
77 | TSTATE_FREE = 9 |
||
78 | |||
114 | mikedld | 79 | ; structures definition |
2382 | hidnplayr | 80 | struct WDATA |
81 | box BOX |
||
82 | cl_workarea dd ? |
||
83 | cl_titlebar dd ? |
||
84 | cl_frames dd ? |
||
85 | reserved db ? |
||
86 | fl_wstate db ? |
||
87 | fl_wdrawn db ? |
||
88 | fl_redraw db ? |
||
89 | ends |
||
90 | |||
1362 | mikedld | 91 | label WDATA.fl_wstyle byte at WDATA.cl_workarea + 3 |
114 | mikedld | 92 | |
2382 | hidnplayr | 93 | struct DBG_REGS |
94 | dr0 dd ? |
||
95 | dr1 dd ? |
||
96 | dr2 dd ? |
||
97 | dr3 dd ? |
||
98 | dr7 dd ? |
||
99 | ends |
||
164 | serge | 100 | |
2382 | hidnplayr | 101 | struct APPDATA |
102 | app_name rb 11 |
||
103 | rb 5 |
||
164 | serge | 104 | |
2382 | hidnplayr | 105 | fpu_state dd ? ;+16 |
106 | ev_count_ dd ? ;unused ;+20 |
||
107 | exc_handler dd ? ;+24 |
||
108 | except_mask dd ? ;+28 |
||
109 | pl0_stack dd ? ;+32 |
||
110 | heap_base dd ? ;+36 |
||
111 | heap_top dd ? ;+40 |
||
112 | cursor dd ? ;+44 |
||
113 | fd_ev dd ? ;+48 |
||
114 | bk_ev dd ? ;+52 |
||
115 | fd_obj dd ? ;+56 |
||
116 | bk_obj dd ? ;+60 |
||
117 | saved_esp dd ? ;+64 |
||
118 | io_map rd 2 ;+68 |
||
119 | dbg_state dd ? ;+76 |
||
120 | cur_dir dd ? ;+80 |
||
121 | wait_timeout dd ? ;+84 |
||
122 | saved_esp0 dd ? ;+88 |
||
123 | wait_begin dd ? ;+92 +++ |
||
124 | wait_test dd ? ;+96 +++ |
||
125 | wait_param dd ? ;+100 +++ |
||
126 | tls_base dd ? ;+104 |
||
127 | dlls_list_ptr dd ? ;+108 |
||
128 | rb 16 ;+112 |
||
114 | mikedld | 129 | |
2382 | hidnplayr | 130 | wnd_shape dd ? ;+128 |
131 | wnd_shape_scale dd ? ;+132 |
||
132 | dd ? ;+136 |
||
133 | mem_size dd ? ;+140 |
||
134 | saved_box BOX |
||
135 | ipc_start dd ? |
||
136 | ipc_size dd ? |
||
137 | event_mask dd ? |
||
138 | debugger_slot dd ? |
||
139 | dd ? |
||
140 | keyboard_mode db ? |
||
141 | rb 3 |
||
142 | dir_table dd ? |
||
143 | dbg_event_mem dd ? |
||
144 | dbg_regs DBG_REGS |
||
145 | wnd_caption dd ? |
||
146 | wnd_clientbox BOX |
||
147 | |||
2385 | hidnplayr | 148 | ends |
149 | |||
150 | |||
151 | ; Core functions |
||
152 | include "core/sync.inc" ; macros for synhronization objects |
||
153 | include "core/sys32.inc" ; process management |
||
1 | ha | 154 | include "core/sched.inc" ; process scheduling |
155 | include "core/syscall.inc" ; system call |
||
465 | serge | 156 | include "core/fpu.inc" ; all fpu/sse support |
164 | serge | 157 | include "core/memory.inc" |
214 | serge | 158 | include "core/heap.inc" ; kernel and app heap |
276 | serge | 159 | include "core/malloc.inc" ; small kernel heap |
164 | serge | 160 | include "core/taskman.inc" |
161 | include "core/dll.inc" |
||
659 | serge | 162 | include "core/peload.inc" ; |
164 | serge | 163 | include "core/exports.inc" |
519 | serge | 164 | include "core/string.inc" |
709 | diamond | 165 | include "core/v86.inc" ; virtual-8086 manager |
2382 | hidnplayr | 166 | include "core/irq.inc" ; irq handling functions |
167 | include "core/apic.inc" ; Interrupt Controller functions |
||
168 | include "core/timers.inc" |
||
1 | ha | 169 | |
170 | ; GUI stuff |
||
171 | include "gui/window.inc" |
||
172 | include "gui/event.inc" |
||
173 | include "gui/font.inc" |
||
174 | include "gui/button.inc" |
||
175 | |||
176 | ; shutdown |
||
177 | |||
178 | ; file system |
||
179 | |||
2382 | hidnplayr | 180 | include "blkdev/disk.inc" ; support for plug-n-play disks |
181 | include "blkdev/disk_cache.inc" ; caching for plug-n-play disks |
||
465 | serge | 182 | include "fs/fs.inc" ; syscall |
183 | include "fs/fat32.inc" ; read / write for fat32 filesystem |
||
184 | include "fs/ntfs.inc" ; read / write for ntfs filesystem |
||
185 | include "fs/fat12.inc" ; read / write for fat12 filesystem |
||
70 | mario79 | 186 | include "blkdev/rd.inc" ; ramdisk read /write |
73 | diamond | 187 | include "fs/fs_lfn.inc" ; syscall, version 2 |
87 | mario79 | 188 | include "fs/iso9660.inc" ; read for iso9660 filesystem CD |
2382 | hidnplayr | 189 | include "fs/ext2.inc" ; read / write for ext2 filesystem |
1 | ha | 190 | |
191 | ; sound |
||
192 | |||
193 | include "sound/playnote.inc" ; player Note for Speaker PC |
||
194 | |||
195 | ; display |
||
196 | |||
197 | include "video/vesa12.inc" ; Vesa 1.2 functions |
||
198 | include "video/vesa20.inc" ; Vesa 2.0 functions |
||
2382 | hidnplayr | 199 | include "video/blitter.inc" ; |
1 | ha | 200 | include "video/vga.inc" ; VGA 16 color functions |
221 | serge | 201 | include "video/cursors.inc" ; cursors functions |
1 | ha | 202 | |
203 | ; Network Interface & TCPIP Stack |
||
204 | |||
205 | include "network/stack.inc" |
||
206 | |||
465 | serge | 207 | ;include "drivers/uart.inc" |
208 | |||
209 | |||
1 | ha | 210 | ; Mouse pointer |
211 | |||
212 | include "gui/mouse.inc" |
||
213 | |||
214 | ; Window skinning |
||
215 | |||
216 | include "gui/skincode.inc" |
||
217 | |||
218 | ; Pci functions |
||
219 | |||
220 | include "bus/pci/pci32.inc" |
||
221 | |||
222 | ; Floppy drive controller |
||
223 | |||
224 | include "blkdev/fdc.inc" |
||
225 | include "blkdev/flp_drv.inc" |
||
226 | |||
580 | mario79 | 227 | ; IDE cache |
228 | include "blkdev/ide_cache.inc" |
||
229 | |||
160 | diamond | 230 | ; HD drive controller |
231 | include "blkdev/hd_drv.inc" |
||
232 | |||
1 | ha | 233 | ; CD drive controller |
234 | |||
235 | include "blkdev/cdrom.inc" |
||
87 | mario79 | 236 | include "blkdev/cd_drv.inc" |
1 | ha | 237 | |
238 | ; Character devices |
||
239 | |||
240 | include "hid/keyboard.inc" |
||
33 | mario79 | 241 | include "hid/mousedrv.inc" |
1 | ha | 242 | |
243 | ; setting date,time,clock and alarm-clock |
||
244 | |||
245 | include "hid/set_dtc.inc" |
||
246 | |||
247 | ;% -include |
||
488 | spraid | 248 | |
249 | ;parser file names |
||
250 | include "fs/parse_fn.inc" |
||
251 | |||
252 | ; work with conf lib |
||
253 | include "core/conf_lib.inc" |
||
254 | |||
255 | ; load external lib |
||
256 | include "core/ext_lib.inc" |
||
257 | |||
258 | ; list of external functions |
||
530 | mikedld | 259 | include "imports.inc" |