2003-07-12 Casper S. Hornstrup <chorns@users.sourceforge.net>
[reactos.git] / reactos / ChangeLog
1 2003-07-12 Casper S. Hornstrup <chorns@users.sourceforge.net>
2
3 Changes for compiling with w32api
4
5 * include/ddk/extypes.h (NPAGED_LOOKASIDE_LIST, PAGED_LOOKASIDE_LIST):
6 Match w32api fields.
7 * include/ddk/halfuncs.h (HalReturnToFirmware, HalReleaseDisplayOwnership,
8 HalQueryDisplayOwnership): Move ...
9 * include/ntos/halfuncs.h: ... here.
10 * include/ntos/rtl.h: (PopEntrySList, PushEntrySList): Move to
11 ntoskrnl/ex/lookas.c.
12 * include/ntos/zw.h (NtAccessCheckAndAuditAlarm, NtCancelTimer,
13 NtCreatePagingFile, NtCreateThread, NtFlushInstructionCache,
14 NtFlushVirtualMemory, NtGetTickCount, NtLoadKey, NtLockVirtualMemory,
15 NtOpenObjectAuditAlarm, NtProtectVirtualMemory, NtQueryDirectoryObject,
16 NtQueryIntervalProfile, NtQueryVirtualMemory, NtRaiseHardError,
17 NtSetInformationKey, NtSetInformationObject, NtSetTimer, NtUnloadKey,
18 NtUnlockVirtualMemory, NtWaitForMultipleObjects, NtCreateProfile,
19 NtDelayExecution, NtExtendSection, NtQuerySection): Include for w32api.
20 * ntoskrnl/ntoskrnl.def (ExInterlockedAddUlong,
21 ExInterlockedInsertHeadList, ExInterlockedInsertTailList,
22 ExInterlockedPopEntryList, ExInterlockedPushEntryList,
23 ExInterlockedRemoveHeadList): Make FASTCALL.
24 * ntoskrnl/ntoskrnl.edf: Ditto.
25 * ntoskrnl/ex/list.c: Ditto.
26 * include/ddk/exfuncs.h: Ditto.
27 (InterlockedPopEntrySList, InterlockedPushEntrySList,
28 ExAllocateFromPagedLookasideList, ExFreeToPagedLookasideList): Add.
29 * ntoskrnl/ex/interlck.c (ExInterlockedDecrementLong,
30 ExInterlockedAddUlong, ExInterlockedIncrementLong): Undefine if defined.
31 * ntoskrnl/ex/lookas.c (PopEntrySList, PushEntrySList,
32 LookasideListLock): Add.
33 * drivers/dd/blue/blue.c: Include <roskrnl.h>.
34 * drivers/dd/videoprt/videoprt.c: Ditto.
35
36 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
37
38 * lib/user32/controls/edit.c (EDIT_EM_SetLimitText,
39 EDIT_WM_StyleChanged): Fix unsigned/signed warning.
40
41 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
42
43 * config (DBG): Default to 0.
44
45 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
46
47 * regtests: New directory.
48 * regtests/kmregtests: Ditto.
49 * regtests/kmrtint: Ditto.
50 * regtests/regtests: Ditto.
51 * regtests/shared: Ditto.
52 * regtests/win32base: Ditto.
53 * include/roskrnl.h: New file.
54 * regtests/Makefile: Ditto.
55 * regtests/kmregtests/.cvsignore: Ditto.
56 * regtests/kmregtests/driver.c: Ditto.
57 * regtests/kmregtests/kmregtests.h: Ditto.
58 * regtests/kmregtests/Makefile: Ditto.
59 * regtests/kmrtint/.cvsignore: Ditto.
60 * regtests/kmrtint/kmrtint.c: Ditto.
61 * regtests/kmrtint/kmrtint.def: Ditto.
62 * regtests/kmrtint/kmrtint.edf: Ditto.
63 * regtests/kmrtint/Makefile: Ditto.
64 * regtests/regtests/.cvsignore: Ditto.
65 * regtests/regtests/Makefile: Ditto.
66 * regtests/regtests/regtests.c: Ditto.
67 * regtests/shared/.cvsignore: Ditto.
68 * regtests/shared/Makefile: Ditto.
69 * regtests/shared/regtests.c: Ditto.
70 * regtests/shared/regtests.h: Ditto.
71 * regtests/win32base/.cvsignore: Ditto.
72 * regtests/win32base/driver.c: Ditto.
73 * regtests/win32base/file-1.c: Ditto.
74 * regtests/win32base/Makefile: Ditto.
75 * regtests/win32base/win32base.def: Ditto.
76 * regtests/win32base/win32base.edf: Ditto.
77 * tools/regtests.c: Ditto.
78 * Makefile: Add target regtests.
79 * config: Add SEH option.
80 * rules.mak: Add tool REGTESTS.
81 * bootdata/hivesys.inf: Add service kmregtests.
82 * include/win32k/bitmaps.h (DIB_BitmapInfoSize): Correct prototype.
83 * ntoskrnl/ke/i386/exp.c (KiKernelTrapHandler): Reverse wrong boolean
84 expression.
85 * ntoskrnl/ke/i386/usertrap.c (KiUserTrapHandler): Ditto.
86 * tools/Makefile: Add tool regtests.
87 * tools/config.mk: Handle SEH option.
88 * tools/helper.mk: Support regression tests.
89
90 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
91
92 * apps/tests/bitblt/bitblt.c (MainWndProc): Declare variables
93 before any statements are processed in the scope.
94 * apps/tests/icontest/icontest.c (WinMain): Ditto.
95 * apps/tests/wm_paint/wm_paint.c (WinMain, MainWndProc): Ditto.
96
97 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
98
99 * lib/user32/controls/button.c (PB_Paint, GB_Paint): Declare variables
100 before any statements are processed in the scope.
101 * lib/user32/controls/combo.c (CBPaintButton): Ditto.
102 * lib/user32/windows/accel.c (TranslateAcceleratorA): Ditto.
103 * subsys/win32k/include/class.h (W32kGetClassLong): Fix prototype.
104 * subsys/win32k/ntuser/class.c (W32kGetClassLong): Match prototype.
105 * subsys/win32k/ntuser/windc.c (DceAllocDCE): Ditto.
106 * subsys/win32k/ntuser/window.c (DestroyThreadWindows): Ditto.
107
108 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
109
110 * tools/rgenstat/rgenstat.c (process_directory): Fix building on Windows.
111
112 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
113
114 * tools/rgenstat/rgenstat.c (API_INFO): Add filename field.
115 (path_to_url, get_filename): New functions.
116 (parse_file, process_directory): Build cvs path.
117 (generate_xml_for_component): Set file attribute on a function.
118 * tools/rgenstat/web/rapistatus.css (.h): New class.
119 * tools/rgenstat/web/rapistatus.js (clickHandler): Go to the file in
120 ViewCVS on click on a function.
121 * tools/rgenstat/web/rapistatus.xsl: Handle file attribute.
122
123 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
124
125 * subsys/win32k/objects/region.c (W32kFillRgn): Fix syntax error.
126
127 2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
128
129 * tools/rgenstat/rgenstat.c (get_previous_identifier): Skip end-of-line
130 characters when searching for identifier.
131 (parse_file): Print a warning if no identifier is found.
132
133 2003-07-10 James Tabor <jimtabor@adsl-64-217-116-74.dsl.hstntx.swbell.net>
134
135 * subsys/win32k/objects/region.c: (W32kFillRgn) Implement.
136
137 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
138
139 * lib/winspool/stubs.c: Add @implemented and @unimplemented to APIs.
140
141 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
142
143 * lib/wsock32/stubs.c: Add @implemented and @unimplemented to APIs.
144
145 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
146
147 * lib/ws2_32/misc/bsd.c: Add @implemented and @unimplemented to APIs.
148 * lib/ws2_32/misc/dllmain.c: Ditto.
149 * lib/ws2_32/misc/event.c: Ditto.
150 * lib/ws2_32/misc/ns.c: Ditto.
151 * lib/ws2_32/misc/sndrcv.c: Ditto.
152 * lib/ws2_32/misc/stubs.c: Ditto.
153 * lib/ws2_32/misc/upcall.c: Ditto.
154
155 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
156
157 * drivers/dd/videoprt/videoprt.c: Add @implemented and @unimplemented
158 to APIs.
159
160 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
161
162 * lib/version/misc/stubs.c: Add @implemented and @unimplemented to APIs.
163
164 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
165
166 * lib/user32/misc/dde.c: Add @implemented and @unimplemented to APIs.
167 * lib/user32/misc/desktop.c: Ditto.
168 * lib/user32/misc/display.c: Ditto.
169 * lib/user32/misc/exit.c: Ditto.
170 * lib/user32/misc/object.c: Ditto.
171 * lib/user32/misc/resources.c: Ditto.
172 * lib/user32/misc/sprintf.c: Ditto.
173 * lib/user32/misc/stubs.c: Ditto.
174 * lib/user32/misc/timer.c: Ditto.
175 * lib/user32/misc/winhelp.c: Ditto.
176 * lib/user32/misc/winsta.c: Ditto.
177 * lib/user32/windows/accel.c: Ditto.
178 * lib/user32/windows/bitmap.c: Ditto.
179 * lib/user32/windows/class.c: Ditto.
180 * lib/user32/windows/clipboard.c: Ditto.
181 * lib/user32/windows/cursor.c: Ditto.
182 * lib/user32/windows/dc.c: Ditto.
183 * lib/user32/windows/defwnd.c: Ditto.
184 * lib/user32/windows/dialog.c: Ditto.
185 * lib/user32/windows/draw.c: Ditto.
186 * lib/user32/windows/font.c: Ditto.
187 * lib/user32/windows/hook.c: Ditto.
188 * lib/user32/windows/icon.c: Ditto.
189 * lib/user32/windows/input.c: Ditto.
190 * lib/user32/windows/mdi.c: Ditto.
191 * lib/user32/windows/menu.c: Ditto.
192 * lib/user32/windows/message.c: Ditto.
193 * lib/user32/windows/messagebox.c: Ditto.
194 * lib/user32/windows/nonclient.c: Ditto.
195 * lib/user32/windows/paint.c: Ditto.
196 * lib/user32/windows/prop.c: Ditto.
197 * lib/user32/windows/rect.c: Ditto.
198 * lib/user32/windows/text.c: Ditto.
199 * lib/user32/windows/window.c: Ditto.
200
201 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
202
203 * drivers/net/tdi/cte/string.c: Add @implemented and @unimplemented to
204 APIs.
205 * drivers/net/tdi/cte/stubs.c: Ditto.
206 * drivers/net/tdi/tdi/dereg.c: Ditto.
207 * drivers/net/tdi/tdi/handler.c: Ditto.
208 * drivers/net/tdi/tdi/obsolete.c: Ditto.
209 * drivers/net/tdi/tdi/stubs.c: Ditto.
210
211 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
212
213 * lib/snmpapi/snmpapi.c: Add @implemented and @unimplemented to APIs.
214
215 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
216
217 * lib/secur32/lsa.c: Add @implemented and @unimplemented to APIs.
218
219 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
220
221 * drivers/storage/scsiport/scsiport.c: Add @implemented and
222 @unimplemented to APIs.
223
224 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
225
226 * drivers/net/ndis/ndis/40gone.c: Add @implemented and @unimplemented
227 to APIs.
228 * drivers/net/ndis/ndis/50gone.c: Ditto.
229 * drivers/net/ndis/ndis/buffer.c: Ditto.
230 * drivers/net/ndis/ndis/cl.c: Ditto.
231 * drivers/net/ndis/ndis/cm.c: Ditto.
232 * drivers/net/ndis/ndis/co.c: Ditto.
233 * drivers/net/ndis/ndis/control.c: Ditto.
234 * drivers/net/ndis/ndis/hardware.c: Ditto.
235 * drivers/net/ndis/ndis/io.c: Ditto.
236 * drivers/net/ndis/ndis/memory.c: Ditto.
237 * drivers/net/ndis/ndis/miniport.c: Ditto.
238 * drivers/net/ndis/ndis/protocol.c: Ditto.
239 * drivers/net/ndis/ndis/string.c: Ditto.
240 * drivers/net/ndis/ndis/stubs.c: Ditto.
241 * drivers/net/ndis/ndis/time.c: Ditto.
242
243 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
244
245 * lib/kernel32/debug/break.c: Add @implemented and @unimplemented
246 to APIs.
247 * lib/kernel32/debug/debugger.c: Ditto.
248 * lib/kernel32/debug/output.c: Ditto.
249 * lib/kernel32/except/except.c: Ditto.
250 * lib/kernel32/file/backup.c: Ditto.
251 * lib/kernel32/file/cnotify.c: Ditto.
252 * lib/kernel32/file/copy.c: Ditto.
253 * lib/kernel32/file/create.c: Ditto.
254 * lib/kernel32/file/curdir.c: Ditto.
255 * lib/kernel32/file/delete.c: Ditto.
256 * lib/kernel32/file/deviceio.c: Ditto.
257 * lib/kernel32/file/dir.c: Ditto.
258 * lib/kernel32/file/dosdev.c: Ditto.
259 * lib/kernel32/file/file.c: Ditto.
260 * lib/kernel32/file/find.c: Ditto.
261 * lib/kernel32/file/iocompl.c: Ditto.
262 * lib/kernel32/file/lfile.c: Ditto.
263 * lib/kernel32/file/lock.c: Ditto.
264 * lib/kernel32/file/mailslot.c: Ditto.
265 * lib/kernel32/file/move.c: Ditto.
266 * lib/kernel32/file/npipe.c: Ditto.
267 * lib/kernel32/file/pipe.c: Ditto.
268 * lib/kernel32/file/rw.c: Ditto.
269 * lib/kernel32/file/tape.c: Ditto.
270 * lib/kernel32/file/volume.c: Ditto.
271 * lib/kernel32/mem/global.c: Ditto.
272 * lib/kernel32/mem/heap.c: Ditto.
273 * lib/kernel32/mem/isbad.c: Ditto.
274 * lib/kernel32/mem/local.c: Ditto.
275 * lib/kernel32/mem/procmem.c: Ditto.
276 * lib/kernel32/mem/section.c: Ditto.
277 * lib/kernel32/mem/virtual.c: Ditto.
278 * lib/kernel32/misc/atom.c: Ditto.
279 * lib/kernel32/misc/comm.c: Ditto.
280 * lib/kernel32/misc/computername.c: Ditto.
281 * lib/kernel32/misc/console.c: Ditto.
282 * lib/kernel32/misc/env.c: Ditto.
283 * lib/kernel32/misc/error.c: Ditto.
284 * lib/kernel32/misc/errormsg.c: Ditto.
285 * lib/kernel32/misc/handle.c: Ditto.
286 * lib/kernel32/misc/ldr.c: Ditto.
287 * lib/kernel32/misc/mbchars.c: Ditto.
288 * lib/kernel32/misc/muldiv.c: Ditto.
289 * lib/kernel32/misc/perfcnt.c: Ditto.
290 * lib/kernel32/misc/profile.c: Ditto.
291 * lib/kernel32/misc/res.c: Ditto.
292 * lib/kernel32/misc/stubs.c: Ditto.
293 * lib/kernel32/misc/sysinfo.c: Ditto.
294 * lib/kernel32/misc/time.c: Ditto.
295 * lib/kernel32/misc/toolhelp.c: Ditto.
296 * lib/kernel32/process/cmdline.c: Ditto.
297 * lib/kernel32/process/create.c: Ditto.
298 * lib/kernel32/process/proc.c: Ditto.
299 * lib/kernel32/process/session.c: Ditto.
300 * lib/kernel32/string/lstring.c: Ditto.
301 * lib/kernel32/synch/critical.c: Ditto.
302 * lib/kernel32/synch/event.c: Ditto.
303 * lib/kernel32/synch/intrlck.c: Ditto.
304 * lib/kernel32/synch/mutex.c: Ditto.
305 * lib/kernel32/synch/sem.c: Ditto.
306 * lib/kernel32/synch/timer.c: Ditto.
307 * lib/kernel32/synch/wait.c: Ditto.
308 * lib/kernel32/thread/fiber.c: Ditto.
309 * lib/kernel32/thread/fls.c: Ditto.
310 * lib/kernel32/thread/thread.c: Ditto.
311 * lib/kernel32/thread/tls.c: Ditto.
312
313 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
314
315 * lib/iphlpapi/iphlpapi.c: Add @implemented and @unimplemented
316 to APIs.
317
318 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
319
320 * lib/gdi32/main/dllmain.c: Add @implemented and @unimplemented
321 to APIs.
322 * lib/gdi32/misc/stubs.c: Ditto.
323 * lib/gdi32/misc/stubsa.c: Ditto.
324 * lib/gdi32/misc/stubsw.c: Ditto.
325 * lib/gdi32/objects/bitblt.c: Ditto.
326 * lib/gdi32/objects/brush.c: Ditto.
327 * lib/gdi32/objects/clip.c: Ditto.
328 * lib/gdi32/objects/dc.c: Ditto.
329 * lib/gdi32/objects/fillshap.c: Ditto.
330 * lib/gdi32/objects/line.c: Ditto.
331 * lib/gdi32/objects/pen.c: Ditto.
332 * lib/gdi32/objects/region.c: Ditto.
333 * lib/gdi32/objects/text.c: Ditto.
334
335 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
336
337 * drivers/storage/class2/class2.c: Add @implemented and @unimplemented
338 to APIs.
339
340 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
341
342 * lib/advapi32/misc/shutdown.c: Add @implemented and @unimplemented
343 to APIs.
344 * lib/advapi32/misc/stubs.c: Ditto.
345 * lib/advapi32/misc/sysfunc.c: Ditto.
346 * lib/advapi32/reg/reg.c: Ditto.
347 * lib/advapi32/sec/ac.c: Ditto.
348 * lib/advapi32/sec/misc.c: Ditto.
349 * lib/advapi32/sec/sec.c: Ditto.
350 * lib/advapi32/sec/sid.c: Ditto.
351 * lib/advapi32/service/scm.c: Ditto.
352 * lib/advapi32/service/sctrl.c: Ditto.
353 * lib/advapi32/token/privilege.c: Ditto.
354 * lib/advapi32/token/token.c: Ditto.
355
356 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
357
358 * tools/rgenstat/rgenstat.c (parse_file): Be silent.
359
360 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
361
362 * rules.mak (XSLTPROC): Add.
363 * tools/Makefile: Add rgenstat.
364 * apistatus.lst: New file.
365 * tools/rgenstat: New directory.
366 * tools/rgenstat/.cvsignore: New file.
367 * tools/rgenstat/llmosrt.c: Ditto.
368 * tools/rgenstat/Makefile: Ditto.
369 * tools/rgenstat/rgenstat.c: Ditto.
370 * tools/rgenstat/web: New directory.
371 * tools/rgenstat/web/*.gif: New files.
372 * tools/rgenstat/web/.cvsignore: New file.
373 * tools/rgenstat/web/rapistatus.css: Ditto.
374 * tools/rgenstat/web/rapistatus.js: Ditto.
375 * tools/rgenstat/web/rapistatus.xsl: Ditto.
376
377 2003-07-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
378
379 * drivers/fs/vfat/misc.c (VfatLockControl): Move it so it is placed
380 before it is referenced.
381 * include/win32k/ntuser.h (NtUserQueryWindow): Correct prototype.
382 * lib/winedbgc/debug.c (default_dbg_vlog): Use wine_dbg_vprintf, not
383 __wine_dbg_vprintf.
384 * ntoskrnl/nt/vdm.c (NtEarlyInitVdm): Work around GCC 3.4 trying to be
385 smart.
386
387 2003-07-07 James Tabor <jimtabor@adsl-64-217-116-74.dsl.hstntx.swbell.net>
388
389 * subsys/win32k/ntuser/window.c: (NtUserQueryWindow) Implement.
390 * include/win32k/ntuser.h: Ditto.
391 * lib/user32/windows/window.c: (GetWindowThreadProcessId) Implement.
392
393 2003-07-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
394
395 * lib/user32/windows/defwnd.c (DefWndHandleLButtonUpNC,
396 User32DefWindowProc): Only send WM_SYSCOMMAND message, not WM_CLOSE.
397 (DefWndHandleSysCommand): Handle SC_CLOSE message.
398
399 2003-07-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
400
401 * include/win32k/ntuser.h (NtUserSetFocus): Correct prototype.
402 * lib/user32/misc/stubs.c (SetFocus): Remove.
403 * lib/user32/windows/defwnd.c (KEYDATA_ALT): New.
404 (User32DefWindowProc): Handle WM_SYSKEYDOWN.
405 * lib/user32/windows/input.c (SetFocus): New.
406 * subsys/win32k/include/msgqueue.h (USER_MESSAGE_QUEUE): Document
407 FocusWindow field.
408 * subsys/win32k/include/window.h (W32kSetFocusWindow): Change return type
409 to HWND.
410 * subsys/win32k/include/winsta.h (W32kGetFocusMessageQueue): New.
411 * subsys/win32k/ntuser/input.c (KeyboardThreadMain): Handle system keys.
412 * subsys/win32k/ntuser/keyboard.c (NtUserSetFocus): New.
413 * subsys/win32k/ntuser/msgqueue.c (MsqPostKeyboardMessage): Implement.
414 * subsys/win32k/ntuser/stubs.c (NtUserSetFocus): Remove.
415 * subsys/win32k/ntuser/window.c (W32kSetFocusWindow): Implement.
416 (NtUserGetClientRect, W32kGetWindowProc, NtUserCreateWindowEx): Release
417 window reference on error.
418 (W32kDestroyWindow): Remove focus from window tree before destroying it
419 if needed.
420 * subsys/win32k/ntuser/winpos.c (WinPosChangeActiveWindow): Implement.
421 (WinPosShowWindow): Activate window if needed.
422 * subsys/win32k/ntuser/winsta.c (W32kGetFocusMessageQueue): New.
423
424 2003-06-27 Casper S. Hornstrup <chorns@users.sourceforge.net>
425
426 * lib/user32/controls/button.c (ButtonWndProc_common): Fix unsigned/signed
427 warning.
428
429 2003-06-07 Casper S. Hornstrup <chorns@users.sourceforge.net>
430
431 * include/ddk/dbgfuncs.h: Move ...
432 * include/ntos/dbgfuncs.h: ... here.
433 * include/basetsd.h (LONG32): Make it a long.
434 * include/ntos.h: Include ntos/dbgfuncs.h.
435 * include/ddk/dbgfuncs.h (DBG_STATUS_*, DBG_GET_SHOW_*): Move to
436 include/ntos/dbgfuncs.h.
437 * include/ddk/exfuncs.h (ExNotifyCallback): Match w32api prototype.
438 (*BinaryTree, *SplayTree, *HashTable): Move to include/ntos/zw.h.
439 * include/ddk/extypes.h (TRAVERSE_METHOD, PKEY_COMPARATOR,
440 PTRAVERSE_ROUTINE, _BINARY_TREE_NODE, BINARY_TREE, SPLAY_TREE_NODE,
441 SPLAY_TREE, HASH_TABLE): Move to include/ntos/zwtypes.h.
442 * include/ddk/status.h (STATUS_PATH_SYNTAX_BAD): Rename to
443 STATUS_OBJECT_PATH_SYNTAX_BAD.
444 * apps/utils/objdir/objdir.c (StatusToName): Change
445 STATUS_PATH_SYNTAX_BAD to STATUS_OBJECT_PATH_SYNTAX_BAD.
446 * ntoskrnl/dbg/errinfo.c: Use STATUS_OBJECT_PATH_SYNTAX_BAD.
447 * include/ntos/rtl.h (RtlQueryRegistryValues, RtlWriteRegistryValue,
448 RtlDeleteRegistryValue): Match w32api prototypes.
449 * include/ntos/zw.h (ZwQuerySystemTime): Ditto.
450 * lib/kernel32/file/cnotify.c (FindFirstChangeNotificationW): Use
451 STATUS_OBJECT_PATH_SYNTAX_BAD.
452 * lib/ntdll/rtl/registry.c (RtlDeleteRegistryValue,
453 RtlQueryRegistryValues, RtlWriteRegistryValue): Match w32api prototypes.
454 * ntoskrnl/cm/cm.h, ntoskrnl/cm/ntfunc.c, ntoskrnl/cm/regfile.c: Change
455 FILETIME to LARGE_INTEGER.
456 * ntoskrnl/cm/rtlfunc.c (RtlDeleteRegistryValue, RtlQueryRegistryValues,
457 RtlWriteRegistryValue): Match w32api prototypes.
458 * ntoskrnl/ex/callback.c (ExNotifyCallback): Ditto.
459 * ntoskrnl/ex/time.c (NtQuerySystemTime): Ditto.
460
461 2003-06-07 Casper S. Hornstrup <chorns@users.sourceforge.net>
462
463 * hal/halx86/dma.c (AdapterObjects): Don't put braces on scalar
464 initializers.
465
466 2003-06-07 Casper S. Hornstrup <chorns@users.sourceforge.net>
467
468 Changes for compiling with w32api
469
470 * include/ddk/obfuncs.h (ObCreateObject): Remove.
471 * include/ntos/zwtypes.h (ObRosCreateObject): Add.
472 * ntoskrnl/ntoskrnl.def, ntoskrnl/ntoskrnl.edf: Export ObCreateObject@36
473 and ObRosCreateObject@20.
474 * ntoskrnl/cm/ntfunc.c, ntoskrnl/cm/registry.c, ntoskrnl/cm/regobj.c,
475 ntoskrnl/io/create.c, ntoskrnl/io/device.c, ntoskrnl/io/iocomp.c,
476 ntoskrnl/lpc/connect.c, ntoskrnl/lpc/create.c, ntoskrnl/mm/section.c,
477 ntoskrnl/nt/evtpair.c, ntoskrnl/nt/mutant.c, ntoskrnl/nt/ntevent.c,
478 ntoskrnl/nt/ntsem.c, ntoskrnl/nt/nttimer.c, ntoskrnl/nt/profile.c,
479 ntoskrnl/ob/dirobj.c, ntoskrnl/ob/namespc.c, ntoskrnl/ob/symlink.c,
480 ntoskrnl/ps/create.c, ntoskrnl/ps/process.c, ntoskrnl/se/token.c,
481 subsys/win32k/ntuser/winsta.c: Use ObRosCreateObject, not ObCreateObject.
482 * ntoskrnl/ob/object.c (ObRosCreateObject): Rename from ObCreateObject.
483 (ObCreateObject): Add stub.
484
485 2003-06-07 Casper S. Hornstrup <chorns@users.sourceforge.net>
486
487 Changes for compiling with w32api
488
489 * include/ddk/cctypes.h (PREACTOS_COMMON_FCB_HEADER): Remove.
490 (FSRTL_COMMON_FCB_HEADER): Add.
491 * include/ddk/iotypes.h (FILE_OBJECT): Rename field
492 SectionObjectPointers to SectionObjectPointer.
493 * ntoskrnl/cc/copy.c, ntoskrnl/cc/misc.c, ntoskrnl/cc/pin.c,
494 ntoskrnl/cc/view.c, ntoskrnl/io/rawfs.c, ntoskrnl/mm/section.c,
495 drivers/fs/cdfs/cleanup.c, drivers/fs/cdfs/fcb.c,
496 drivers/fs/cdfs/fsctl.c, drivers/fs/ntfs/fcb.c, drivers/fs/ntfs/fsctl.c,
497 drivers/fs/vfat/close.c, drivers/fs/vfat/create.c,
498 drivers/fs/vfat/finfo.c, drivers/fs/vfat/fcb.c, drivers/fs/vfat/fsctl.c:
499 Use new FILE_OBJECT structure.
500 * drivers/fs/cdfs/cdfs.h, drivers/fs/ntfs/ntfs.h, drivers/fs/vfat/vfat.h:
501 Use new FSRTL_COMMON_FCB_HEADER structure.
502 * drivers/net/afd/include/afd.h (FSRTL_COMMON_FCB_HEADER): Remove.
503 * include/ddk/ketypes.h (KQUEUE): Match w32api structure.
504 * ntoskrnl/ke/queue.c, ntoskrnl/ke/wait.c: Use new structure.
505 * ntoskrnl/ke/spinlock.c (KeAcquireSpinLockAtDpcLevel,
506 KeReleaseSpinLockFromDpcLevel): Undefine before declaring.
507
508 2003-06-07 Casper S. Hornstrup <chorns@users.sourceforge.net>
509
510 Changes for compiling with w32api
511
512 * include/ddk/ketypes.h (KSPIN_LOCK, PKSPIN_LOCK): Match w32api
513 structures.
514 * ntoskrnl/ke/spinlock.c: Use new structures.
515
516 2003-06-07 Casper S. Hornstrup <chorns@users.sourceforge.net>
517
518 Changes for compiling with w32api
519
520 * include/ddk/service.h: Move ...
521 * include/ntos/service.h: ... here.
522 * include/ddk/kdfuncs.h: Move ...
523 * include/ntos/kdfuncs.h: ... here.
524 * include/ntos/halfuncs.h: New file.
525 * ntoskrnl/include/internal/hal/hal.h,
526 ntoskrnl/include/internal/hal/bus.h,
527 ntoskrnl/include/internal/hal/mps.h: Remove.
528 * hal/halx86/include/hal.h: Remove disabled code.
529 * include/ntos.h: Include ntos/service.h, ntos/halfuncs.h, and
530 ntos/kdfuncs.h.
531 * include/ddk/fstypes.h (FILE_LOCK_TOC): Move ...
532 * include/ntos/file.h: ... here.
533 * include/ddk/halfuncs.h (HalAllProcessorsStarted,
534 HalBeginSystemInterrupt, HalDisableSystemInterrupt,
535 HalEnableSystemInterrupt, HalEndSystemInterrupt,
536 HalInitializeProcessor, HalInitSystem, HalReportResourceUsage): Move to
537 include/ntos/halfuncs.h.
538 * include/ddk/iofuncs.h (IoAssignDriveLetters): Ditto.
539 * include/ddk/kefuncs.h (KeInitializeApc): Match w32api prototype.
540 (KeRaiseIrqlToSynchLevel): Move to include/ntos/halfuncs.h.
541 * include/ddk/ketypes.h (KAPC_ENVIRONMENT): Move to include/ntos/types.h.
542 (KDEVICE_QUEUE, KDEVICE_QUEUE_ENTRY): Match w32api prototype.
543 (KINTERRUPT): Move to include/ntos/zwtypes.h.
544 * include/ddk/mmtypes.h (PAGE_ROUND_UP, PAGE_ROUND_DOWN): Move ...
545 * include/ntos/mm.h: ... here.
546 * include/ddk/ntddk.h: Don't include ddk/kdfuncs.h.
547 * include/ddk/pstypes.h (PKTHREAD, PRKTHREAD): Add.
548 (PsInitialSystemProcess, PsProcessType, PsThreadType): Move ...
549 include/ntos/ps.h: ... here.
550 * lib/ntdll/rtl/i386/exception.c (SehpContinue): New.
551 * ntoskrnl/rtl/i386/exception.c (SehpContinue): Ditto.
552 * ntoskrnl/include/internal/ke.h: Include <ddk/ntifs.h>.
553 * ntoskrnl/include/internal/ntoskrnl.h: Include internal/ke.h.
554 * ntoskrnl/ex/napi.c: Use new structure SSDT_ENTRY.
555 * ntoskrnl/ke/apc.c (KeInitializeApc): Match w32api prototype.
556 * ntoskrnl/ke/kqueue.c: Use fields of new structures KDEVICE_QUEUE
557 and KDEVICE_QUEUE_ENTRY.
558
559 2003-06-07 Casper S. Hornstrup <chorns@users.sourceforge.net>
560
561 * ntoskrnl/cm/regfile.c (CmiCopyKey): Fix unsigned/signed warning.
562
563 2003-06-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
564
565 * lib/user32/windows/icon.c (CURSORICON_FindBestCursor,
566 CURSORICON_FindBestIcon): Fix unsigned/signed warning.
567
568 2003-06-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
569
570 Changes for compiling with w32api
571
572 * ntoskrnl/include/internal/i386/ps.h (KPCR_TSS): Redefine as 0x3C.
573 (KPCR_TIB): New structure.
574 (IKPCR): Ditto.
575 (KPCR): Match w32api structure fieldnames.
576 * ntoskrnl/ke/main.c (ExpInitializeExecutive): Adjust for changes to KPCR.
577 * ntoskrnl/ke/i386/kernel.c: Ditto.
578 * ntoskrnl/ps/thread.c: Ditto.
579
580 2003-06-01 Casper S. Hornstrup <chorns@users.sourceforge.net>
581
582 Changes for compiling with w32api
583
584 * include/ntos/zwtypes.h (SYSTEM_MODULES): Rename to
585 SYSTEM_MODULE_INFORMATION. Match w32api structure fieldnames.
586 (SYSTEM_MODULE_INFORMATION): Rename to SYSTEM_MODULE_INFORMATION_ENTRY.
587 Match w32api structure fieldnames.
588 * include/epsapi.h: Include <ntos.h>.
589 (PSYSMOD_ENUM_ROUTINE, PsaCaptureSystemModules, PsaWalkSystemModules,
590 PsaWalkFirstSystemModule, PsaWalkNextSystemModule): Use
591 SYSTEM_MODULE_INFORMATION_ENTRY and SYSTEM_MODULE_INFORMATION structures.
592 * lib/epsapi/enum/drivers.c: Use SYSTEM_MODULE_INFORMATION_ENTRY and
593 SYSTEM_MODULE_INFORMATION structures.
594 * lib/psapi/misc/win32.c: Ditto.
595 * ntoskrnl/ldr/loader.c: Ditto.
596 * lib/epsapi/enum/modules.c: Include <ntos.h>.
597 * lib/ntdll/rtl/thread.c: Ditto.
598 * lib/rosrtl/thread/context.c: Ditto.
599 * lib/rosrtl/thread/create.c: Ditto.
600 * lib/rosrtl/thread/stack.c: Ditto.
601 * include/ntos.h: Include "rosrtl/thread.h".
602 * include/structs.h (_BLOB_DEFINED): Rename to __BLOB_T_DEFINED.
603 * include/winsock2.h: Ditto.
604 * include/ntos/obtypes.h (POBJECT_TYPE): Make a pointer to struct
605 _OBJECT_TYPE.
606 (PHANDLE_TABLE): Make a pointer to struct _HANDLE_TABLE.
607 * ntoskrnl/include/internal/mm.h (PSECTION_OBJECT): Make a pointer to
608 struct _SECTION_OBJECT.
609 * ntoskrnl/include/internal/i386/ps.h (PKPCR): Make a pointer to struct
610 _KPCR.
611
612 2003-05-28 Casper S. Hornstrup <chorns@users.sourceforge.net>
613
614 * Makefile: Update bootcd target.
615
616 2003-05-28 Casper S. Hornstrup <chorns@users.sourceforge.net>
617
618 * subsys/system/usetup/progress.c (ProgressNextStep): Check if NewPos
619 is odd.
620
621 2003-05-28 Casper S. Hornstrup <chorns@users.sourceforge.net>
622
623 Changes for compiling with w32api
624
625 * include/ddk/haltypes.h: Move ...
626 * include/ntos/haltypes.h: ... here.
627 * include/ddk/obtypes.h: Move ...
628 * include/ntos/obtypes.h: ... here.
629 * include/ddk/i386/tss.h: Move ...
630 * include/ntos/tss.h: ... here.
631 * include/errors.h, include/windows.h: #include_next <windows.h>.
632 * include/ntos.h: Include "ntos/haltypes.h", "ntos/obtypes.h", and
633 "ntos/tss.h".
634 * include/ddk/defines.h (EXPORTED, IMPORTED): Move to
635 include/ntos/types.h.
636 * include/ddk/exfuncs.h, include/ddk/mmtypes.h, include/ntos/except.h,
637 include/ntos/file.h, include/ole32/guiddef.h, include/win32k/color.h,
638 lib/msafd/include/debug.h, lib/user32/include/debug.h,
639 lib/ws2_32/include/debug.h, lib/ws2help/debug.h,
640 ntoskrnl/include/internal/debug.h, ntoskrnl/ke/i386/bthread.S,
641 ntoskrnl/rtl/error.c: Don't define macros if previously defined.
642 * include/ddk/halfuncs.h: Include <ntos/haltypes.h>.
643 * include/ddk/iotypes.h: Include <ntos/obtypes.h>.
644 * include/ddk/ketypes.h (MB_FLAGS_*, LOADER_MODULE, ADDRESS_RANGE,
645 LOADER_PARAMETER_BLOCK): Move to include/ntos/types.h.
646 * include/ddk/ntddk.h: #include_next <ddk/ntddk.h>.
647 * include/ddk/ntifs.h: #include_next <ddk/ntifs.h>.
648 * include/napi/shared_data.h (SharedUserData): Undefine before defining.
649 * include/ntos/rtl.h (RtlUpcaseUnicodeString): Correct prototype.
650 * include/ntos/zwtypes.h (THREAD_STATE): Add.
651 * lib/ntdll/rtl/unicode.c (RtlUpcaseUnicodeString): Match new prototype.
652 * ntoskrnl/rtl/unicode.c (RtlUpcaseUnicodeString): Ditto.
653 * lib/string/Makefile: Include Makefile.$(ARCH). Don't include
654 makefile.$(ARCH).
655 * ntoskrnl/ex/sysinfo.c, ntoskrnl/include/internal/ntoskrnl.h,
656 * ntoskrnl/include/internal/ob.h, ntoskrnl/ob/handle.c: Include <ntos.h>.
657 * ntoskrnl/ke/i386/syscall.S: Don't include <ddk/defines.h>.
658 (KernelMode, UserMode): Define.
659 * ntoskrnl/ke/i386/stkswitch.S, ntoskrnl/ke/i386/tskswitch.S,
660 ntoskrnl/ke/i386/v86m_sup.S: Include <ntos/tss.h>
661
662 2003-05-25 Casper S. Hornstrup <chorns@users.sourceforge.net>
663
664 * Makefile: Fix typo.
665
666 2003-05-25 Casper S. Hornstrup <chorns@users.sourceforge.net>
667
668 * Makefile: Don't install system.hiv. Install fonts and nls directory.
669 * tools/rcopy.c (copy_file, copy_directory, is_directory): New functions.
670
671 2003-05-17 Casper S. Hornstrup <chorns@users.sourceforge.net>
672
673 * ntoskrnl/io/irp.c (IofCallDriver): Don't reference FileObject.
674
675 2003-05-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
676
677 * ntoskrnl/io/cleanup.c (IopCompleteRequest1, IoSecondStageCompletion):
678 Don't dereference Irp->UserEvent here.
679 * ntoskrnl/io/irp.c (IofCallDriver): Reference FileObject.
680 * ntoskrnl/io/rw.c (IopReadWriteIoComplete): New function.
681 * (NtReadFile, NtWriteFile): Set I/O completion routine if using an
682 event that is under object manager control.
683
684 2003-05-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
685
686 * ntoskrnl/Makefile (OBJECTS_IO): Add io/rawfs.o.
687 * ntoskrnl/cm/registry.c (CmiInitHives): Check status using NT_SUCCESS().
688 * ntoskrnl/include/internal/io.h (RawFsIsRawFileSystemDeviceObject,
689 RawFsDriverEntry): Add prototypes.
690 * ntoskrnl/include/internal/ntoskrnl.h (IoInit2): Add prototype.
691 * ntoskrnl/io/device.c (IopCreateDriverObject): Handle unnamed services.
692 * ntoskrnl/io/fs.c (IoMountVolume): Handle mounting of raw volumes.
693 (IoRegisterFileSystem): Add registered filesystem device objects at the
694 head of the list.
695 * ntoskrnl/io/iomgr.c (IoInit2): New function.
696 * ntoskrnl/ke/main.c (ExpInitializeExecutive): Call IoInit2().
697 * ntoskrnl/mm/section.c (MmQuerySectionView): Check return value of call
698 to MmFindRegion().
699 * ntoskrnl/io/rawfs.c: New file.
700
701 2003-05-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
702
703 * lib/fslib/vfatlib/vfatlib.c (VfatFormat): Set hidden sectors.
704 * ntoskrnl/io/xhaldrv.c (xHalIoWritePartitionTable): Implement support
705 for primary partitions.
706 * subsys/system/usetup/partlist.c (CreateSelectedPartition): Compute
707 hidden sectors.
708 * subsys/system/usetup/usetup.c (SelectPartitionPage,
709 DrawFileSystemList, FormatPartitionPage): Don't use conditional define
710 ENABLE_FORMAT.
711 (CreateFileSystemList): Don't draw "Keep current file system" option if
712 formatting is needed.
713 (SelectFileSystemPage): Figure out if partition must be formatted.
714 * subsys/system/usetup/usetup.h (ENABLE_FORMAT): Remove.
715 (FILE_SYSTEM_LIST): Add ForceFormat field.
716
717 2003-05-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
718
719 * lib/user32/windows/font.c (TEXT_PathEllipsify, TEXT_Reprefix): Fix
720 unsigned/signed warning.
721 * ntoskrnl/mm/pagefile.c (MmWriteToSwapPage, MmReadFromSwapPage,
722 NtCreatePagingFile): Ditto.
723
724 2003-05-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
725
726 * tools/helper.mk: Kill implicit rule ".o".
727
728 2003-04-28 Casper S. Hornstrup <chorns@users.sourceforge.net>
729
730 * Makefile (DLLS): Add epsapi, psapi and wsock32.
731 * lib/ntdll/ldr/utils.c (LdrPerformRelocations): Handle the case where a
732 relocation crosses a page boundary.
733 (LdrFixupImports): Use image load address in calculatation of import
734 address list.
735
736 2003-04-28 Casper S. Hornstrup <chorns@users.sourceforge.net>
737
738 * lib/fslib/vfatlib/vfatlib.h: New file.
739 * subsys/system/usetup/format.c: Ditto.
740 * subsys/system/usetup/format.h: Ditto.
741 * lib/fslib/vfatlib/vfatlib.c (GetShiftCount): Define.
742 (VfatWriteBootSector, VfatWriteFsInfo, VfatWriteFAT,
743 VfatWriteRootDirectory): New function.
744 (VfatFormat): Implement.
745 * subsys/system/usetup/bootsup.c: (InstallFat32BootCodeToFile): Use
746 0x0000 as marker to disable backup boot sector.
747 (InstallFat32BootCodeToDisk): Add lower 8-bit to BackupBootSector.
748 Also treat 0x0000 as no backup boot sector is available.
749 * subsys/system/usetup/makefile (TARGET_SDKLIBS): Define.
750 (TARGET_OBJECTS): Add format.o.
751 * subsys/system/usetup/partlist.c (AddPartitionList): Initialize
752 PartNumber field.
753 (GetSelectedPartition): Set PartEntryNumber correctly.
754 (CreateSelectedPartition): Write partition information to disk.
755 (DeleteSelectedPartition): New function.
756 * subsys/system/usetup/partlist.h (PARTDATA): Add field CreatePartition.
757 (DeleteSelectedPartition): Prototype.
758 * subsys/system/usetup/usetup.c (ConfirmDeletePartition): New function.
759 (SelectPartitionPage): Support deletion of partition.
760 (FormatPartitionPage): Support formatting of partition.
761
762 2003-04-27 Casper S. Hornstrup <chorns@users.sourceforge.net>
763
764 * tools/helper.mk (TARGET_ASFLAGS): Add -march and define MK_ARCH_ID.
765 * lib/ntdll/makefile (TARGET_ASFLAGS): Define as
766 "-I $(PATH_TO_TOP)/include".
767 (TARGET_OBJECTS): Add ldr/entry.o.
768 * lib/ntdll/ldr/startup.c: Move inline assembly code...
769 * lib/ntdll/ldr/entry.S: ...here. New file.
770
771 2003-04-27 Casper S. Hornstrup <chorns@users.sourceforge.net>
772
773 * include/kernel32/kernel32.h (assert): Define.
774 * tools/mkhive/.cvsignore: New file.
775
776 2003-04-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
777
778 * subsys/system/usetup/partlist.c (AddPartitionList): Create
779 unpartitioned areas.
780 (CreatePartitionListNoGUI): Save disk geometry.
781 (PrintDiskData): Do not print hidden partition list entries.
782 (ScrollDownPartitionList, ScrollUpPartitionList): Skip hidden partition
783 list entries.
784 (GetActiveBootPartition): Use CurrentDisk as index.
785 (CreateSelectedPartition): New function.
786 * subsys/system/usetup/partlist.h (PARTDATA): Add field NewPartSize.
787 (PARTENTRY): Add fields StartingOffset and HidePartEntry.
788 (DISKENTRY): Add fields Cylinders, TracksPerCylinder, SectorsPerTrack,
789 and BytesPerSector;
790 (CreateSelectedPartition): Add Prototype.
791 * subsys/system/usetup/usetup.c (PAGE_NUMBER): Add CREATE_PARTITION_PAGE
792 and FORMAT_PARTITION_PAGE
793 (CurrentPartitionList, CurrentFileSystemList): New globals.
794 (SelectPartitionPage): Set CurrentPartitionList.
795 (PARTITION_SIZE_INPUT_FIELD_LENGTH): Define as 6.
796 (DrawInputField, ShowPartitionSizeInputBox, CreatePartitionPage,
797 CreateFileSystemList, DestroyFileSystemList, DrawFileSystemList,
798 ScrollDownFileSystemList, ScrollUpFileSystemList, FormatPartitionPage):
799 New functions.
800 (SelectFileSystemPage): Draw partition screen.
801 (CheckFileSystemPage): Handle CREATE_PARTITION_PAGE and
802 FORMAT_PARTITION_PAGE.
803 * subsys/system/usetup/usetup.h (FILE_SYSTEM, FILE_SYSTEM_LIST): Add enums.
804
805 2003-04-17 Casper S. Hornstrup <chorns@users.sourceforge.net>
806
807 * tools/mkhive/infcache.c (InfpCacheFindSection, InfpCacheFindKeyLine,
808 InfFindFirstLine, InfFindFirstMatchLine, InfFindNextMatchLine,
809 InfGetLineCount): Change call to stricmp() to strcasecmp().
810 * tools/mkhive/reginf.c (GetRootKey): Ditto.
811 * tools/mkhive/registry.c (RegSetValue, RegQueryValue): Ditto.
812
813 2003-04-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
814
815 * ntoskrnl/kd/gdbstub.c (KdEnterDebuggerException): Fix signed/unsigned
816 comparison warning.
817 * ntoskrnl/ke/i386/exp.c (KiKernelTrapHandler): Ditto.
818 * ntoskrnl/ke/i386/usertrap.c (KiUserTrapHandler): Ditto.
819 * tools/helper.mk: Do not install static libraries.
820
821 2003-04-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
822
823 * tools/Makefile: Fix rule for mkflpimg.
824
825 2003-04-12 Casper S. Hornstrup <chorns@users.sourceforge.net>
826
827 * tools/cdmake/Makefile: Use HOST_CC.
828 * tools/cdmake/cdmake.c (MAX_PATH, DIR_SEPARATOR_CHAR,
829 DIR_SEPARATOR_STRING): Define.
830 (directory_record): Add fields name_on_cd and extension_on_cd.
831 (error_exit): Make a macro. Avoid using vfprintf and fprintf.
832 (write_directory_record, new_directory_record, compare_directory_order,
833 pass): Use name_on_cd and extension_on_cd.
834 (make_directory_records, get_file_specifications): Use DIR_SEPARATOR_CHAR.
835 (new_directory_record, make_directory_records): Linux implementations.
836 (main): Use DIR_SEPARATOR_CHAR.
837
838 2003-04-06 Casper S. Hornstrup <chorns@users.sourceforge.net>
839
840 * lib/freetype/.cvsignore: Ignore nul.
841
842 2003-04-06 Casper S. Hornstrup <chorns@users.sourceforge.net>
843
844 * drivers/storage/atapi/atapi.c (AtapiReadWrite): Expect an interrupt a
845 bit sooner.
846 * hal/halx86/isa.c (HalpGetIsaInterruptVector): Compute vector for MP.
847 * hal/halx86/pci.c (HalpGetPciInterruptVector): Ditto.
848 * hal/halx86/sysbus.c (HalpGetSystemInterruptVector): Ditto.
849 * hal/halx86/mp.c (AssignIrqVector): Rewrite.
850 (MpsTimerHandler): Disable for now.
851 (MpsSpuriousHandler): Do not acknowledge interrupt.
852 (HalAllProcessorsStarted): Only boot 1 CPU for now.
853 (RescheduleDpcRoutine): New function.
854 (RescheduleDpc): New variable.
855 (HalpInitMPS): Initialize RescheduleDpc. Fix bug in call to memset.
856 * hal/halx86/mpsirql.c: Rewrite.
857 * hal/halx86/include/mps.h (VECTOR2IRQ, IRQ2VECTOR, VECTOR2IRQL,
858 IRQL2VECTOR): New macros.
859 * ntoskrnl/ntoskrnl.def: Add KeRescheduleThread@0.
860 * ntoskrnl/ntoskrnl.edf: Ditto.
861 * ntoskrnl/include/internal/ke.h (KeRescheduleThread): Prototype.
862 * ntoskrnl/ke/kthread.c (KeRescheduleThread): New function.
863 * ntoskrnl/ke/i386/exp.c (KeInitExceptions): Remove unneeded call to
864 set_trap_gate().
865 * ntoskrnl/ke/i386/irq.c (VECTOR2IRQ, IRQ2VECTOR, VECTOR2IRQL): Correct.
866 (IRQ_BASE): Define as FIRST_DEVICE_VECTOR.
867 (NR_IRQS): Define using IRQ_BASE.
868 (KeInitInterrupts): Use IRQ_BASE.
869 (KiInterruptDispatch2): Rewrite.
870 (KiInterruptDispatch): Ditto.
871 (KeConnectInterrupt): Pass Vector to HalEnableSystemInterrupt() for MP.
872 (KeDisconnectInterrupt): Pass Vector to HalDisableSystemInterrupt() for MP.
873 * ntoskrnl/ke/i386/trap.s (_KiTrapProlog): Change 0x124 to KPCR_CURRENT_THREAD.
874
875 2003-04-06 Casper S. Hornstrup <chorns@users.sourceforge.net>
876
877 * Makefile: Add format.
878 * include/fslib/vfatlib.h (VfatFormat): Prototype.
879 * lib/fmifs/format.c (VfatFormat): Add stub.
880 * lib/fmifs/makefile (TARGET_LIBS): Add vfatlib.a.
881 * lib/fslib/vfatlib/vfatlib.c (VfatFormat): Add stub.
882 * tools/helper.mk: Do not install .sym files for static libraries.
883 * subsys/system/format: New directory.
884 * subsys/system/format/makefile: New file.
885 * subsys/system/format/format.c: Ditto.
886
887 2003-04-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
888
889 * include/fslib: New directory.
890 * lib/fslib: Ditto.
891 * lib/fslib/vfatlib: Ditto.
892 * include/fslib/vfatlib.h: New file.
893 * lib/fslib/vfatlib/.cvsignore: Ditto.
894 * lib/fslib/vfatlib/Makefile: Ditto.
895 * lib/fslib/vfatlib/vfatlib.c: Ditto.
896 * Makefile: Support file system libraries
897 * lib/zlib/Makefile: Remove nostrip target.
898 * tools/helper.mk: Add nostrip target.
899
900 2003-04-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
901
902 * tools/.cvsignore: Ignore rline.
903
904 2003-04-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
905
906 * bootcd.bat: Install dosmbr.bin.
907 * drivers/storage/disk/disk.c (DiskClassDeviceControl): Pass physical
908 device object to IoWritePartitionTable().
909 * ntoskrnl/io/xhaldrv.c (xHalReadMBR): New function.
910 (xHalWriteMBR): Ditto.
911 (xHalExamineMBR): Use xHalReadMBR() to read MBR.
912 (xHalIoWritePartitionTable): Partial implement.
913 * subsys/system/usetup/bootsup.c (InstallMBRBootCodeToDisk): New function.
914 * subsys/system/usetup/bootsup.h (InstallMBRBootCodeToDisk): Prototype.
915 * subsys/system/usetup/partlist.c (CreatePartitionListNoGUI): New function.
916 (CreatePartitionList): Use CreatePartitionListNoGUI() to create partition
917 list.
918 (GetPartitionInformation): New function.
919 (MarkPartitionActive): Ditto.
920 * subsys/system/usetup/partlist.h (MarkPartitionActive): Prototype.
921 * subsys/system/usetup/usetup.c (SelectPartitionPage): Make SystemRootPath
922 point to the selected partition if no partitions are active.
923 (BootLoaderPage): If no partitions are active, then install a DOS MBR and
924 mark the selected partition active.
925
926 2003-04-05 Casper S. Hornstrup <chorns@users.sourceforge.net>
927
928 * Makefile: Add bootcd target.
929 (BOOTCD_INSTALL): Set for bootcd install.
930 * rules.mak (TOPDIR): Define on windows.
931 (BOOTCD_DIR): Define.
932 (RLINE): Define.
933 * apps/tests/lpc/makefile: Handle BOOTCD_INSTALL.
934 * apps/tests/mstest/Makefile: Ditto.
935 * apps/tests/nptest/Makefile: Ditto.
936 * apps/tests/shm/makefile: Ditto.
937 * ntoskrnl/Makefile: Handle BOOTCD_INSTALL. Add bootcd target.
938 * drivers/dd/vga/makefile: Add bootcd target.
939 * drivers/dd/blue/makefile (TARGET_BOOTSTRAP): Define as yes.
940 * drivers/dd/floppy/Makefile: Ditto.
941 * drivers/fs/cdfs/makefile: Ditto.
942 * drivers/fs/ntfs/makefile: Ditto.
943 * drivers/fs/vfat/makefile: Ditto.
944 * drivers/input/keyboard/makefile: Ditto.
945 * drivers/storage/atapi/makefile: Ditto.
946 * drivers/storage/cdrom/makefile: Ditto.
947 * drivers/storage/class2/makefile: Ditto.
948 * drivers/storage/disk/makefile: Ditto.
949 * drivers/storage/scsiport/makefile: Ditto.
950 * hal/halx86/Makefile: Ditto.
951 * lib/ntdll/makefile: Ditto.
952 * subsys/system/usetup/makefile (TARGET_BOOTSTRAP): Define as yes.
953 (TARGET_BOOTSTRAP_NAME): Define as smss.exe.
954 * tools/Makefile: Add rline executable.
955 * tools/helper.mk: Support bootcd targets.
956 * tools/rline.c: New file.
957
958 2003-04-04 Casper S. Hornstrup <chorns@users.sourceforge.net>
959
960 * lib/freetype/builds/compiler/gcc.mk (CC): Comment out; use CC from
961 rules.mak instead.
962 * lib/freetype/README.ROS: Note this in porting guide.
963
964 2003-03-29 Casper S. Hornstrup <chorns@users.sourceforge.net>
965
966 * ntoskrnl/ex/sysinfo.c (SystemProcessInformation): Fix warning.
967
968 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
969
970 * include/ntos/rtltypes.h (PRTL_BASE_PROCESS_START_ROUTINE): Define.
971 * lib/kernel32/process/create.c (RtlBaseProcessStartRoutine): Import.
972 (KlCreateFirstThread): Support images with native subsystem ID.
973 * lib/ntdll/def/ntdll.def (RtlBaseProcessStartRoutine): Export.
974 * lib/ntdll/def/ntdll.edf (RtlBaseProcessStartRoutine): Ditto.
975 * lib/ntdll/rtl/exception.c (RtlBaseProcessStart): Forward declare.
976 (RtlBaseProcessStartRoutine, RtlBaseProcessStart): Add.
977
978 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
979
980 * include/defines.h (VS_FFI_SIGNATURE, VS_FFI_STRUCVERSION): Define.
981
982 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
983
984 * ntoskrnl/ke/i386/exp.c (KiKernelTrapHandler): Use exception code
985 STATUS_ACCESS_VIOLATION for exception 14.
986
987 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
988
989 * ntoskrnl/fs/util.c (FsRtlGetFileSize): Implement.
990
991 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
992
993 * lib/ntdll/rtl/nls.c (RtlCustomCPToUnicodeN, RtlMultiByteToUnicodeN,
994 RtlOemToUnicodeN, RtlUnicodeToCustomCPN, RtlUnicodeToMultiByteN,
995 RtlUnicodeToMultiByteSize, RtlUnicodeToOemN,
996 RtlUpcaseUnicodeToCustomCPN, RtlUpcaseUnicodeToMultiByteN,
997 RtlUpcaseUnicodeToOemN): Assert when unimplemented code is reached.
998
999 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
1000
1001 * include/ntos/zwtypes.h (FILE_BASIC_INFORMATION): Use LARGE_INTEGER,
1002 not TIME type for time fields.
1003 * lib/kernel32/file/copy.c (SetLastWriteTime): Adjust for new type.
1004 (CopyFileExW): Ditto.
1005
1006 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
1007
1008 * include/ntos/types.h (FALSE): Protect with #ifndef FALSE.
1009 (TRUE): Protect with #ifndef TRUE.
1010
1011 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
1012
1013 * include/napi/i386/segment.h (put_user, get_user,
1014 bad_user_access_length, __segment_dummy, __sd, __const_sd, __put_user,
1015 __get_user, __generic_memcpy_tofs, __constant_memcpy_tofs, COMMON,
1016 __generic_memcpy_fromfs, __constant_memcpy_fromfs, memcpy_fromfs,
1017 memcpy_tofs, get_fs_byte, get_fs_word, get_fs_long, put_fs_byte,
1018 put_fs_word, put_fs_long, get_user_word, get_user_byte, get_user_long,
1019 put_user_byte, put_user_word, put_user_long, get_fs, get_ds, set_fs,
1020 set_ds): Remove.
1021
1022 2003-03-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
1023
1024 * include/ddk/pstypes.h (TLS_OUT_OF_INDEXES): Define.
1025
1026 2003-02-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
1027
1028 * ntoskrnl/cc/view.c (CcRosFlushDirtyPages): Treat a write attempt with
1029 a return value of STATUS_END_OF_FILE as a successful write.
1030 * ntoskrnl/cc/copy.c (WriteCacheSegment): Ditto.
1031
1032 2003-02-18 Casper S. Hornstrup <chorns@users.sourceforge.net>
1033
1034 * ntoskrnl/cm/regfile.c (CmiRemoveSubKey): Kill warnings.
1035 (CmiMergeFree): Ditto.
1036
1037 2003-02-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
1038
1039 * include/structs.h (OSVERSIONINFOEXA): Expand definition of
1040 OSVERSIONINFOA.
1041 (OSVERSIONINFOEXW): Expand definition of OSVERSIONINFOW.
1042 * lib/msafd/misc/helpers.c (LocateHelperDLL): Cast AddressFamily,
1043 SocketType, and Protocol to INT.
1044 * lib/ws2_32/misc/catalog.c (LocateProvider): Ditto.
1045
1046 2003-01-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
1047
1048 * ntoskrnl/dbg/profile.c (KdbProfilerThreadMain): Make STDCALL.
1049
1050 2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1051
1052 * drivers/net/tcpip/makefile (TCP_OBJECTS): Add transport/tcp/tcpcore.o,
1053 transport/tcp/tcp_input.o, transport/tcp/tcp_ipv4.o,
1054 transport/tcp/tcp_output.o, and transport/tcp/tcp_timer.o.
1055 * drivers/net/tcpip/transport/tcp/tcp.c (TCPStartup): Call tcp_init().
1056 * drivers/net/tcpip/include/linux.h: New file.
1057 * drivers/net/tcpip/include/tcpcore.h: Ditto.
1058 * drivers/net/tcpip/include/tcpdef.h: Ditto.
1059 * drivers/net/tcpip/transport/tcp/tcp_input.c: Ditto.
1060 * drivers/net/tcpip/transport/tcp/tcp_ipv4.c: Ditto.
1061 * drivers/net/tcpip/transport/tcp/tcp_output.c: Ditto.
1062 * drivers/net/tcpip/transport/tcp/tcp_timer.c: Ditto.
1063 * drivers/net/tcpip/transport/tcp/tcpcore.c: Ditto.
1064
1065 2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1066
1067 * lib/kernel32/k32.h: New file.
1068 * lib/kernel32/makefile (TARGET_CFLAGS): Add -I./.
1069 (TARGET_PCH): Set to k32.h.
1070 * lib/kernel32/except/except.c: Use <k32.h>.
1071 * lib/kernel32/file/backup.c: Ditto.
1072 * lib/kernel32/file/cnotify.c: Ditto.
1073 * lib/kernel32/file/copy.c: Ditto.
1074 * lib/kernel32/file/create.c: Ditto.
1075 * lib/kernel32/file/curdir.c: Ditto.
1076 * lib/kernel32/file/delete.c: Ditto.
1077 * lib/kernel32/file/deviceio.c: Ditto.
1078 * lib/kernel32/file/dir.c: Ditto.
1079 * lib/kernel32/file/dosdev.c: Ditto.
1080 * lib/kernel32/file/file.c: Ditto.
1081 * lib/kernel32/file/find.c: Ditto.
1082 * lib/kernel32/file/iocompl.c: Ditto.
1083 * lib/kernel32/file/lfile.c: Ditto.
1084 * lib/kernel32/file/lock.c: Ditto.
1085 * lib/kernel32/file/mailslot.c: Ditto.
1086 * lib/kernel32/file/move.c: Ditto.
1087 * lib/kernel32/file/npipe.c: Ditto.
1088 * lib/kernel32/file/pipe.c: Ditto.
1089 * lib/kernel32/file/rw.c: Ditto.
1090 * lib/kernel32/file/tape.c: Ditto.
1091 * lib/kernel32/file/volume.c: Ditto.
1092 * lib/kernel32/mem/global.c: Ditto.
1093 * lib/kernel32/mem/heap.c: Ditto.
1094 * lib/kernel32/mem/isbad.c: Ditto.
1095 * lib/kernel32/mem/local.c: Ditto.
1096 * lib/kernel32/mem/procmem.c: Ditto.
1097 * lib/kernel32/mem/section.c: Ditto.
1098 * lib/kernel32/mem/virtual.c: Ditto.
1099 * lib/kernel32/misc/atom.c: Ditto.
1100 * lib/kernel32/misc/comm.c: Ditto.
1101 * lib/kernel32/misc/console.c: Ditto.
1102 * lib/kernel32/misc/debug.c: Ditto.
1103 * lib/kernel32/misc/dllmain.c: Ditto.
1104 * lib/kernel32/misc/env.c: Ditto.
1105 * lib/kernel32/misc/error.c: Ditto.
1106 * lib/kernel32/misc/handle.c: Ditto.
1107 * lib/kernel32/misc/ldr.c: Ditto.
1108 * lib/kernel32/misc/profile.c: Ditto.
1109 * lib/kernel32/misc/res.c: Ditto.
1110 * lib/kernel32/misc/stubs.c: Ditto.
1111 * lib/kernel32/misc/sysinfo.c: Ditto.
1112 * lib/kernel32/misc/time.c: Ditto.
1113 * lib/kernel32/process/cmdline.c: Ditto.
1114 * lib/kernel32/process/create.c: Ditto.
1115 * lib/kernel32/process/proc.c: Ditto.
1116 * lib/kernel32/process/session.c: Ditto.
1117 * lib/kernel32/string/lstring.c: Ditto.
1118 * lib/kernel32/synch/critical.c: Ditto.
1119 * lib/kernel32/synch/event.c: Ditto.
1120 * lib/kernel32/synch/intrlck.c: Ditto.
1121 * lib/kernel32/synch/mutex.c: Ditto.
1122 * lib/kernel32/synch/sem.c: Ditto.
1123 * lib/kernel32/synch/timer.c: Ditto.
1124 * lib/kernel32/synch/wait.c: Ditto.
1125 * lib/kernel32/thread/fiber.c: Ditto.
1126 * lib/kernel32/thread/thread.c: Ditto.
1127 * lib/kernel32/thread/tls.c: Ditto.
1128
1129 2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1130
1131 * apps/testsets/Makefile (TEST_SETS): Remove ldr.
1132 * include/msvcrt/ctype.h (towupper): Make returntype wchar_t.
1133
1134 2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1135
1136 * tools/rtouch.c: Include <sys/utime.h>, not <utime.h>.
1137
1138 2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1139
1140 * tools/rtouch.c: New file.
1141 * rules.mak (ROS_USE_PCH): Default to no.
1142 (RTOUCH): Define.
1143 * tools/Makefile: Add rtouch utility.
1144 * tools/helper.mk: Support precompiled headers.
1145
1146 2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1147
1148 * ntoskrnl/dbg/profile.c: New file.
1149 * ntoskrnl/Makefile (OBJECTS_KDBG): Add dbg/profile.o.
1150 * ntoskrnl/dbg/kdb.h: Define NTOS_MODE_KERNEL. Include <ntos.h>.
1151 (LdrGetAddressInformation, KdbInitProfiling, KdbInitProfiling2,
1152 KdbDisableProfiling, KdbEnableProfiling, KdbProfileInterrupt) Prototype.
1153 * ntoskrnl/kd/kdebug.c (KdInitSystem): Add /PROFILE option if KDBG=1.
1154 * ntoskrnl/ke/main.c (ExpInitializeExecutive): Call KdbInitProfiling2()
1155 if KDBG=1.
1156 * ntoskrnl/ke/i386/irq.c: Include <../dbg/kdb.h> if KDBG=1.
1157 (KiInterruptDispatch): Call KdbProfileInterrupt() on timer interrupt
1158 if KDBG=1.
1159
1160 2003-01-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1161
1162 * drivers/fs/vfat/create.c (VfatSupersedeFile): Only notify cache manager
1163 about change in file size if caching is initiated on the file stream.
1164
1165 2003-01-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
1166
1167 * boot.bat: Use DOS end-of-line characters.
1168
1169 2003-01-02 Casper S. Hornstrup <chorns@users.sourceforge.net>
1170
1171 * ntoskrnl/ke/timer.c (KeExpireTimers): Avoid signed/unsigned comparison
1172 warning.
1173 * lib/user32/controls/scrollbar.c (SCROLL_DrawScrollBar): Put a statement
1174 at end.
1175
1176 2002-12-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1177
1178 * drivers/fs/vfat/cleanup.c (VfatCleanupFile): Only uninitialize caching
1179 when initialized.
1180 * drivers/fs/vfat/fcb.c (vfatReleaseFCB): Ditto.
1181 * lib/kernel32/mem/section.c (CreateFileMappingW): Pass NULL as
1182 MaximumSize to NtCreateSection if dwMaximumSizeHigh and dwMaximumSizeLow
1183 are both 0.
1184 * ntoskrnl/cc/pin.c (CcMapData): Assert if Bcb is NULL.
1185 * ntoskrnl/cc/view.c (CcRosReleaseCacheSegment, CcRosLookupCacheSegment,
1186 CcRosMarkDirtyCacheSegment, CcRosUnmapCacheSegment,
1187 CcRosCreateCacheSegment, CcRosGetCacheSegmentChain,
1188 CcRosGetCacheSegment, CcRosRequestCacheSegment, CcFlushCache,
1189 CcRosDeleteFileCache, CcRosReferenceCache, CcRosDereferenceCache,
1190 CcRosReleaseFileCache, CcGetFileObjectFromSectionPtrs): Ditto.
1191 * ntoskrnl/mm/section.c (MiReadPage): Assert if Fcb->Bcb is NULL.
1192 (MmCreateDataFileSection): Make sure caching is initialized for the file
1193 stream.
1194
1195 2002-11-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
1196
1197 * include/ddk/ldrtypes.h: Move ...
1198 * include/ntos/ldrtypes.h: ... here.
1199 * include/ddk/ntddk.h: Include ldrtypes.h at new location.
1200
1201 2002-11-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
1202
1203 * drivers/bus/acpi/ospm/osl.c (acpi_os_readable, acpi_os_writable):
1204 Match prototypes.
1205 * include/ascii.h (AbortSystemShutdownA): Correct prototype.
1206 * include/debug.h (assert): Wrap in #ifndef assert.
1207 * include/funcs.h (AbortSystemShutdown): Remove duplicate prototype.
1208 * include/ddk/rtltypes.h: Move ...
1209 * include/ntos/rtltypes.h: ... here.
1210 * include/ddk/rtl.h: Move ...
1211 * include/ntos/rtl.h: ... here.
1212 * include/ddk/zwtypes.h: Move ...
1213 * include/ntos/zwtypes.h: ... here.
1214 * include/ddk/zw.h: Move ...
1215 * include/ntos/zw.h: ... here.
1216 | include/ddk/cmfuncs.h: Remove file; Move NtCreateKey to ntos/zw.h.
1217 * include/ntos.h: #include ntos/rtltypes.h, ntos/rtl.h, ntos/zwtypes.h,
1218 and ntos/zw.h.
1219 * include/unicode.h: (AbortSystemShutdownW): Correct prototype.
1220 * include/ddk/ntddk.h: Include headers at new location; Don't include
1221 removed files.
1222 * include/defines.h: Wrap definitions in w32api in #ifndef __USE_W32API.
1223 * include/ntos/zwtypes.h: Ditto.
1224 * include/napi/lpc.h: Ditto.
1225 * include/napi/shared_data.h: Ditto.
1226 * include/napi/teb.h: Ditto.
1227 * include/napi/types.h: Ditto.
1228 * include/ntdll/ldr.h: Ditto.
1229 * include/ntdll/rtl.h: Ditto.
1230 * include/ntos/console.h: Ditto.
1231 * include/ntos/disk.h: Ditto.
1232 * include/ntos/except.h: Ditto.
1233 * include/ntos/file.h: Ditto.
1234 * include/ntos/gditypes.h: Ditto.
1235 * include/ntos/heap.h: Ditto.
1236 * include/ntos/keyboard.h: Ditto.
1237 * include/ntos/mm.h: Ditto.
1238 * include/ntos/ntdef.h: Ditto.
1239 * include/ntos/ps.h: Ditto.
1240 * include/ntos/registry.h: Ditto.
1241 * include/ntos/security.h: Ditto.
1242 * include/ntos/synch.h: Ditto.
1243 * include/ntos/time.h: Ditto.
1244 * include/ntos/types.h: Ditto.
1245 * include/ntos/port.h: Ditto.
1246 * lib/advapi32/misc/shutdown.c (AbortSystemShutdownW,
1247 AbortSystemShutdownA): Correct prototype.
1248 * lib/advapi32/reg/reg.c: #include ntos.h.
1249 * lib/advapi32/sec/misc.c: Ditto.
1250 * lib/advapi32/sec/sid.c: Ditto.
1251 * lib/advapi32/service/sctrl.c: Ditto.
1252 * lib/advapi32/token/token.c: Ditto.
1253 * lib/kernel32/misc/dllmain.c: Ditto.
1254 * ntoskrnl/ex/napi.c: Ditto.
1255 * ntoskrnl/rtl/i386/exception.c: Ditto.
1256 * lib/advapi32/sec/ac.c: Ditto.
1257 (FindFirstFreeAce, GetAce): Change PACE* to PACE_HEADER*.
1258 * lib/advapi32/service/scm.c (EnumServicesStatusExA,
1259 EnumServicesStatusExW, QueryServiceStatusEx): Correct prototype.
1260 * lib/ntdll/rtl/ppb.c (RtlDestroyProcessParameters): Match prototype.
1261 * ntoskrnl/dbg/errinfo.c (DbgGetErrorText): Use %08x, not %08lx.
1262 * ntoskrnl/io/arcname.c (IoCreateSystemRootLink): Use %u, not %lu.
1263 * ntoskrnl/ke/main.c (ExpInitializeExecutive): Ditto.
1264 * (_main): Use %d, not %ld.
1265 * ntoskrnl/include/internal/i386/ke.h: Add #pragma GCC system_header.
1266 * include/ddk/ntdef.h (NTSYSAPI, NTAPI, NTKERNELAPI): Define to STDCALL;
1267 Check if already defined.
1268 * include/base.h (STDCALL, CDECL, CALLBACK, PASCAL): Move to ntos/types.h.
1269
1270 2002-11-13 Rick Gaiser <RickG81@Wanadoo.nl>
1271
1272 * drivers/bus/isapnp/isapnp.c (FindNextReadPort): Increment Port before
1273 checking wether port address is in NE2000 address space range and returning
1274 port address value.
1275
1276 2002-11-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
1277
1278 * drivers/bus/acpi/include/acpi.h: Include platform/types.h.
1279 * drivers/bus/acpi/include/actypes.h: (UINT8, BOOLEAN, UCHAR, UINT16,
1280 INT32, UINT32, UINT64): Disable, use the OS defined types instead.
1281 * drivers/bus/acpi/include/platform/types.h: Remove all types,
1282 include ntos.h instead.
1283 * drivers/bus/acpi/ospm/include/acpisys.h: Don't include
1284 platform/types.h.
1285
1286 2002-11-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
1287
1288 * include/defines.h: Fix warnings when bulding with gcc 3.3.
1289 * include/ddk/status.h: Ditto.
1290 * include/freetype/internal/ftdebug.h: Ditto.
1291 * include/net/ndis.h: Ditto.
1292 * lib/msafd/misc/helpers.c: Ditto.
1293 * lib/user32/windows/defwnd.c: Ditto.
1294 * lib/user32/windows/window.c: Ditto.
1295 * ntoskrnl/cm/ntfunc.c: Ditto.
1296 * ntoskrnl/cm/regfile.c: Ditto.
1297 * ntoskrnl/cm/regobj.c: Ditto.
1298 * ntoskrnl/dbg/errinfo.c: Ditto.
1299 * ntoskrnl/ex/hashtab.c: Ditto.
1300 * ntoskrnl/include/internal/mm.h: Ditto.
1301 * ntoskrnl/io/irp.c: Ditto.
1302 * ntoskrnl/kd/gdbstub.c: Ditto.
1303 * ntoskrnl/ke/queue.c: Ditto.
1304 * ntoskrnl/ke/sem.c: Ditto.
1305 * ntoskrnl/ldr/resource.c: Ditto.
1306 * ntoskrnl/mm/balance.c: Ditto.
1307 * ntoskrnl/mm/freelist.c: Ditto.
1308 * ntoskrnl/mm/mdl.c: Ditto.
1309 * ntoskrnl/mm/npool.c: Ditto.
1310 * ntoskrnl/mm/section.c: Ditto.
1311 * ntoskrnl/rtl/error.c: Ditto.
1312 * ntoskrnl/rtl/mem.c: Ditto.
1313 * ntoskrnl/rtl/string.c: Ditto.
1314 * ntoskrnl/rtl/time.c: Ditto.
1315 * ntoskrnl/rtl/unicode.c: Ditto.
1316 * ntoskrnl/rtl/wstring.c: Ditto.
1317 * ntoskrnl/rtl/i386/exception.c: Ditto.
1318 * subsys/win32k/freetype/src/base/ftinit.c: Ditto.
1319
1320 2002-11-03 Casper S. Hornstrup <chorns@users.sourceforge.net>
1321
1322 * apps/tests/lpc/lpcclt.c: Change LPC_MESSAGE_HEADER to LPC_MESSAGE.
1323 * include/csrss/csrss.h: Ditto.
1324 * include/lsass/lsass.h: Ditto.
1325 * include/napi/dbg.h: Ditto.
1326 * include/napi/lpc.h: Ditto.
1327 * lib/kernel32/misc/console.c: Ditto.
1328 * lib/ntdll/csr/lpc.c: Ditto.
1329 * lib/ntdll/dbg/debug.c: Ditto.
1330 * lib/secur32/lsa.c: Ditto.
1331 * ntoskrnl/dbg/user.c: Ditto.
1332 * ntoskrnl/include/internal/port.h: Ditto.
1333 * ntoskrnl/lpc/connect.c: Ditto.
1334 * ntoskrnl/lpc/reply.c: Ditto.
1335 * ntoskrnl/ps/process.c: Ditto.
1336 * subsys/csrss/api/conio.c: Ditto.
1337 * subsys/csrss/api/process.c: Ditto.
1338 * subsys/csrss/api/user.c: Ditto.
1339
1340 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
1341
1342 * lib/msvcrt/except/seh.s: Fix end-of-line formatting.
1343 * lib/ntdll/rtl/i386/exception.c: Ditto.
1344 * lib/ntdll/rtl/i386/except.s: Ditto.
1345 * ntoskrnl/rtl/i386/except.s: Ditto.
1346 * ntoskrnl/rtl/i386/seh.s: Ditto.
1347
1348 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
1349
1350 * lib/msvcrt/Makefile (OBJECTS_EXCEPT): Add except/seh.o; Remove
1351 except/exhand3.o.
1352 * lib/msvcrt/except/exhand2.c (MsvcrtDebug): New function.
1353 * lib/msvcrt/except/unwind.c (PEXCEPTION_FRAME): Remove.
1354 (_global_unwind2): Correct prototype.
1355 * lib/ntdll/makefile (RTL_I386_OBJECTS, ARCH_OBJECTS): New groups.
1356 (TARGET_OBJECTS): Add ARCH_OBJECTS group.
1357 * lib/ntdll/rtl/exception.c (KiUserExceptionDispatcher): Set
1358 NumberParameters in exception record.
1359 (RtlRaiseStatus): Remove.
1360 * ntoskrnl/Makefile (OBJECTS_RTL): Remove rtl/seh.o.
1361 (OBJECTS_RTL_I386): Add rtl/i386/except.o, rtl/i386/exception.o, and
1362 rtl/i386/seh.o.
1363 * ntoskrnl/ke/catch.c (RtlpExecuteHandlerForException,
1364 RtlpDumpExceptionRegistrations, RtlpDispatchException,
1365 RtlpExecuteHandler, RtlpExceptionHandler, RtlpUnwindHandler,
1366 RtlpExecuteHandlerForException, RtlpExecuteHandlerForUnwind,
1367 RtlUnwind): Remove.
1368 (RtlpDispatchException): Add prototype.
1369 * ntoskrnl/ke/i386/usertrap.c (ExceptionTypeStrings): Remove.
1370 * ntoskrnl/ps/create.c (PsCreateTeb): Mark end of exception
1371 registration list.
1372 * tools/helper.mk (TARGET_ASFLAGS): Add -g if DBG = 1.
1373 * lib/msvcrt/except/exhand3.c: Remove.
1374 * ntoskrnl/rtl/seh.c: Ditto.
1375 * lib/msvcrt/except/seh.s: New file.
1376 * lib/ntdll/rtl/i386/except.s: Ditto.
1377 * lib/ntdll/rtl/i386/exception.c: Ditto.
1378 * ntoskrnl/rtl/i386/except.s: Ditto.
1379 * ntoskrnl/rtl/i386/exception.c: Ditto.
1380 * ntoskrnl/rtl/i386/seh.s: Ditto.
1381
1382 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
1383
1384 * lib/kernel32/process/create.c (_except_handler): New function.
1385 (BaseProcessStart): Ditto.
1386 (KlCreateFirstThread): Return INVALID_HANDLE_VALUE on error; Call
1387 BaseProcessStart() before process entry point.
1388 * lib/kernel32/thread/thread.c (_except_handler): New function.
1389 (ThreadStartup): Protect thread using SEH constructs.
1390
1391 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
1392
1393 * include/ddk/zw.h (NtProcessStartup): Use standard calling convention.
1394 * subsys/csrss/csrss.c (NtProcessStartup): Ditto.
1395 * subsys/smss/smss.c (NtProcessStartup): Ditto.
1396 * subsys/system/autochk/autochk.c (NtProcessStartup): Ditto.
1397 * subsys/system/usetup/usetup.c (NtProcessStartup): Ditto.
1398
1399 2002-10-25 Casper S. Hornstrup <chorns@users.sourceforge.net>
1400
1401 * apps/tests/tokentest/tokentest.c (ROS_ACE_HEADER): Move field
1402 AccessMask ...
1403 (ROS_ACE): ... here.
1404 (DisplayDacl): Make pAce an ROS_ACE*; Use new path for AceType; Use
1405 sizeof(ACE) instead of sizeof(ACE_HEADER).
1406 * include/ntos/security.h (ACE_HEADER): Move field AccessMask ...
1407 (ACE): ... here.
1408 * lib/ntdll/rtl/acl.c: Use new path for AccessMask.
1409 * ntoskrnl/se/semgr.c: Ditto.
1410 * ntoskrnl/se/acl.c (SepInitDACLs): Use new path for AccessMask; Use
1411 sizeof(ACE) instead of sizeof(ACE_HEADER).
1412 * ntoskrnl/se/token.c (SepCreateSystemProcessToken): Use sizeof(ACE)
1413 instead of sizeof(ACE_HEADER).
1414
1415 2002-10-20 Casper S. Hornstrup <chorns@users.sourceforge.net>
1416
1417 * include/napi/teb.h (RTL_USER_PROCESS_PARAMETERS): Use field names
1418 as described in Windows NT/2000 Native API Reference.
1419 * lib/kernel32/file/file.c: Use new field names.
1420 * lib/kernel32/misc/console.c: Ditto.
1421 * lib/kernel32/process/create.c: Ditto.
1422 * lib/kernel32/process/proc.c: Ditto.
1423 * lib/ntdll/rtl/path.c: Ditto.
1424 * lib/ntdll/rtl/ppb.c: Ditto.
1425 * lib/ntdll/rtl/process.c: Ditto.
1426
1427 2002-10-19 Casper S. Hornstrup <chorns@users.sourceforge.net>
1428
1429 * include/ntos.h: Include relevant files.
1430 * include/internal/ke.h: Include files relative to
1431 ntoskrnl/include.
1432 * include/internal/arch/ke.h: Ditto.
1433
1434 2002-10-01 Casper S. Hornstrup <chorns@users.sourceforge.net>
1435
1436 * drivers/dd/floppy/floppy.c: Changed PAGESIZE to PAGE_SIZE.
1437 * drivers/fs/cdfs/fcb.c: Ditto.
1438 * drivers/fs/cdfs/fsctl.c: Ditto.
1439 * drivers/fs/cdfs/rw.c: Ditto.
1440 * drivers/fs/ext2/dir.c: Ditto.
1441 * drivers/fs/ext2/inode.c: Ditto.
1442 * drivers/fs/ext2/rw.c: Ditto.
1443 * drivers/fs/ext2/super.c: Ditto.
1444 * drivers/fs/minix/blockdev.c: Ditto.
1445 * drivers/fs/minix/cache.c: Ditto.
1446 * drivers/fs/minix/inode.c: Ditto.
1447 * drivers/fs/minix/rw.c: Ditto.
1448 * drivers/fs/ntfs/fcb.c: Ditto.
1449 * drivers/fs/ntfs/ntfs.h: Ditto.
1450 * drivers/fs/vfat/create.c: Ditto.
1451 * drivers/fs/vfat/direntry.c: Ditto.
1452 * drivers/fs/vfat/dirwr.c: Ditto.
1453 * drivers/fs/vfat/fat.c: Ditto.
1454 * drivers/fs/vfat/fcb.c: Ditto.
1455 * drivers/fs/vfat/fsctl.c: Ditto.
1456 * drivers/fs/vfat/rw.c: Ditto.
1457 * drivers/storage/class2/class2.c: Ditto.
1458 * drivers/storage/scsiport/scsiport.c: Ditto.
1459 * hal/halx86/adapter.c: Ditto.
1460 * hal/halx86/mp.c: Ditto.
1461 * include/ddk/mmfuncs.h: Ditto.
1462 * include/ddk/mmtypes.h: Ditto.
1463 * include/ddk/i386/pagesize.h: Ditto.
1464 * include/ntdll/pagesize.h: Ditto.
1465 * lib/kernel32/process/create.c: Ditto.
1466 * lib/kernel32/thread/thread.c: Ditto.
1467 * lib/ntdll/ldr/utils.c: Ditto.
1468 * lib/ntdll/rtl/env.c: Ditto.
1469 * lib/ntdll/rtl/heap.c: Ditto.
1470 * lib/ntdll/rtl/ppb.c: Ditto.
1471 * lib/ntdll/rtl/process.c: Ditto.
1472 * lib/ntdll/rtl/thread.c: Ditto.
1473 * ntoskrnl/cc/copy.c: Ditto.
1474 * ntoskrnl/cc/view.c: Ditto.
1475 * ntoskrnl/ex/sysinfo.c: Ditto.
1476 * ntoskrnl/include/internal/i386/mm.h: Ditto.
1477 * ntoskrnl/io/mdl.c: Ditto.
1478 * ntoskrnl/ke/kthread.c: Ditto.
1479 * ntoskrnl/ke/i386/kernel.c: Ditto.
1480 * ntoskrnl/ldr/init.c: Ditto.
1481 * ntoskrnl/ldr/loader.c: Ditto.
1482 * ntoskrnl/mm/anonmem.c: Ditto.
1483 * ntoskrnl/mm/cont.c: Ditto.
1484 * ntoskrnl/mm/freelist.c: Ditto.
1485 * ntoskrnl/mm/iospace.c: Ditto.
1486 * ntoskrnl/mm/kmap.c: Ditto.
1487 * ntoskrnl/mm/marea.c: Ditto.
1488 * ntoskrnl/mm/mdl.c: Ditto.
1489 * ntoskrnl/mm/mminit.c: Ditto.
1490 * ntoskrnl/mm/ncache.c: Ditto.
1491 * ntoskrnl/mm/npool.c: Ditto.
1492 * ntoskrnl/mm/pagefile.c: Ditto.
1493 * ntoskrnl/mm/pageop.c: Ditto.
1494 * ntoskrnl/mm/section.c: Ditto.
1495 * ntoskrnl/mm/slab.c: Ditto.
1496 * ntoskrnl/mm/i386/page.c: Ditto.
1497 * ntoskrnl/ob/handle.c: Ditto.
1498 * ntoskrnl/ps/create.c: Ditto.
1499 * ntoskrnl/ps/process.c: Ditto.
1500 * ntoskrnl/ps/w32call.c: Ditto.
1501 * subsys/win32k/include/object.h: Ditto.
1502
1503 2002-10-01 Casper S. Hornstrup <chorns@users.sourceforge.net>
1504
1505 * lib/ntdll/string/ctype.c: Undefine __MSVCRT__ to not have mingw
1506 runtime import _pctype.
1507
1508 2002-09-30 Casper S. Hornstrup <chorns@users.sourceforge.net>
1509
1510 * lib/user32/misc/desktop.c (string.h): Include.
1511 * lib/user32/misc/resources.c: Ditto.
1512 * lib/user32/misc/winhelp.c: Ditto.
1513 * lib/user32/windows/accel.c: Ditto.
1514 * lib/user32/windows/bitmap.c: Ditto.
1515 * subsys/win32k/freetype/ctype.c: Undefine __MSVCRT__ and _pctype to not
1516 have mingw runtime import _pctype.
1517
1518 2002-09-30 Casper S. Hornstrup <chorns@users.sourceforge.net>
1519
1520 * ntoskrnl/cc/view.c (alloca): Prototype.
1521 * ntoskrnl/rtl/ctype.c: Undefine __MSVCRT__ to not have mingw runtime
1522 import _pctype.
1523
1524 2002-08-26 David Welch <welch@computer2.darkstar.org>
1525
1526 * lib/gdi32/misc/dllmain.c (GdiDllInitialize): Don't initialize
1527 win32k.sys for each process.
1528 * subsys/csrss/init.c (CsrServerInitialization): Initialize
1529 win32k.sys as well.
1530
1531 2002-08-26 David Welch <welch@computer2.darkstar.org>
1532
1533 * ntoskrnl/ps/process.c (NtCreateProcess): Reference the
1534 parent process's handle using ExGetPreviousMode.
1535
1536 2002-08-26 David Welch <welch@computer2.darkstar.org>
1537
1538 * lib/user32/misc/dllmain.c (Init): Initialize gdi32 as well.
1539
1540 2002-08-26 David Welch <welch@computer2.darkstar.org>
1541
1542 * iface/addsys/genw32k.c (main, process): Generate a set of
1543 stubs for csrss as well.
1544
1545 2002-08-26 David Welch <welch@computer2.darkstar.org>
1546
1547 * lib/kernel32/process/create.c (CreateProcessW): Initialize
1548 all the members of the new process's PPB.
1549
1550 2002-08-17 David Welch <welch@computer2.darkstar.org>
1551
1552 * ntoskrnl/mm/rmap.c (MmWritePagePhysicalAddress): Ensure the
1553 process isn't freed in the middle of our operations.
1554
1555 2002-08-17 David Welch <welch@computer2.darkstar.org>
1556
1557 * drivers/fs/vfat/finfo.c (VfatSetAllocationSizeInformation): Fixed.
1558
1559 2002-08-17 David Welch <welch@computer2.darkstar.org>
1560
1561 * ntoskrnl/ps/create.c (PiDeleteThread): Don't dereference
1562 the thread's process while holding the thread list lock.
1563
1564 2002-08-17 David Welch <welch@computer2.darkstar.org>
1565
1566 * ntoskrnl/mm/section.c (MmMapViewOfSection): Check there is
1567 enough space for all parts of an image before mapping it; if
1568 there isn't enough space free at the preferred base address
1569 then try to choose a different one.
1570
1571 2002-08-17 David Welch <welch@computer2.darkstar.org>
1572
1573 * ntoskrnl/mm/mpw.c (MmInitMpwThread): Run the MPW thread at
1574 idle priority.
1575
1576 2002-08-17 David Welch <welch@computer2.darkstar.org>
1577
1578 * ntoskrnl/mm/kmap.c (ExUnmapPage, ExAllocatePageWithPhysPage,
1579 MiFreeNonPagedPoolRegion, MiAllocNonPagedPoolRegion): Maintain
1580 a hint of the next free page; makes running with whole page
1581 allocation more bearable.
1582
1583 2002-08-17 David Welch <welch@computer2.darkstar.org>
1584
1585 * ntoskrnl/mm/anonmem.c (MmPageOutVirtualMemory): Show an
1586 out of swap space message if we are out of swap space.
1587 * ntoskrnl/mm/section.c (MmPageOutSectionView): Show an
1588 out of swap space message if we are out of swap space.
1589 * ntoskrnl/mm/pagefile.c (MmAllocSwapPage): Don't automatically
1590 show an out of swap space message on failure.
1591 * ntoskrnl/mm/pagefile.c (MmShowOutOfSpaceMessagePagingFile): New
1592 function to notify the user that the pagefile is full.
1593
1594 2002-08-17 David Welch <welch@computer2.darkstar.org>
1595
1596 * drivers/lib/zlib/Makefile: Create a dummy zlib.sym
1597
1598 2002-08-16 David Welch <welch@computer2.darkstar.org>
1599
1600 * ntoskrnl/mm/npool.c (ExAllocateWholePageBlock): Converted
1601 to use PHYSICAL_ADDRESS type for page address.
1602
1603 2002-08-16 David Welch <welch@computer2.darkstar.org>
1604
1605 * subsys/win32k/ntuser/class.c (W32kCreateClass): Corrected
1606 typo when calculating the offset into the class object to
1607 put the class name string.
1608
1609 2002-08-16 David Welch <welch@computer2.darkstar.org>
1610
1611 * ntoskrnl/ps/thread.c (PsDispatchThreadNoLock): Don't call
1612 the reaper function directly; set an event to wake up a seperate
1613 reaper thread.
1614 * ntoskrnl/ps/thread.c (PsReaperThreadMain): New function that
1615 waits for a notification and then calls PsReapThreads.
1616 * ntoskrnl/ps/thread.c (PsInitThreadManagement): Create the
1617 reaper thread.
1618
1619 2002-08-15 David Welch <welch@computer2.darkstar.org>
1620
1621 * lib/advapi32/misc/dllmain.c (DllMain): Removed debug message.
1622
1623 2002-08-14 David Welch <welch@computer2.darkstar.org>
1624
1625 * subsys/smss/init.c (SmPagingFilesQueryRoutine): If possible
1626 take the size of the paging file from the registry.
1627
1628 2002-08-14 David Welch <welch@computer2.darkstar.org>
1629
1630 * ntoskrnl/mm/section.c (MmCreateDataFileSection): Extend the
1631 section if necessary.
1632
1633 2002-08-14 David Welch <welch@computer2.darkstar.org>
1634
1635 * ntoskrnl/mm/pagefile.c (NtCreatePagingFile): Set the file
1636 size using the FileAllocationInformation class.
1637
1638 2002-08-14 David Welch <welch@computer2.darkstar.org>
1639
1640 * ntoskrnl/mm/anonmem.c (MmWritePageVirtualMemory): Implemented
1641 function to write anonymous memory pages to the swap file.
1642 * ntoskrnl/mm/anonmem.c (MmFreeVirtualMemoryPage): Free any
1643 swap page associated with the page.
1644 * ntoskrnl/mm/mpw.c (MmWriteDirtyPages): New function to find
1645 pages to write to disk.
1646 * ntoskrnl/mm/mpw.c (MmMpwThreadMain): Implemented MPW functionality.
1647 * ntoskrnl/mm/rmap.c (MmWritePagePhysicalAddress): New function
1648 to write a single page back to disk.
1649 * ntoskrnl/mm/rmap.c (MmSetCleanAllRmaps, MmSetDirtyAllRmaps,
1650 MmIsDirtyPageRmap): New rmap function to support the MPW thread.
1651 * ntoskrnl/mm/section.c (MmWritePageSectionView): Implemented
1652 function to write back section pages.
1653 * ntoskrnl/mm/section.c (MmFreeSectionPage): Free any swap
1654 entry associated with the page; mark pages shared with
1655 the cache as dirty if necessary.
1656
1657 2002-08-14 David Welch <welch@computer2.darkstar.org>
1658
1659 * ntoskrnl/ldr/loader.c (LdrPEProcessModule): Set name of
1660 the module into the module text structure.
1661
1662 2002-08-14 David Welch <welch@computer2.darkstar.org>
1663
1664 * ntoskrnl/io/rw.c (NtReadFile, NtWriteFile): Use the correct
1665 test for whether to wait for the completion of i/o.
1666
1667 2002-08-14 David Welch <welch@computer2.darkstar.org>
1668
1669 * ntoskrnl/cm/ntfunc.c (NtFlushKey): Request synchronous i/o
1670 from NtOpenFile.
1671 * ntoskrnl/cm/regfile (CmiInitPermanentRegistryHive): Request
1672 synchronous i/o from NtCreateFile.
1673 * ntoskrnl/dbg/kdb_stabs.c (LdrpLoadModuleSymbols): Request
1674 synchronous i/o from NtOpenFile.
1675 * ntoskrnl/ldr/sysdll.c (LdrpMapSystemDll): Request synchronous i/o
1676 from NtOpenFile.
1677
1678 2002-08-14 David Welch <welch@computer2.darkstar.org>
1679
1680 * ntoskrnl/cc/view.c (CcRosSuggestFreeCacheSegment): Maintain the
1681 correct reference count.
1682
1683 2002-08-14 David Welch <welch@computer2.darkstar.org>
1684
1685 * ntoskrnl/cc/view.c (CcRosFlushCacheSegment): New function to
1686 write back a modified cache segment.
1687 * ntoskrnl/cc/view.c (CcRosFlushDirtyPages): New function to
1688 flush some dirty pages from the cache.
1689 * ntoskrnl/cc/view.c (CcRosMarkDirtyCacheSegment): New function to
1690 mark a cache segment modified while mapped into memory as dirty.
1691
1692 2002-08-14 David Welch <welch@computer2.darkstar.org>
1693
1694 * ntoskrnl/cc/pin.c (CcMapData, CcUnpinData, CcSetDirtyPinnedData):
1695 Store the dirty status in the BCB; don't write back dirty data
1696 immediately.
1697
1698 2002-08-14 David Welch <welch@computer2.darkstar.org>
1699
1700 * include/ntos/mm.h: Added SEC_XXXX defines from 'Windows NT/2000
1701 Native API Reference'
1702
1703 2002-08-14 David Welch <welch@computer2.darkstar.org>
1704
1705 * drivers/fs/vfat/ea.c (VfatSetExtendedAttributes): Empty
1706 placeholder for extended attribute functions.
1707
1708 2002-08-14 David Welch <welch@computer2.darkstar.org>
1709
1710 * drivers/fs/vfat/finfo.c (VfatSetAllocationSizeInformation):
1711 Added function to set allocation size.
1712
1713 2002-08-14 David Welch <welch@computer2.darkstar.org>
1714
1715 * drivers/fs/vfat/fcb.c (vfatFCBInitializeCache): Renamed
1716 to vfatFCBInitializeCacheFromVolume.
1717 * drivers/fs/vfat/fcb.c (vfatMakeFCBFromDirEntry): Don't
1718 initialise the cache with a file object representing the
1719 volume unless the FCB is for a directory.
1720
1721 2002-08-14 David Welch <welch@computer2.darkstar.org>
1722
1723 * drivers/fs/vfat/create.c (VfatPagingFileCreate): Added a
1724 new function for handling paging file only code.
1725 * drivers/fs/vfat/create.c (VfatSupersedeFile): Added a
1726 new function for doing a file supersede.
1727 * drivers/fs/vfat/create.c (VfatCreateFile): Reformatted and
1728 adjusted control flow. Set allocation size and extended attributes
1729 on create.
1730 * drivers/fs/vfat/create.c (VfatCreate): Removed goto.
1731
1732 2002-08-14 David Welch <welch@computer2.darkstar.org>
1733
1734 * drivers/fs/vfat/cleanup.c (VfatCleanupFile): Renamed
1735 updEntry to VfatUpdateEntry.
1736 * drivers/fs/vfat/close.c (VfatCloseFile): Renamed
1737 updEntry to VfatUpdateEntry.
1738 * drivers/fs/vfat/dirwr.c (updEntry): Renamed to
1739 VfatUpdateEntry.
1740 * drivers/fs/vfat/dirwr.c (addEntry): Renamed to
1741 VfatAddEntry.
1742
1743 2002-08-14 David Welch <welch@computer2.darkstar.org>
1744
1745 * apps/tests/sectest/sectest.c (main): Fixed formatting.
1746
1747 2002-08-10 David Welch <welch@computer2.darkstar.org>
1748
1749 * ntoskrnl/mm/i386/page.c (MmSetPageProtect): Fixed
1750 behaviour when called on the system address space.
1751
1752 2002-08-10 David Welch <welch@computer2.darkstar.org>
1753
1754 * ntoskrnl/mm/virtual.c (MmQueryAnonMem, MmProtectAnonMem,
1755 NtAllocateVirtualMemory, NtFreeVirtualMemory): Renamed
1756 segments to regions; moved region code to seperate file.
1757 Implemented NtQueryVirtualMemory and NtProtectVirtualMemory
1758 for anonymous memory areas.
1759
1760 2002-08-10 David Welch <welch@computer2.darkstar.org>
1761
1762 * ntoskrnl/mm/anonmem.c: Moved functions relating to
1763 areas created with NtAllocateVirtualMemory to a
1764 seperate file.
1765
1766 2002-08-10 David Welch <welch@computer2.darkstar.org>
1767
1768 * ntoskrnl/mm/section.c (MmQuerySectionView): Implemented
1769 NtQueryVirtualMemory for section views.
1770
1771 2002-08-10 David Welch <welch@computer2.darkstar.org>
1772
1773 * ntoskrnl/mm/section.c (MmAccessFaultSectionView,
1774 MmNotPresentFaultSectionView, MmProtectSectionView,
1775 MmMapViewOfSegment, MmAlterViewAttributes): Implemented
1776 NtProtectVirtualMemory for section views.
1777
1778 2002-08-10 David Welch <welch@computer2.darkstar.org>
1779
1780 * ntoskrnl/ke/main.c: Removed SEH test code.
1781
1782 2002-08-10 David Welch <welch@computer2.darkstar.org>
1783
1784 * lib/ntdll/ldr/utils.c (LdrFixupImports): Remove the readonly
1785 protection from the IAT before writing to it.
1786
1787 2002-08-10 David Welch <welch@computer2.darkstar.org>
1788
1789 * lib/ntdll/ldr/utils.c (LdrAdjustDllName): Properly null terminate
1790 the base name of the DLL.
1791
1792 2002-08-10 David Welch <welch@computer2.darkstar.org>
1793
1794 * ntoskrnl/ldr/loader.c (LdrPEProcessModule): Set the text segment
1795 of modules to readonly after loading.
1796
1797 2002-08-09 David Welch <welch@computer2.darkstar.org>
1798
1799 * ntoskrnl/ps/create.c (NtCreateThread): Call PsSuspendThread
1800 if NtCreateThread has CreateSuspended as TRUE.
1801 * ntoskrnl/ps/suspend.c (PsSuspendThread, PsResumeThread,
1802 PiSuspendThreadKernelRoutine): Fixed suspend functionality.
1803
1804 2002-08-09 David Welch <welch@computer2.darkstar.org>
1805
1806 * ntoskrnl/ke/i386/usertrap.c (print_user_address): Copy
1807 the LDR variable from the right address.
1808
1809 2002-08-09 David Welch <welch@computer2.darkstar.org>
1810
1811 * ntoskrnl/ke/apc.c (KiDeliverNormalApc): Check for
1812 kernel APCs pending on exit from the kernel.
1813 * ntoskrnl/ke/apc.c (KiDeliverNormalApc, KiDeliverUserApc,
1814 KiDeliverApc): Set the APC's inserted flag to FALSE after
1815 removing it from the thread's queue.
1816
1817 2002-08-09 David Welch <welch@computer2.darkstar.org>
1818
1819 * lib/kernel32/thread/thread.c (ThreadStartup): Don't
1820 call DLL entrypoints; this is done by LdrInitializeThunk.
1821 * lib/ntdll/ldr/startup.c (LdrInitializeThunk): Call
1822 DLLs in initialization order; take the loader lock before
1823 calling.
1824
1825 2002-08-09 David Welch <welch@computer2.darkstar.org>
1826
1827 * apps/tests/thread/thread.c (main): Test suspend and
1828 resume functionality.
1829
1830 2002-08-08 David Welch <welch@computer2.darkstar.org>
1831
1832 * ntoskrnl/mm/section (NtQuerySection): Return the
1833 right result length.
1834
1835 2002-08-08 David Welch <welch@computer2.darkstar.org>
1836
1837 * ntoskrnl/ke/usertrap.c (print_user_address): Check for
1838 a NULL LDR structure in the PEB; copy the LDR pointer in
1839 safely.
1840
1841 2002-08-08 David Welch <welch@computer2.darkstar.org>
1842
1843 * ntoskrnl/ke/apc.c (KiDeliverUserApc): Deliver all present
1844 APCs; release the APC spinlock while acccessing user memory.
1845
1846 2002-08-08 David Welch <welch@computer2.darkstar.org>
1847
1848 * include/internal/ps.h: Adjusted offsets into the ETHREAD
1849 structure.
1850 * include/internal/ps.h: Removed redundant members from the
1851 KTHREAD structure.
1852 * ntoskrnl/ke/kthread.c (KeInitializeThread): Removed
1853 redundant members from the KTHREAD structure.
1854
1855 2002-08-08 David Welch <welch@computer2.darkstar.org>
1856
1857 * ntoskrnl/dbg/kdb.c (KdbEnterDebuggerException): New
1858 function to enter the debugger on an exception.
1859 * ntoskrnl/kd/kdebug.c (KdInitSystem): Initialize the
1860 local kernel debugger if enabled.
1861 * ntoskrnl/ke/catch.c (KiDispatchException): Enter the
1862 local kernel debugger on an exception.
1863
1864 2002-08-08 David Welch <welch@computer2.darkstar.org>
1865
1866 * include/ntdll/ldr.h: Added definition for a DLL entrypoint.
1867 * lib/kernel32/process/create.c (KlCreateFirstThread): Put
1868 the argument to the NtProcessStartup function on the stack.
1869 * lib/kernel32/process/create.c (KlInitPeb): Read the
1870 base address of the new image from the PEB.
1871 * lib/kernel32/process/create.c (CreateProcessW): Start the
1872 first thread at the entrypoint of the new image.
1873 * lib/ntdll/ldr/startup.c (LdrInitializeThunk): If the
1874 function is called after the initial startup then just call the
1875 entrypoints for the loaded DLLs with DLL_THREAD_ATTACH. Don't
1876 call the entrypoint of the image.
1877 * lib/ntdll/rtl/process.c (RtlpCreateFirstThread): Put the
1878 argument to the NtProcessStartup function on the stack.
1879 * lib/ntdll/rtl/process.c (KlInitPeb): Read the base address of
1880 the new image from the PEB.
1881 * lib/ntdll/rtl/process.c (RtlCreateUserProcess): Start the
1882 first thread at the entrypoint of the new image.
1883 * ntoskrnl/ke/i386/bthread.S (PsBeginThreadWithContextInternal):
1884 Use the system call path to begin a usermode thread.
1885 * ntoskrnl/ke/i386/thread.c (Ke386InitThreadWithContext): Convert
1886 the supplied context into a trap frame.
1887 * ntoskrnl/ldr/init.c (LdrLoadInitialProcess): Put the PEB argument
1888 to the NtProcessStartup function on the new stack; start the
1889 first thread at the entrypoint of the image.
1890 * ntoskrnl/ps/create.c (NtCreateThread): Create an APC to call
1891 LdrInitializeThunk in the context of a new thread before its
1892 entrypoint.
1893
1894 2002-08-08 David Welch <welch@computer2.darkstar.org>
1895
1896 * drivers/fs/vfat/cleanup.c (VfatCleanupFile): Uninitialise
1897 the cache on file cleanup.
1898 * drivers/fs/vfat/fcb.c (vfatReleaseFcb): Don't uninitialise
1899 the cache on file close.
1900 * ntoskrnl/cc/copy.c: Renamed zero page global variable.
1901 * ntoskrnl/cc/view.c: Added cache delete function.
1902
1903 2002-07-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
1904
1905 * rules.mak (RSYM): Define.
1906 * include/ddk/zwtypes.h (DebugDbgLoadSymbols): Add to enum
1907 _DEBUG_CONTROL_CODE.
1908 * include/ntdll/ldr.h (LDR_SYMBOL_INFO, LdrpLoadUserModuleSymbols): Add.
1909 (LdrLoadModuleSymbols): Remove.
1910 * include/ntos/kdbgsyms.h (ST_FILENAME, ST_FUNCTION,
1911 ST_LINENUMBER): Add.
1912 (SYMBOL). Make Name an ANSI_STRING.
1913 (IMAGE_SYMBOL_INFO, AreSymbolsParsed): Add.
1914 * lib/ntdll/ldr/startup.c (LdrInitializeThunk): Call
1915 LdrpLoadUserModuleSymbols() not LdrLoadModuleSymbols().
1916 * lib/ntdll/ldr/utils.c (LdrLoadModuleSymbols): Rename to
1917 LdrpLoadUserModuleSymbols.
1918 (LdrpLoadUserModuleSymbols): Use DebugDbgLoadSymbols debug control code.
1919 (LdrLoadDll): assert if out of memory.
1920 (LdrLoadDll): Call
1921 LdrpLoadUserModuleSymbols(), not LdrLoadModuleSymbols().
1922 * lib/ntdll/string/ctype.c (_pctype): #undef.
1923 * ntoskrnl/dbg/dbgctrl.c (NtSystemDebugControl): Call
1924 LdrLoadUserModuleSymbols on DebugDbgLoadSymbols.
1925 * ntoskrnl/include/internal/ldr.h (LdrGetAddressInformation): Add.
1926 * ntoskrnl/include/internal/module.h (MODULE_TEXT_SECTION): Make SymbolInfo
1927 an IMAGE_SYMBOL_INFO.
1928 * ntoskrnl/ke/i386/exp.c (LdrGetAddressInformation): Add prototype.
1929 (print_address): Change #ifdef KDBG to #ifdef DBG.
1930 (KiDoubleFaultHandler, KiDumpTrapFrame, KeDumpStackFrames): Dump
1931 one stack frame per line.
1932 * ntoskrnl/ke/i386/multiboot.S: Create pagetables for more kernel
1933 address space so larger modules can be passed from the boot loader.
1934 * ntoskrnl/ke/i386/usertrap.c (LdrGetAddressInformation): Add prototype.
1935 (print_user_address): Print symbols using LdrGetAddressInformation().
1936 * ntoskrnl/ldr/loader.c (SYMBOLFILE_HEADER, IMAGE_SYMBOL_INFO_CACHE,
1937 STAB_ENTRY, N_FUN, N_SLINE, N_SO, SymbolListHead): Add.
1938 (TAG_SYM_BUF): Remove.
1939 (LdrInitDebug): Remove unneeded code.
1940 (LdrInit1): Prepare for loading symbols.
1941 (LdrpReadLine, HexL, LdrpParseLine, LdrpLoadModuleSymbolsFromBuffer,
1942 LdrpLoadUserModuleSymbolsFromBuffer): Remove.
1943 (LdrpParseImageSymbols, LdrpGetFileName, LdrpGetFunctionName,
1944 LdrpGetLineNumber, LdrGetAddressInformation, LdrpLookupUserSymbolInfo): Add.
1945 (LdrpLoadModuleSymbols, LdrInitializeBootStartDriver): Change to use new
1946 symbol structures.
1947 (LdrLoadUserModuleSymbols): Cache symbol buffers.
1948 (LdrUnloadModuleSymbols): Implement.
1949 (LdrLoadModule, LdrUnloadModule): Change #ifdef KDBG to #ifdef DBG.
1950 (LdrPEProcessModule): Split a line into two lines.
1951 (LdrPEProcessModule): Setup for loading symbols.
1952 * ntoskrnl/ldr/sysdll.c (LdrpMapSystemDll): Open with FILE_SHARE_READ.
1953 * ntoskrnl/ps/process.c (PiFreeSymbols): Call LdrUnloadModuleSymbols() to
1954 free symbols.
1955 (PiDeleteProcess): Change #ifdef KDBG to #ifdef DBG.
1956 * ntoskrnl/rtl/ctype.c (_pctype): #undef.
1957 * ntoskrnl/rtl/string.c (strncpy): Terminate destination string.
1958 * tools/Makefile (rsym): Add target.
1959 * tools/helper.mk: Include config and use -g if DBG = 1.
1960
1961 2002-07-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
1962
1963 * Makefile (install_before): Install system.hiv to correct location.
1964
1965 2002-07-04 David Welch <welch@computer2.darkstar.org>
1966
1967 * subsys/win32k/include/callback.h: Fixed callback argument
1968 definitions.
1969 * subsys/win32k/ntuser/winpos.c: Implemented some more of the windows
1970 sizing/moving code.
1971 * subsys/win32k/ntuser/painting.c: Implemented some more of the
1972 window painting code.
1973 * subsys/win32k/objects/coord.c: Implemented LPtoDP and DPtoLP.
1974 * subsys/win32k/objects/region.c: Added stubs for some more
1975 region functions.
1976
1977 2002-07-04 David Welch <welch@computer2.darkstar.org>
1978
1979 * ntoskrnl/ps/process.c (NtCreateProcess): Duplicate the
1980 process desktop handle as well.
1981
1982 2002-07-04 David Welch <welch@computer2.darkstar.org>
1983
1984 * ntoskrnl/se/token.c: Don't call the ZwXXX variant of
1985 system calls when in system context.
1986
1987 2002-07-04 David Welch <welch@computer2.darkstar.org>
1988
1989 * ntoskrnl/Makefile: Added file with MDA output code.
1990 * ntoskrnl/kd/kdebug.c: Recognize MDA as a destination for
1991 debug output.
1992
1993 2002-07-04 David Welch <welch@computer2.darkstar.org>
1994
1995 * lib/user32/windows/defwnd.c: Implemented some more of the
1996 default window handler.
1997
1998 2002-07-04 David Welch <welch@computer2.darkstar.org>
1999
2000 * lib/user32/misc/stubs.c: Removed some stubs to seperate files.
2001
2002 2002-07-04 David Welch <welch@computer2.darkstar.org>
2003
2004 * lib/user32/user32.def: Export ScreenToClient otherwise we
2005 get problems when code in user32 tries to call it.
2006
2007 2002-07-04 David Welch <welch@computer2.darkstar.org>
2008
2009 * include/win32k/region.h: Added prototypes for some missing
2010 region functions.
2011
2012 2002-07-04 David Welch <welch@computer2.darkstar.org>
2013
2014 * include/win32k/ntuser.h: Added prototypes for some missing
2015 NtUserXXX functions.
2016
2017 2002-07-04 David Welch <welch@computer2.darkstar.org>
2018
2019 * include/user32/wininternal.h: Added some constants for
2020 private GetDCEx styles that WINE needs.
2021
2022 2002-07-04 David Welch <welch@computer2.darkstar.org>
2023
2024 * include/user32/callback.h: Fixed callbacks for messages with
2025 parameters.
2026
2027 2002-07-04 David Welch <welch@computer2.darkstar.org>
2028
2029 * include/napi/win32.h (W32THREAD): Added pointer to the
2030 thread's desktop.
2031 * include/napi/win32.h (W32PROCESS): Removed handle table,
2032 added a pointer to the process's window station.
2033 * subsys/win32k/ntuser/guicheck.c (W32kGuiCheck): Reference
2034 a process's window station on the first win32k system call. Reference
2035 a thread's desktop on the first win32k system call.
2036
2037 2002-07-04 David Welch <welch@computer2.darkstar.org>
2038
2039 * include/messages.h: Added some missing WM_XXX constants.
2040
2041 2002-07-04 David Welch <welch@computer2.darkstar.org>
2042
2043 * drivers/dd/ide/makefile: Compiling with debugging messages
2044 needs libgcc to be linked in.
2045
2046 2002-07-04 David Welch <welch@computer2.darkstar.org>
2047
2048 * iface/addsys/genw32k.c: Generate a variable with the
2049 number of system calls.
2050 * iface/native/genntdll.c: Generate a proper stack frame for
2051 the user system call stubs.
2052 * ntoskrnl/ke/i386/syscall.S: Generate a proper stack frame for
2053 the handler for system calls.
2054
2055 2002-07-04 David Welch <welch@computer2.darkstar.org>
2056
2057 * Makefile: Build the GUI startup application.
2058 * subsys/system/gstart/gstart.c: Application to start up
2059 the GUI.
2060
2061 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2062
2063 * tools/helper.mk: Make an import library a proper target
2064 depending on the .def file.
2065
2066 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2067
2068 * subsys/win32k/ntuser/window.c (NtUserGetWindowLong): Began
2069 implementation.
2070
2071 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2072
2073 * subsys/win32k/misc/object.c (ObmCreateHandle): Return the
2074 correct handle value.
2075
2076 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2077
2078 * subsys/win32k/makefile: Make win32k depend on the file containing
2079 the service table.
2080
2081 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2082
2083 * ntoskrnl/ke/i386/stkswitch.S (KeSwitchStackAndRet,
2084 KePushAndStackSwitchAndSysRet): Push one value only.
2085 * ntoskrnl/ps/w32call.c (NtCallbackReturn, NtW32Call): Moved
2086 these functions to a new file. Restore the old trap frame after
2087 returning from a callback.
2088
2089 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2090
2091 * lib/user32/windows/message.c (CallWindowProcA, CallWindowProcW):
2092 Convert message to Unicode or ASCII if necessary.
2093
2094 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2095
2096 * include/user32/callback.h: Added WM_CREATE and WM_NCCALCSIZE
2097 callbacks.
2098 * lib/user32/windows/window.c (User32SendCREATEMessageForKernel,
2099 User32SendNCCREATEMessageForKernel): Implemented.
2100 * subsys/win32k/ntuser/callback.c (W32kSendCREATEMessage):
2101 Implemented.
2102
2103 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2104
2105 * include/structs.h: Added Unicode and ASCII versions of
2106 CREATESTRUCT.
2107
2108 2002-06-16 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2109
2110 * tools/helper.mk: Make the install target depend on all the
2111 files to be installed.
2112
2113 2002-06-16 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2114
2115 * ntoskrnl/ps/thread.c (NtCallbackReturn): Set TSS.Esp0 to the
2116 top of the old stack.
2117 * ntoskrnl/ps/thread.c (NtW32Call): Set TSS.Esp0 to the top of
2118 the new stack. Free the callback stack correctly. Don't copy
2119 portion of the trap frame that doesn't exist in non-v86-mode
2120 interrupts.
2121 * ntoskrnl/ps/thread.c (PsFreeCallbackStack): New function to
2122 free a stack allocated with PsAllocateCallbackStack.
2123
2124 2002-06-16 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2125
2126 * drivers/dd/null/makefile: Commented out local LDFLAGS as
2127 these cause bad relocations in the stripped image.
2128
2129 2002-06-16 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2130
2131 * config: Corrected spelling error.
2132
2133 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2134
2135 * subsys/system/winlogon/winlogon.c (WinMain): Check for
2136 failure when creating a window system.
2137
2138 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2139
2140 * ntoskrnl/ob/handle.c (ObDuplicateObject): Added this internal
2141 function for duplicating objects.
2142 * ntoskrnl/ps/process.c (NtCreateProcess): Duplicate the parent
2143 process's window station to the child process.
2144 * ntoskrnl/ps/process.c (PsInitProcessManagement): Initialize the
2145 first process's window station.
2146
2147 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2148
2149 * ntoskrnl/mm/marea.c (MmCreateMemoryArea): Initialise
2150 page operation structure members.
2151 * ntoskrnl/mm/pageop.c (MmReleasePageOp, MmGetPageOp): Increment
2152 or decrement the page operation count in the memory area.
2153 * ntoskrnl/mm/virtual.c (MmNotPresentFaultVirtualMemory,
2154 MmPageOutVirtualMemory): Check for a deleted memory area before
2155 handling the fault.
2156 * ntoskrnl/mm/virtual.c (MmFreeVirtualMemory): Wait for all
2157 page operations to finish before freeing the memory area.
2158
2159 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2160
2161 * ntoskrnl/ke/i386/syscall.S (interrupt_handler2e): Corrected
2162 test for previous mode, upper 16-bit of CS on the stack after an
2163 interrupt are arbitary.
2164
2165 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2166
2167 * lib/user32/misc/winsta.c: Cleaned up indentation.
2168
2169 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2170
2171 * apps/tests/winhello/winhello.c (WinMain, MainWndProc):
2172 Cleaned up formatting, some more error checks.
2173
2174 2002-06-04 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2175
2176 * ntoskrnl/mm/virtual.c (MmSecureVirtualMemory,
2177 MmUnsecureVirtualMemory, NtQueryVirtualMemory): Corrected indentation.
2178
2179 2002-06-04 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2180
2181 * ntoskrnl/ke/i386/exp.c (KiDoubleFaultHandler): Print CR3
2182 correctly.
2183
2184 2002-06-04 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
2185
2186 * ntoskrnl/include/internal/ps.h: Added KTHREAD_STACK_LIMIT definition.
2187 * ntoskrnl/ke/i386/tskswitch.S (Ki386ContextSwitch): Force all the
2188 pages of the kernel stack to be accessible from this process.
2189
2190 2002-06-04 David Welch <welch@cwcom.net>
2191
2192 * ntoskrnl/cc/view.c (ReadCacheSegmentChain): Changes to use
2193 PHYSICAL_ADDRESS type for physical addresses.
2194 * ntoskrnl/cc/copy.c (CcRosCreateCacheSegment): Changes to use
2195 PHYSICAL_ADDRESS type for physical addresses.
2196 * ntoskrnl/cc/copy.c (CcFreeCachePage): Changes to use
2197 PHYSICAL_ADDRESS type for physical addresses.
2198 * ntoskrnl/include/internal/mm.h: Changed prototypes to use
2199 PHYSICAL_ADDRESS type for physical addresses.
2200 * ntoskrnl/include/internal/ps.h (KPROCESS): Changed type of
2201 page directory base to PHYSICAL_ADDRESS.
2202 * ntoskrnl/include/internal/i386/mm.h: Changed prototypes to use
2203 PHYSICAL_ADDRESS type for physical addresses.
2204 * ntoskrnl/ke/kthread.c (KeFreeStackPage): Changes to use
2205 PHYSICAL_ADDRESS type for physical addresses.
2206 * ntoskrnl/ke/kthread.c (KeInitializeThread): Changes to use
2207 PHYSICAL_ADDRESS type for physical addresses.
2208 * ntoskrnl/ke/process.c (KeAttachProcess, KeDetachProcess): Changes
2209 to use PHYSICAL_ADDRESS type for physical addresses.
2210 * ntoskrnl/ke/kernel.c (PcrPages, KeApplicationProcessorInit): Changes
2211 to use PHYSICAL_ADDRESS type for physical addresses.
2212 * ntoskrnl/mm/balance.c (MM_ALLOCATION_REQUEST): Changes to use
2213 PHYSICAL_ADDRESS type for physical addresses.
2214 * ntoskrnl/mm/balance.c (MmReleasePageMemoryConsumer): Changes to use
2215 PHYSICAL_ADDRESS type for physical addresses.
2216 * ntoskrnl/mm/balance.c (MmRequestPageMemoryConsumer): Changes to use
2217 PHYSICAL_ADDRESS type for physical addresses.
2218 * ntoskrnl/mm/cont.c (MmFreeContinuousPage): Changes to use
2219 PHYSICAL_ADDRESS type for physical addresses.
2220 * ntoskrnl/mm/cont.c (MmAllocateContinuousAlignedMemory): Changes to
2221 use PHYSICAL_ADDRESS type for physical addresses.
2222 * ntoskrnl/mm/freelist.c (MmTransferOwnershipPage,
2223 MmGetLRUFirstUserPage, MmGetLRUNextUserPage, MmGetContinuousPages,
2224 MmInitializePageList, MmSetFlagsPage, MmSetRmapListHeadPage,
2225 MmGetRmapListHeadPage, MmMarkPageMapped, MmMarkPageUnmapped,
2226 MmGetFlagsPage, MmSetSavedSwapEntryPage, MmGetSavedSwapEntryPage,
2227 MmReferencePage, MmGetReferenceCountPage, MmIsUsablePage,
2228 MmDereferencePage, MmGetLockCountPage, MmLockPage, MmUnlockPage,
2229 MmAllocPage): Changes to use PHYSICAL_ADDRESS type for physical
2230 addresses.
2231 * ntoskrnl/mm/iospace.c (MmMapIoSpace): Changes to use
2232 PHYSICAL_ADDRESS type for physical addresses.
2233 * ntoskrnl/mm/kmap.c (ExAllocatePage, MiZeroPage, MiCopyFromUserPage,
2234 ExAllocatePageWithPhysPage): Changes to use PHYSICAL_ADDRESS type for
2235 physical addresses.
2236 * ntoskrnl/mm/marea.c (MmFreeMemoryArea): Changes to use
2237 PHYSICAL_ADDRESS type for physical addresses.
2238 * ntoskrnl/mm/mdl.c (MmUnlockPages, MmMapLockedPages,
2239 MmProbeAndLockPages): Changes to use PHYSICAL_ADDRESS type for
2240 physical addresses.
2241 * ntoskrnl/mm/mm.c (MmSharedDataPagePhysicalAddress,
2242 MmCommitPagedPoolAddress, MmNotPresentFault): Changes to use
2243 PHYSICAL_ADDRESS type for physical addresses.
2244 * ntoskrnl/mm/mminit.c (MmInitVirtualMemory): Changes to use
2245 PHYSICAL_ADDRESS type for physical addresses.
2246 * ntoskrnl/mm/ncache.c (MmAllocateNonCachedMemory,
2247 MmFreeNonCachedPage): Changes to use PHYSICAL_ADDRESS type for
2248 physical addresses.
2249 * ntoskrnl/mm/npool.c (grow_kernel_pool): Changes to use
2250 PHYSICAL_ADDRESS type for physical addresses.
2251 * ntoskrnl/mm/rmap.c (MmPageOutPhysicalAddress, MmInsertRmap,
2252 MmDeleteAllRmaps, MmDeleteRmap): Changes to use
2253 PHYSICAL_ADDRESS type for physical addresses.
2254 * ntoskrnl/mm/section.c (MiReadPage, MmNotPresentFaultSectionView,
2255 MmAccessFaultSectionView, MmPageOutDeleteMapping,
2256 MmPageOutSectionView, MmFreeSectionPage): Changes to use
2257 PHYSICAL_ADDRESS type for physical addresses.
2258 * ntoskrnl/mm/slab.c (ExGrowSlabCache): Changes to use
2259 PHYSICAL_ADDRESS type for physical address.
2260 * ntoskrnl/mm/virtual.c (MmPageOutVirtualMemory,
2261 MmNotPresentFaultVirtualMemory, MmFreeVirtualMemoryPage): Changes to
2262 use PHYSICAL_ADDRESS type for physical address.
2263 * ntoskrnl/mm/wset.c (MmTrimUserMemory): Changes to use
2264 PHYSICAL_ADDRESS type for physical address.
2265 * ntoskrnl/mm/page.c (Mmi386ReleaseMmInfo, MmCopyMmInfo,
2266 MmGetPhysicalAddressForProcess, MmCreateVirtualMapping,
2267 MmCreateVirtualMappingUnsafe, MmCreateVirtualMappingForProcess,
2268 MmDeleteVirtualMapping): Changes to use PHYSICAL_ADDRESS type for
2269 physical address.
2270 * ntoskrnl/ps/process (PsInitProcessManagment): Changes to use
2271 PHYSICAL_ADDRESS type for physical address.
2272 * ntoskrnl/ps/thread.c (PsAllocateCallbackStack): Changes to use
2273 PHYSICAL_ADDRESS type for physical address.
2274
2275 2002-06-04 David Welch <welch@cwcom.net>
2276
2277 * Lots of change since the ChangeLog was last updated.
2278
2279 2001-03-18 David Welch <welch@cwcom.net>
2280
2281 * ntoskrnl/ke/apc.c (KiDeliverApc): Bug fix.
2282 * ntoskrnl/ke/apc.c (KeInsertQueueApc): More comments.
2283 * ntoskrnl/ke/catch.c (KiDispatchException): Bug fix.
2284 * ntoskrnl/ke/timer.c (KeDelayExecutionThread): Don't use removed
2285 function KeAddTimeoutThread.
2286 * ntoskrnl/ke/timer.c (KeAddTimeoutThread): Removed.
2287 * ntoskrnl/ke/wait.c (KeWaitForSingleObject, KeWaitForMultipleObjects):
2288 Don't use KeAddTimeoutThread.
2289 * ntoskrnl/mm/freelist.c (MmAllocateContiguousAlignedMemory): Bug fix
2290 * ntoskrnl/mm/freelist.c (MmAllocatePage): Allocate from the top
2291 memory.
2292
2293 2001-03-17 David Welch <welch@cwcom.net>
2294
2295 * ntoskrnl/ke/catch.c (KiDispatchException): Implementation of
2296 exception handling, user-mode only.
2297
2298 2001-03-16 David Welch <welch@cwcom.net>
2299
2300 * include/ddk/zw.h: Corrected declarations of NtCreateProfile,
2301 NtQueryIntervalProfile, NtSetIntervalProfile.
2302 * include/ddk/zwtypes.h: Added definitions of KPROFILE_SOURCE.
2303 * ntoskrnl/include/internal/ke.h: Added the interrupted EIP as a
2304 parameter to KiUpdateSystemTime for profiling purposes.
2305 * ntoskrnl/include/internal/nt: Added declaration for profiling
2306 support initialization.
2307 * ntoskrnl/ke/timer.c (KiUpdateSystemTime, KeExpireTimers): Call
2308 the profiling code on a timer interrupt with the interrupt EIP.
2309 * ntoskrnl/ke/i386/irq.c (KiDispatchInterrupt): Pass the interrupted
2310 EIP to KiUpdateSystemTime.
2311 * ntoskrnl/mm/virtual.c (NtReadVirtualMemory, NtWriteVirtualMemory):
2312 Release the MDLs used properly.
2313 * ntoskrnl/nt/nt.c: Call the profiling support initialization.
2314 * ntoskrnl/nt/ntevent.c (NtCreateEvent): Don't try copying the
2315 ObjectAttributes parameter if it is NULL.
2316 * ntoskrnl/nt/profile.c: Implemented profiling.
2317
2318 2001-03-16 David Welch <welch@cwcom.net>
2319
2320 * ntoskrnl/include/internal/safe.h: Corrected typo.
2321 * ntoskrnl/nt/ntevent.c (NtCreateEvent, NtOpenEvent, NtQueryEvent):
2322 Corrected typos.
2323 * ntoskrnl/rtl/mem.c: Missing header file.
2324
2325 2001-03-16 David Welch <welch@cwcom.net>
2326
2327 * ntoskrnl/include/internal/safe.h: Add definitions for handling
2328 potentially unsafe pointers.
2329
2330 2001-03-16 David Welch <welch@cwcom.net>
2331
2332 * ntoskrnl/include/internal/mm.h: Removed MmSafeCopyToUser and
2333 MmSafeCopyFromUser as source files need these but don't want internal
2334 mm definitions.
2335 * ntoskrnl/nt/ntevent.c (NtCreateEvent, NtOpenEvent, NtPulseEvent,
2336 NtQueryEvent, NtResetEvent, NtSetEvent): Copy data to and from
2337 user mode safely.
2338 * ntoskrnl/rtl/mem.c (MmCopyToCaller, MmCopyFromCaller): Helper
2339 functions for copying data to and from potentially unsafe pointers.
2340
2341 2000-12-23 David Welch <welch@cwcom.net>
2342
2343 * All task switching is done in software.
2344 * Beginnings of v86 mode support.
2345
2346 2000-12-22 David Welch <welch@cwcom.net>
2347
2348 * ntoskrnl/ps/kill.c (PiTerminateProcessThreads): Drop
2349 PiThreadListLock before calling PsTerminateOtherThread
2350
2351 2000-12-16 David Welch <welch@cwcom.net>
2352
2353 * ntoskrnl/ex/fmutex.c (ExReleaseFastMutexUnsafe): Only set the
2354 fast mutex's owner back to NULL if it is being released
2355
2356 2000-12-10 David Welch <welch@cwcom.net>
2357
2358 * ntoskrnl/ke/i386/vm86_sup.S (Ki386RetToV86Mode): Added function
2359 to do the raw switch to v86 mode.
2360 * ntoskrnl/include/internal/vm86.h: Definitions for the v86 mode
2361 support.
2362
2363 2000-12-10 David Welch <welch@cwcom.net>
2364
2365 * ntoskrnl/ke/i386/trap.s (PsBeginThreadWithContextInternal): Moved
2366 to ntoskrnl/ke/i386/bswitch.S.
2367 * ntoskrnl/ke/i386/trap.s (interrupt_handler2e): Moved to
2368 ntoskrnl/ke/i386/syscall.S.
2369 * ntoskrnl/ke/i386/trap.s (old_interrupt_handler2e): Removed.
2370
2371 2000-12-04 David Welch <welch@cwcom.net>
2372
2373 * ntoskrnl/ke/i386/irq.c (KiInterruptDispatch): Record the last PC
2374 value for a rescheduled thread.
2375 * ntoskrnl/ke/i386/irqhand.s: Construct a primitive trap frame
2376 in interrupt handlers.
2377
2378 2000-08-30 David Welch <welch@cwcom.net>
2379
2380 * Added calibration of KeStallExecutionProcessor timing
2381 (code from linux 2.2.16).
2382
2383 * Corrected compilation bugs in user32 library.
2384
2385 * Corrected compilation bugs related to anonymous structs
2386 in ndis code.
2387
2388 * Pass command line to kernel from loadros.
2389
2390 * Corrected PIC mask calculation.
2391
2392 2000-05-27 David Welch <welch@cwcom.net>
2393
2394 * Fixed issue with closing non-existent or already closed
2395 handle.
2396
2397 2000-01-26 David Welch <welch@cwcom.net>
2398
2399 * ZwCreateProcess now maps ntdll rather than the user-mode
2400 code.
2401
2402 1999-09-06 David Welch <welch@cwcom.net>
2403
2404 * Implemented ZwOpenProcess.
2405
2406 * Partially implemented killing other threads (possible memory
2407 leaks).
2408
2409 * Made a start on a proper implemention of APCs (based on
2410 article in NT insider).
2411
2412 1998-12-08 David Welch <welch@cwcom.net>
2413
2414 * Corrected bug in shell (Read two keypresses and assumed they
2415 where the key going up and down respectively).
2416
2417 * Corrected race in dpc handling.
2418
2419 * Took out cleanup sections in ZwReadFile (now handled by the
2420 APC).
2421
2422 * Disabled broken code in kernel32.
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432