Rev 4423 | Rev 5565 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4423 | Rev 5201 | ||
---|---|---|---|
Line 11... | Line 11... | ||
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 | ||
Line 16... | Line 16... | ||
16 | $Revision: 4423 $ |
16 | $Revision: 5201 $ |
17 | 17 | ||
18 | struct POINT |
18 | struct POINT |
19 | x dd ? |
19 | x dd ? |
Line 96... | Line 96... | ||
96 | dr2 dd ? |
96 | dr2 dd ? |
97 | dr3 dd ? |
97 | dr3 dd ? |
98 | dr7 dd ? |
98 | dr7 dd ? |
99 | ends |
99 | ends |
Line -... | Line 100... | ||
- | 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_next rd 1 |
|
- | 116 | htab rd (4096-$)/4 |
|
- | 117 | pdt_0 rd 1024 |
|
- | 118 | ends |
|
100 | 119 | ||
101 | struct APPDATA |
120 | struct APPDATA |
102 | app_name rb 11 |
121 | app_name rb 11 |
Line 103... | Line 122... | ||
103 | rb 5 |
122 | rb 5 |
104 | - | ||
105 | fpu_state dd ? ;+16 |
123 | |
106 | ev_count_ dd ? ;unused ;+20 |
124 | list LHEAD ;+16 |
107 | exc_handler dd ? ;+24 |
125 | process dd ? ;+24 |
108 | except_mask dd ? ;+28 |
126 | fpu_state dd ? ;+28 |
109 | pl0_stack dd ? ;+32 |
127 | exc_handler dd ? ;+32 |
110 | heap_base dd ? ;+36 |
128 | except_mask dd ? ;+36 |
111 | heap_top dd ? ;+40 |
129 | pl0_stack dd ? ;+40 |
112 | cursor dd ? ;+44 |
130 | cursor dd ? ;+44 |
113 | fd_ev dd ? ;+48 |
131 | fd_ev dd ? ;+48 |
114 | bk_ev dd ? ;+52 |
132 | bk_ev dd ? ;+52 |
Line 122... | Line 140... | ||
122 | saved_esp0 dd ? ;+88 |
140 | saved_esp0 dd ? ;+88 |
123 | wait_begin dd ? ;+92 +++ |
141 | wait_begin dd ? ;+92 +++ |
124 | wait_test dd ? ;+96 +++ |
142 | wait_test dd ? ;+96 +++ |
125 | wait_param dd ? ;+100 +++ |
143 | wait_param dd ? ;+100 +++ |
126 | tls_base dd ? ;+104 |
144 | tls_base dd ? ;+104 |
127 | dlls_list_ptr dd ? ;+108 |
145 | dd ? ;+108 |
128 | event_filter dd ? ;+112 |
146 | event_filter dd ? ;+112 |
129 | draw_bgr_x dd ? ;+116 |
147 | draw_bgr_x dd ? ;+116 |
130 | draw_bgr_y dd ? ;+120 |
148 | draw_bgr_y dd ? ;+120 |
131 | dd ? ;+124 |
149 | dd ? ;+124 |
Line 132... | Line 150... | ||
132 | 150 | ||
133 | wnd_shape dd ? ;+128 |
151 | wnd_shape dd ? ;+128 |
134 | wnd_shape_scale dd ? ;+132 |
152 | wnd_shape_scale dd ? ;+132 |
135 | dd ? ;+136 |
153 | dd ? ;+136 |
136 | mem_size dd ? ;+140 |
154 | dd ? ;+140 |
137 | saved_box BOX ;+144 |
155 | saved_box BOX ;+144 |
138 | ipc_start dd ? ;+160 |
156 | ipc_start dd ? ;+160 |
139 | ipc_size dd ? ;+164 |
157 | ipc_size dd ? ;+164 |
140 | event_mask dd ? ;+168 |
158 | event_mask dd ? ;+168 |
141 | debugger_slot dd ? ;+172 |
159 | debugger_slot dd ? ;+172 |
142 | terminate_protection dd ? ;+176 |
160 | terminate_protection dd ? ;+176 |
143 | keyboard_mode db ? ;+180 |
161 | keyboard_mode db ? ;+180 |
144 | rb 3 |
162 | rb 3 |
145 | dir_table dd ? ;+184 |
163 | dd ? ;+184 |
146 | dbg_event_mem dd ? ;+188 |
164 | dbg_event_mem dd ? ;+188 |
147 | dbg_regs DBG_REGS ;+192 |
165 | dbg_regs DBG_REGS ;+192 |
148 | wnd_caption dd ? ;+212 |
166 | wnd_caption dd ? ;+212 |
149 | wnd_clientbox BOX ;+216 |
167 | wnd_clientbox BOX ;+216 |
150 | priority dd ? ;+232 |
168 | priority dd ? ;+232 |
Line 151... | Line 169... | ||
151 | in_schedule LHEAD ;+236 |
169 | in_schedule LHEAD ;+236 |
Line -... | Line 170... | ||
- | 170 | ||
- | 171 | ends |
|
- | 172 | ||
- | 173 | struct IDE_DATA |
|
- | 174 | ProgrammingInterface dd ? |
|
- | 175 | Interrupt dw ? |
|
- | 176 | RegsBaseAddres dw ? |
|
- | 177 | BAR0_val dw ? |
|
- | 178 | BAR1_val dw ? |
|
- | 179 | BAR2_val dw ? |
|
- | 180 | BAR3_val dw ? |
|
- | 181 | dma_hdd_channel_1 db ? |
|
- | 182 | dma_hdd_channel_2 db ? |
|
- | 183 | ends |
|
- | 184 | ||
- | 185 | struct IDE_CACHE |
|
- | 186 | pointer dd ? |
|
- | 187 | size dd ? ; not use |
|
- | 188 | data_pointer dd ? |
|
- | 189 | system_data_size dd ? ; not use |
|
- | 190 | appl_data_size dd ? ; not use |
|
- | 191 | system_data dd ? |
|
- | 192 | appl_data dd ? |
|
- | 193 | system_sad_size dd ? |
|
- | 194 | appl_sad_size dd ? |
|
- | 195 | search_start dd ? |
|
- | 196 | appl_search_start dd ? |
|
- | 197 | ends |
|
- | 198 | ||
- | 199 | struct IDE_DEVICE |
|
Line 152... | Line 200... | ||
152 | 200 | UDMA_possible_modes db ? |
|
153 | ends |
201 | UDMA_set_mode db ? |
154 | 202 | ends |
|
155 | 203 | ||
156 | ; Core functions |
204 | ; Core functions |
157 | include "core/sync.inc" ; macros for synhronization objects |
205 | include "core/sync.inc" ; macros for synhronization objects |
158 | include "core/sys32.inc" ; process management |
206 | include "core/sys32.inc" ; process management |
- | 207 | include "core/sched.inc" ; process scheduling |
|
159 | include "core/sched.inc" ; process scheduling |
208 | include "core/syscall.inc" ; system call |
160 | include "core/syscall.inc" ; system call |
209 | include "core/fpu.inc" ; all fpu/sse support |
161 | include "core/fpu.inc" ; all fpu/sse support |
210 | include "core/memory.inc" |
162 | include "core/memory.inc" |
211 | include "core/mtrr.inc" |
163 | include "core/heap.inc" ; kernel and app heap |
212 | include "core/heap.inc" ; kernel and app heap |
Line 240... | Line 289... | ||
240 | ; Access through BIOS |
289 | ; Access through BIOS |
241 | include "blkdev/bd_drv.inc" |
290 | include "blkdev/bd_drv.inc" |
Line 242... | Line 291... | ||
242 | 291 | ||
Line 243... | Line -... | ||
243 | ; CD drive controller |
- | |
244 | 292 | ; CD drive controller |
|
Line 245... | Line 293... | ||
245 | include "blkdev/cdrom.inc" |
293 | |
Line 246... | Line 294... | ||
246 | include "blkdev/cd_drv.inc" |
294 | include "blkdev/cd_drv.inc" |