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