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