Rev 5590 | Rev 6242 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5590 | Rev 5593 | ||
---|---|---|---|
Line 3... | Line 3... | ||
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 | ;; KERNEL32.INC ;; |
6 | ;; KERNEL32.INC ;; |
7 | ;; ;; |
7 | ;; ;; |
8 | ;; Included 32 bit kernel files for MenuetOS ;; |
8 | ;; Included 32 bit kernel files for KolibriOS ;; |
9 | ;; ;; |
9 | ;; ;; |
10 | ;; This file is kept separate as it will be easier to ;; |
10 | ;; This file is kept separate as it will be easier to ;; |
11 | ;; maintain and compile with an automated SETUP program ;; |
11 | ;; maintain and compile with an automated SETUP program ;; |
12 | ;; in the future. ;; |
12 | ;; in the future. ;; |
13 | ;; ;; |
13 | ;; ;; |
14 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
14 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 15... | Line 15... | ||
15 | 15 | ||
16 | $Revision: 5590 $ |
- | |
17 | - | ||
18 | struct POINT |
- | |
19 | x dd ? |
- | |
20 | y dd ? |
- | |
21 | ends |
- | |
22 | - | ||
23 | struct RECT |
- | |
24 | left dd ? |
- | |
25 | top dd ? |
- | |
26 | right dd ? |
- | |
27 | bottom dd ? |
- | |
28 | ends |
- | |
29 | - | ||
30 | struct BOX |
- | |
31 | left dd ? |
- | |
32 | top dd ? |
- | |
33 | width dd ? |
- | |
34 | height dd ? |
- | |
35 | ends |
- | |
36 | - | ||
37 | struct DISPMODE |
- | |
38 | width dw ? |
- | |
39 | height dw ? |
- | |
40 | bpp dw ? |
- | |
41 | freq dw ? |
- | |
42 | ends |
- | |
43 | - | ||
44 | ; constants definition |
- | |
45 | WSTATE_NORMAL = 00000000b |
- | |
46 | WSTATE_MAXIMIZED = 00000001b |
- | |
47 | WSTATE_MINIMIZED = 00000010b |
- | |
48 | WSTATE_ROLLEDUP = 00000100b |
- | |
49 | - | ||
50 | WSTATE_REDRAW = 00000001b |
- | |
51 | WSTATE_WNDDRAWN = 00000010b |
- | |
52 | - | ||
53 | WSTYLE_HASCAPTION = 00010000b |
- | |
54 | WSTYLE_CLIENTRELATIVE = 00100000b |
- | |
55 | - | ||
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 |
- | |
70 | - | ||
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 | - | ||
79 | ; structures definition |
- | |
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 | - | ||
91 | label WDATA.fl_wstyle byte at WDATA.cl_workarea + 3 |
- | |
92 | - | ||
93 | struct DBG_REGS |
- | |
94 | dr0 dd ? |
- | |
95 | dr1 dd ? |
- | |
96 | dr2 dd ? |
- | |
97 | dr3 dd ? |
- | |
98 | dr7 dd ? |
- | |
99 | ends |
- | |
100 | - | ||
101 | struct PROC |
- | |
102 | list LHEAD |
- | |
103 | thr_list LHEAD |
- | |
104 | heap_lock MUTEX |
- | |
105 | heap_base rd 1 |
- | |
106 | heap_top rd 1 |
- | |
107 | mem_used rd 1 |
- | |
108 | dlls_list_ptr rd 1 |
- | |
109 | pdt_0_phys rd 1 |
- | |
110 | pdt_1_phys rd 1 |
- | |
111 | io_map_0 rd 1 |
- | |
112 | io_map_1 rd 1 |
- | |
113 | - | ||
114 | ht_lock rd 1 |
- | |
115 | ht_free rd 1 ;htab[0] stdin |
- | |
116 | ht_next rd 1 ;htab[1] stdout |
- | |
117 | htab rd (4096-$)/4 ;htab[2] stderr |
- | |
118 | pdt_0 rd 1024 |
- | |
119 | ends |
- | |
120 | - | ||
121 | struct APPDATA |
- | |
122 | app_name rb 11 |
- | |
123 | rb 5 |
- | |
124 | - | ||
125 | list LHEAD ;+16 |
- | |
126 | process dd ? ;+24 |
- | |
127 | fpu_state dd ? ;+28 |
- | |
128 | exc_handler dd ? ;+32 |
- | |
129 | except_mask dd ? ;+36 |
- | |
130 | pl0_stack dd ? ;+40 |
- | |
131 | cursor dd ? ;+44 |
- | |
132 | fd_ev dd ? ;+48 |
- | |
133 | bk_ev dd ? ;+52 |
- | |
134 | fd_obj dd ? ;+56 |
- | |
135 | bk_obj dd ? ;+60 |
- | |
136 | saved_esp dd ? ;+64 |
- | |
137 | io_map rd 2 ;+68 |
- | |
138 | dbg_state dd ? ;+76 |
- | |
139 | cur_dir dd ? ;+80 |
- | |
140 | wait_timeout dd ? ;+84 |
- | |
141 | saved_esp0 dd ? ;+88 |
- | |
142 | wait_begin dd ? ;+92 +++ |
- | |
143 | wait_test dd ? ;+96 +++ |
- | |
144 | wait_param dd ? ;+100 +++ |
- | |
145 | tls_base dd ? ;+104 |
- | |
146 | dd ? ;+108 |
- | |
147 | event_filter dd ? ;+112 |
- | |
148 | draw_bgr_x dd ? ;+116 |
- | |
149 | draw_bgr_y dd ? ;+120 |
- | |
150 | dd ? ;+124 |
- | |
151 | - | ||
152 | wnd_shape dd ? ;+128 |
- | |
153 | wnd_shape_scale dd ? ;+132 |
- | |
154 | dd ? ;+136 |
- | |
155 | dd ? ;+140 |
- | |
156 | saved_box BOX ;+144 |
- | |
157 | ipc_start dd ? ;+160 |
- | |
158 | ipc_size dd ? ;+164 |
- | |
159 | event_mask dd ? ;+168 |
- | |
160 | debugger_slot dd ? ;+172 |
- | |
161 | terminate_protection dd ? ;+176 |
- | |
162 | keyboard_mode db ? ;+180 |
- | |
163 | rb 3 |
- | |
164 | dd ? ;+184 |
- | |
165 | dbg_event_mem dd ? ;+188 |
- | |
166 | dbg_regs DBG_REGS ;+192 |
- | |
167 | wnd_caption dd ? ;+212 |
- | |
168 | wnd_clientbox BOX ;+216 |
- | |
169 | priority dd ? ;+232 |
- | |
170 | in_schedule LHEAD ;+236 |
- | |
171 | - | ||
172 | ends |
- | |
173 | - | ||
174 | struct IDE_DATA |
- | |
175 | ProgrammingInterface dd ? |
- | |
176 | Interrupt dw ? |
- | |
177 | RegsBaseAddres dw ? |
- | |
178 | BAR0_val dw ? |
- | |
179 | BAR1_val dw ? |
- | |
180 | BAR2_val dw ? |
- | |
181 | BAR3_val dw ? |
- | |
182 | dma_hdd_channel_1 db ? |
- | |
183 | dma_hdd_channel_2 db ? |
- | |
184 | ends |
- | |
185 | - | ||
186 | struct IDE_CACHE |
- | |
187 | pointer dd ? |
- | |
188 | size dd ? ; not use |
- | |
189 | data_pointer dd ? |
- | |
190 | system_data_size dd ? ; not use |
- | |
191 | appl_data_size dd ? ; not use |
- | |
192 | system_data dd ? |
- | |
193 | appl_data dd ? |
- | |
194 | system_sad_size dd ? |
- | |
195 | appl_sad_size dd ? |
- | |
196 | search_start dd ? |
- | |
197 | appl_search_start dd ? |
- | |
198 | ends |
- | |
199 | - | ||
200 | struct IDE_DEVICE |
- | |
201 | UDMA_possible_modes db ? |
- | |
202 | UDMA_set_mode db ? |
- | |
203 | ends |
- | |
204 | - | ||
205 | struct SYSCALL_STACK |
- | |
206 | _eip dd ? |
- | |
207 | _edi dd ? ; +4 |
- | |
208 | _esi dd ? ; +8 |
- | |
209 | _ebp dd ? ; +12 |
- | |
210 | _esp dd ? ; +16 |
- | |
211 | _ebx dd ? ; +20 |
- | |
212 | _edx dd ? ; +24 |
- | |
213 | _ecx dd ? ; +28 |
- | |
214 | _eax dd ? ; +32 |
- | |
215 | ends |
- | |
Line 216... | Line 16... | ||
216 | 16 | $Revision: 5593 $ |
|
217 | 17 | ||
218 | ; Core functions |
18 | ; Core functions |
219 | include "core/sync.inc" ; macros for synhronization objects |
19 | include "core/sync.inc" ; macros for synhronization objects |