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