Include test for truncating files, which currently doesn't work.
[reactos.git] / reactos / ChangeLog
1 2002-12-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
2
3 * drivers/fs/vfat/cleanup.c (VfatCleanupFile): Only uninitialize caching
4 when initialized.
5 * drivers/fs/vfat/fcb.c (vfatReleaseFCB): Ditto.
6 * lib/kernel32/mem/section.c (CreateFileMappingW): Pass NULL as
7 MaximumSize to NtCreateSection if dwMaximumSizeHigh and dwMaximumSizeLow
8 are both 0.
9 * ntoskrnl/cc/pin.c (CcMapData): Assert if Bcb is NULL.
10 * ntoskrnl/cc/view.c (CcRosReleaseCacheSegment, CcRosLookupCacheSegment,
11 CcRosMarkDirtyCacheSegment, CcRosUnmapCacheSegment,
12 CcRosCreateCacheSegment, CcRosGetCacheSegmentChain,
13 CcRosGetCacheSegment, CcRosRequestCacheSegment, CcFlushCache,
14 CcRosDeleteFileCache, CcRosReferenceCache, CcRosDereferenceCache,
15 CcRosReleaseFileCache, CcGetFileObjectFromSectionPtrs): Ditto.
16 * ntoskrnl/mm/section.c (MiReadPage): Assert if Fcb->Bcb is NULL.
17 (MmCreateDataFileSection): Make sure caching is initialized for the file
18 stream.
19
20 2002-11-15 Casper S. Hornstrup <chorns@users.sourceforge.net>
21
22 * include/ddk/ldrtypes.h: Move ...
23 * include/ntos/ldrtypes.h: ... here.
24 * include/ddk/ntddk.h: Include ldrtypes.h at new location.
25
26 2002-11-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
27
28 * drivers/bus/acpi/ospm/osl.c (acpi_os_readable, acpi_os_writable):
29 Match prototypes.
30 * include/ascii.h (AbortSystemShutdownA): Correct prototype.
31 * include/debug.h (assert): Wrap in #ifndef assert.
32 * include/funcs.h (AbortSystemShutdown): Remove duplicate prototype.
33 * include/ddk/rtltypes.h: Move ...
34 * include/ntos/rtltypes.h: ... here.
35 * include/ddk/rtl.h: Move ...
36 * include/ntos/rtl.h: ... here.
37 * include/ddk/zwtypes.h: Move ...
38 * include/ntos/zwtypes.h: ... here.
39 * include/ddk/zw.h: Move ...
40 * include/ntos/zw.h: ... here.
41 | include/ddk/cmfuncs.h: Remove file; Move NtCreateKey to ntos/zw.h.
42 * include/ntos.h: #include ntos/rtltypes.h, ntos/rtl.h, ntos/zwtypes.h,
43 and ntos/zw.h.
44 * include/unicode.h: (AbortSystemShutdownW): Correct prototype.
45 * include/ddk/ntddk.h: Include headers at new location; Don't include
46 removed files.
47 * include/defines.h: Wrap definitions in w32api in #ifndef __USE_W32API.
48 * include/ntos/zwtypes.h: Ditto.
49 * include/napi/lpc.h: Ditto.
50 * include/napi/shared_data.h: Ditto.
51 * include/napi/teb.h: Ditto.
52 * include/napi/types.h: Ditto.
53 * include/ntdll/ldr.h: Ditto.
54 * include/ntdll/rtl.h: Ditto.
55 * include/ntos/console.h: Ditto.
56 * include/ntos/disk.h: Ditto.
57 * include/ntos/except.h: Ditto.
58 * include/ntos/file.h: Ditto.
59 * include/ntos/gditypes.h: Ditto.
60 * include/ntos/heap.h: Ditto.
61 * include/ntos/keyboard.h: Ditto.
62 * include/ntos/mm.h: Ditto.
63 * include/ntos/ntdef.h: Ditto.
64 * include/ntos/ps.h: Ditto.
65 * include/ntos/registry.h: Ditto.
66 * include/ntos/security.h: Ditto.
67 * include/ntos/synch.h: Ditto.
68 * include/ntos/time.h: Ditto.
69 * include/ntos/types.h: Ditto.
70 * include/ntos/port.h: Ditto.
71 * lib/advapi32/misc/shutdown.c (AbortSystemShutdownW,
72 AbortSystemShutdownA): Correct prototype.
73 * lib/advapi32/reg/reg.c: #include ntos.h.
74 * lib/advapi32/sec/misc.c: Ditto.
75 * lib/advapi32/sec/sid.c: Ditto.
76 * lib/advapi32/service/sctrl.c: Ditto.
77 * lib/advapi32/token/token.c: Ditto.
78 * lib/kernel32/misc/dllmain.c: Ditto.
79 * ntoskrnl/ex/napi.c: Ditto.
80 * ntoskrnl/rtl/i386/exception.c: Ditto.
81 * lib/advapi32/sec/ac.c: Ditto.
82 (FindFirstFreeAce, GetAce): Change PACE* to PACE_HEADER*.
83 * lib/advapi32/service/scm.c (EnumServicesStatusExA,
84 EnumServicesStatusExW, QueryServiceStatusEx): Correct prototype.
85 * lib/ntdll/rtl/ppb.c (RtlDestroyProcessParameters): Match prototype.
86 * ntoskrnl/dbg/errinfo.c (DbgGetErrorText): Use %08x, not %08lx.
87 * ntoskrnl/io/arcname.c (IoCreateSystemRootLink): Use %u, not %lu.
88 * ntoskrnl/ke/main.c (ExpInitializeExecutive): Ditto.
89 * (_main): Use %d, not %ld.
90 * ntoskrnl/include/internal/i386/ke.h: Add #pragma GCC system_header.
91 * include/ddk/ntdef.h (NTSYSAPI, NTAPI, NTKERNELAPI): Define to STDCALL;
92 Check if already defined.
93 * include/base.h (STDCALL, CDECL, CALLBACK, PASCAL): Move to ntos/types.h.
94
95 2002-11-13 Rick Gaiser <RickG81@Wanadoo.nl>
96
97 * drivers/bus/isapnp/isapnp.c (FindNextReadPort): Increment Port before
98 checking wether port address is in NE2000 address space range and returning
99 port address value.
100
101 2002-11-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
102
103 * drivers/bus/acpi/include/acpi.h: Include platform/types.h.
104 * drivers/bus/acpi/include/actypes.h: (UINT8, BOOLEAN, UCHAR, UINT16,
105 INT32, UINT32, UINT64): Disable, use the OS defined types instead.
106 * drivers/bus/acpi/include/platform/types.h: Remove all types,
107 include ntos.h instead.
108 * drivers/bus/acpi/ospm/include/acpisys.h: Don't include
109 platform/types.h.
110
111 2002-11-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
112
113 * include/defines.h: Fix warnings when bulding with gcc 3.3.
114 * include/ddk/status.h: Ditto.
115 * include/freetype/internal/ftdebug.h: Ditto.
116 * include/net/ndis.h: Ditto.
117 * lib/msafd/misc/helpers.c: Ditto.
118 * lib/user32/windows/defwnd.c: Ditto.
119 * lib/user32/windows/window.c: Ditto.
120 * ntoskrnl/cm/ntfunc.c: Ditto.
121 * ntoskrnl/cm/regfile.c: Ditto.
122 * ntoskrnl/cm/regobj.c: Ditto.
123 * ntoskrnl/dbg/errinfo.c: Ditto.
124 * ntoskrnl/ex/hashtab.c: Ditto.
125 * ntoskrnl/include/internal/mm.h: Ditto.
126 * ntoskrnl/io/irp.c: Ditto.
127 * ntoskrnl/kd/gdbstub.c: Ditto.
128 * ntoskrnl/ke/queue.c: Ditto.
129 * ntoskrnl/ke/sem.c: Ditto.
130 * ntoskrnl/ldr/resource.c: Ditto.
131 * ntoskrnl/mm/balance.c: Ditto.
132 * ntoskrnl/mm/freelist.c: Ditto.
133 * ntoskrnl/mm/mdl.c: Ditto.
134 * ntoskrnl/mm/npool.c: Ditto.
135 * ntoskrnl/mm/section.c: Ditto.
136 * ntoskrnl/rtl/error.c: Ditto.
137 * ntoskrnl/rtl/mem.c: Ditto.
138 * ntoskrnl/rtl/string.c: Ditto.
139 * ntoskrnl/rtl/time.c: Ditto.
140 * ntoskrnl/rtl/unicode.c: Ditto.
141 * ntoskrnl/rtl/wstring.c: Ditto.
142 * ntoskrnl/rtl/i386/exception.c: Ditto.
143 * subsys/win32k/freetype/src/base/ftinit.c: Ditto.
144
145 2002-11-03 Casper S. Hornstrup <chorns@users.sourceforge.net>
146
147 * apps/tests/lpc/lpcclt.c: Change LPC_MESSAGE_HEADER to LPC_MESSAGE.
148 * include/csrss/csrss.h: Ditto.
149 * include/lsass/lsass.h: Ditto.
150 * include/napi/dbg.h: Ditto.
151 * include/napi/lpc.h: Ditto.
152 * lib/kernel32/misc/console.c: Ditto.
153 * lib/ntdll/csr/lpc.c: Ditto.
154 * lib/ntdll/dbg/debug.c: Ditto.
155 * lib/secur32/lsa.c: Ditto.
156 * ntoskrnl/dbg/user.c: Ditto.
157 * ntoskrnl/include/internal/port.h: Ditto.
158 * ntoskrnl/lpc/connect.c: Ditto.
159 * ntoskrnl/lpc/reply.c: Ditto.
160 * ntoskrnl/ps/process.c: Ditto.
161 * subsys/csrss/api/conio.c: Ditto.
162 * subsys/csrss/api/process.c: Ditto.
163 * subsys/csrss/api/user.c: Ditto.
164
165 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
166
167 * lib/msvcrt/except/seh.s: Fix end-of-line formatting.
168 * lib/ntdll/rtl/i386/exception.c: Ditto.
169 * lib/ntdll/rtl/i386/except.s: Ditto.
170 * ntoskrnl/rtl/i386/except.s: Ditto.
171 * ntoskrnl/rtl/i386/seh.s: Ditto.
172
173 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
174
175 * lib/msvcrt/Makefile (OBJECTS_EXCEPT): Add except/seh.o; Remove
176 except/exhand3.o.
177 * lib/msvcrt/except/exhand2.c (MsvcrtDebug): New function.
178 * lib/msvcrt/except/unwind.c (PEXCEPTION_FRAME): Remove.
179 (_global_unwind2): Correct prototype.
180 * lib/ntdll/makefile (RTL_I386_OBJECTS, ARCH_OBJECTS): New groups.
181 (TARGET_OBJECTS): Add ARCH_OBJECTS group.
182 * lib/ntdll/rtl/exception.c (KiUserExceptionDispatcher): Set
183 NumberParameters in exception record.
184 (RtlRaiseStatus): Remove.
185 * ntoskrnl/Makefile (OBJECTS_RTL): Remove rtl/seh.o.
186 (OBJECTS_RTL_I386): Add rtl/i386/except.o, rtl/i386/exception.o, and
187 rtl/i386/seh.o.
188 * ntoskrnl/ke/catch.c (RtlpExecuteHandlerForException,
189 RtlpDumpExceptionRegistrations, RtlpDispatchException,
190 RtlpExecuteHandler, RtlpExceptionHandler, RtlpUnwindHandler,
191 RtlpExecuteHandlerForException, RtlpExecuteHandlerForUnwind,
192 RtlUnwind): Remove.
193 (RtlpDispatchException): Add prototype.
194 * ntoskrnl/ke/i386/usertrap.c (ExceptionTypeStrings): Remove.
195 * ntoskrnl/ps/create.c (PsCreateTeb): Mark end of exception
196 registration list.
197 * tools/helper.mk (TARGET_ASFLAGS): Add -g if DBG = 1.
198 * lib/msvcrt/except/exhand3.c: Remove.
199 * ntoskrnl/rtl/seh.c: Ditto.
200 * lib/msvcrt/except/seh.s: New file.
201 * lib/ntdll/rtl/i386/except.s: Ditto.
202 * lib/ntdll/rtl/i386/exception.c: Ditto.
203 * ntoskrnl/rtl/i386/except.s: Ditto.
204 * ntoskrnl/rtl/i386/exception.c: Ditto.
205 * ntoskrnl/rtl/i386/seh.s: Ditto.
206
207 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
208
209 * lib/kernel32/process/create.c (_except_handler): New function.
210 (BaseProcessStart): Ditto.
211 (KlCreateFirstThread): Return INVALID_HANDLE_VALUE on error; Call
212 BaseProcessStart() before process entry point.
213 * lib/kernel32/thread/thread.c (_except_handler): New function.
214 (ThreadStartup): Protect thread using SEH constructs.
215
216 2002-10-26 Casper S. Hornstrup <chorns@users.sourceforge.net>
217
218 * include/ddk/zw.h (NtProcessStartup): Use standard calling convention.
219 * subsys/csrss/csrss.c (NtProcessStartup): Ditto.
220 * subsys/smss/smss.c (NtProcessStartup): Ditto.
221 * subsys/system/autochk/autochk.c (NtProcessStartup): Ditto.
222 * subsys/system/usetup/usetup.c (NtProcessStartup): Ditto.
223
224 2002-10-25 Casper S. Hornstrup <chorns@users.sourceforge.net>
225
226 * apps/tests/tokentest/tokentest.c (ROS_ACE_HEADER): Move field
227 AccessMask ...
228 (ROS_ACE): ... here.
229 (DisplayDacl): Make pAce an ROS_ACE*; Use new path for AceType; Use
230 sizeof(ACE) instead of sizeof(ACE_HEADER).
231 * include/ntos/security.h (ACE_HEADER): Move field AccessMask ...
232 (ACE): ... here.
233 * lib/ntdll/rtl/acl.c: Use new path for AccessMask.
234 * ntoskrnl/se/semgr.c: Ditto.
235 * ntoskrnl/se/acl.c (SepInitDACLs): Use new path for AccessMask; Use
236 sizeof(ACE) instead of sizeof(ACE_HEADER).
237 * ntoskrnl/se/token.c (SepCreateSystemProcessToken): Use sizeof(ACE)
238 instead of sizeof(ACE_HEADER).
239
240 2002-10-20 Casper S. Hornstrup <chorns@users.sourceforge.net>
241
242 * include/napi/teb.h (RTL_USER_PROCESS_PARAMETERS): Use field names
243 as described in Windows NT/2000 Native API Reference.
244 * lib/kernel32/file/file.c: Use new field names.
245 * lib/kernel32/misc/console.c: Ditto.
246 * lib/kernel32/process/create.c: Ditto.
247 * lib/kernel32/process/proc.c: Ditto.
248 * lib/ntdll/rtl/path.c: Ditto.
249 * lib/ntdll/rtl/ppb.c: Ditto.
250 * lib/ntdll/rtl/process.c: Ditto.
251
252 2002-10-19 Casper S. Hornstrup <chorns@users.sourceforge.net>
253
254 * include/ntos.h: Include relevant files.
255 * include/internal/ke.h: Include files relative to
256 ntoskrnl/include.
257 * include/internal/arch/ke.h: Ditto.
258
259 2002-10-01 Casper S. Hornstrup <chorns@users.sourceforge.net>
260
261 * drivers/dd/floppy/floppy.c: Changed PAGESIZE to PAGE_SIZE.
262 * drivers/fs/cdfs/fcb.c: Ditto.
263 * drivers/fs/cdfs/fsctl.c: Ditto.
264 * drivers/fs/cdfs/rw.c: Ditto.
265 * drivers/fs/ext2/dir.c: Ditto.
266 * drivers/fs/ext2/inode.c: Ditto.
267 * drivers/fs/ext2/rw.c: Ditto.
268 * drivers/fs/ext2/super.c: Ditto.
269 * drivers/fs/minix/blockdev.c: Ditto.
270 * drivers/fs/minix/cache.c: Ditto.
271 * drivers/fs/minix/inode.c: Ditto.
272 * drivers/fs/minix/rw.c: Ditto.
273 * drivers/fs/ntfs/fcb.c: Ditto.
274 * drivers/fs/ntfs/ntfs.h: Ditto.
275 * drivers/fs/vfat/create.c: Ditto.
276 * drivers/fs/vfat/direntry.c: Ditto.
277 * drivers/fs/vfat/dirwr.c: Ditto.
278 * drivers/fs/vfat/fat.c: Ditto.
279 * drivers/fs/vfat/fcb.c: Ditto.
280 * drivers/fs/vfat/fsctl.c: Ditto.
281 * drivers/fs/vfat/rw.c: Ditto.
282 * drivers/storage/class2/class2.c: Ditto.
283 * drivers/storage/scsiport/scsiport.c: Ditto.
284 * hal/halx86/adapter.c: Ditto.
285 * hal/halx86/mp.c: Ditto.
286 * include/ddk/mmfuncs.h: Ditto.
287 * include/ddk/mmtypes.h: Ditto.
288 * include/ddk/i386/pagesize.h: Ditto.
289 * include/ntdll/pagesize.h: Ditto.
290 * lib/kernel32/process/create.c: Ditto.
291 * lib/kernel32/thread/thread.c: Ditto.
292 * lib/ntdll/ldr/utils.c: Ditto.
293 * lib/ntdll/rtl/env.c: Ditto.
294 * lib/ntdll/rtl/heap.c: Ditto.
295 * lib/ntdll/rtl/ppb.c: Ditto.
296 * lib/ntdll/rtl/process.c: Ditto.
297 * lib/ntdll/rtl/thread.c: Ditto.
298 * ntoskrnl/cc/copy.c: Ditto.
299 * ntoskrnl/cc/view.c: Ditto.
300 * ntoskrnl/ex/sysinfo.c: Ditto.
301 * ntoskrnl/include/internal/i386/mm.h: Ditto.
302 * ntoskrnl/io/mdl.c: Ditto.
303 * ntoskrnl/ke/kthread.c: Ditto.
304 * ntoskrnl/ke/i386/kernel.c: Ditto.
305 * ntoskrnl/ldr/init.c: Ditto.
306 * ntoskrnl/ldr/loader.c: Ditto.
307 * ntoskrnl/mm/anonmem.c: Ditto.
308 * ntoskrnl/mm/cont.c: Ditto.
309 * ntoskrnl/mm/freelist.c: Ditto.
310 * ntoskrnl/mm/iospace.c: Ditto.
311 * ntoskrnl/mm/kmap.c: Ditto.
312 * ntoskrnl/mm/marea.c: Ditto.
313 * ntoskrnl/mm/mdl.c: Ditto.
314 * ntoskrnl/mm/mminit.c: Ditto.
315 * ntoskrnl/mm/ncache.c: Ditto.
316 * ntoskrnl/mm/npool.c: Ditto.
317 * ntoskrnl/mm/pagefile.c: Ditto.
318 * ntoskrnl/mm/pageop.c: Ditto.
319 * ntoskrnl/mm/section.c: Ditto.
320 * ntoskrnl/mm/slab.c: Ditto.
321 * ntoskrnl/mm/i386/page.c: Ditto.
322 * ntoskrnl/ob/handle.c: Ditto.
323 * ntoskrnl/ps/create.c: Ditto.
324 * ntoskrnl/ps/process.c: Ditto.
325 * ntoskrnl/ps/w32call.c: Ditto.
326 * subsys/win32k/include/object.h: Ditto.
327
328 2002-10-01 Casper S. Hornstrup <chorns@users.sourceforge.net>
329
330 * lib/ntdll/string/ctype.c: Undefine __MSVCRT__ to not have mingw
331 runtime import _pctype.
332
333 2002-09-30 Casper S. Hornstrup <chorns@users.sourceforge.net>
334
335 * lib/user32/misc/desktop.c (string.h): Include.
336 * lib/user32/misc/resources.c: Ditto.
337 * lib/user32/misc/winhelp.c: Ditto.
338 * lib/user32/windows/accel.c: Ditto.
339 * lib/user32/windows/bitmap.c: Ditto.
340 * subsys/win32k/freetype/ctype.c: Undefine __MSVCRT__ and _pctype to not
341 have mingw runtime import _pctype.
342
343 2002-09-30 Casper S. Hornstrup <chorns@users.sourceforge.net>
344
345 * ntoskrnl/cc/view.c (alloca): Prototype.
346 * ntoskrnl/rtl/ctype.c: Undefine __MSVCRT__ to not have mingw runtime
347 import _pctype.
348
349 2002-08-26 David Welch <welch@computer2.darkstar.org>
350
351 * lib/gdi32/misc/dllmain.c (GdiDllInitialize): Don't initialize
352 win32k.sys for each process.
353 * subsys/csrss/init.c (CsrServerInitialization): Initialize
354 win32k.sys as well.
355
356 2002-08-26 David Welch <welch@computer2.darkstar.org>
357
358 * ntoskrnl/ps/process.c (NtCreateProcess): Reference the
359 parent process's handle using ExGetPreviousMode.
360
361 2002-08-26 David Welch <welch@computer2.darkstar.org>
362
363 * lib/user32/misc/dllmain.c (Init): Initialize gdi32 as well.
364
365 2002-08-26 David Welch <welch@computer2.darkstar.org>
366
367 * iface/addsys/genw32k.c (main, process): Generate a set of
368 stubs for csrss as well.
369
370 2002-08-26 David Welch <welch@computer2.darkstar.org>
371
372 * lib/kernel32/process/create.c (CreateProcessW): Initialize
373 all the members of the new process's PPB.
374
375 2002-08-17 David Welch <welch@computer2.darkstar.org>
376
377 * ntoskrnl/mm/rmap.c (MmWritePagePhysicalAddress): Ensure the
378 process isn't freed in the middle of our operations.
379
380 2002-08-17 David Welch <welch@computer2.darkstar.org>
381
382 * drivers/fs/vfat/finfo.c (VfatSetAllocationSizeInformation): Fixed.
383
384 2002-08-17 David Welch <welch@computer2.darkstar.org>
385
386 * ntoskrnl/ps/create.c (PiDeleteThread): Don't dereference
387 the thread's process while holding the thread list lock.
388
389 2002-08-17 David Welch <welch@computer2.darkstar.org>
390
391 * ntoskrnl/mm/section.c (MmMapViewOfSection): Check there is
392 enough space for all parts of an image before mapping it; if
393 there isn't enough space free at the preferred base address
394 then try to choose a different one.
395
396 2002-08-17 David Welch <welch@computer2.darkstar.org>
397
398 * ntoskrnl/mm/mpw.c (MmInitMpwThread): Run the MPW thread at
399 idle priority.
400
401 2002-08-17 David Welch <welch@computer2.darkstar.org>
402
403 * ntoskrnl/mm/kmap.c (ExUnmapPage, ExAllocatePageWithPhysPage,
404 MiFreeNonPagedPoolRegion, MiAllocNonPagedPoolRegion): Maintain
405 a hint of the next free page; makes running with whole page
406 allocation more bearable.
407
408 2002-08-17 David Welch <welch@computer2.darkstar.org>
409
410 * ntoskrnl/mm/anonmem.c (MmPageOutVirtualMemory): Show an
411 out of swap space message if we are out of swap space.
412 * ntoskrnl/mm/section.c (MmPageOutSectionView): Show an
413 out of swap space message if we are out of swap space.
414 * ntoskrnl/mm/pagefile.c (MmAllocSwapPage): Don't automatically
415 show an out of swap space message on failure.
416 * ntoskrnl/mm/pagefile.c (MmShowOutOfSpaceMessagePagingFile): New
417 function to notify the user that the pagefile is full.
418
419 2002-08-17 David Welch <welch@computer2.darkstar.org>
420
421 * drivers/lib/zlib/Makefile: Create a dummy zlib.sym
422
423 2002-08-16 David Welch <welch@computer2.darkstar.org>
424
425 * ntoskrnl/mm/npool.c (ExAllocateWholePageBlock): Converted
426 to use PHYSICAL_ADDRESS type for page address.
427
428 2002-08-16 David Welch <welch@computer2.darkstar.org>
429
430 * subsys/win32k/ntuser/class.c (W32kCreateClass): Corrected
431 typo when calculating the offset into the class object to
432 put the class name string.
433
434 2002-08-16 David Welch <welch@computer2.darkstar.org>
435
436 * ntoskrnl/ps/thread.c (PsDispatchThreadNoLock): Don't call
437 the reaper function directly; set an event to wake up a seperate
438 reaper thread.
439 * ntoskrnl/ps/thread.c (PsReaperThreadMain): New function that
440 waits for a notification and then calls PsReapThreads.
441 * ntoskrnl/ps/thread.c (PsInitThreadManagement): Create the
442 reaper thread.
443
444 2002-08-15 David Welch <welch@computer2.darkstar.org>
445
446 * lib/advapi32/misc/dllmain.c (DllMain): Removed debug message.
447
448 2002-08-14 David Welch <welch@computer2.darkstar.org>
449
450 * subsys/smss/init.c (SmPagingFilesQueryRoutine): If possible
451 take the size of the paging file from the registry.
452
453 2002-08-14 David Welch <welch@computer2.darkstar.org>
454
455 * ntoskrnl/mm/section.c (MmCreateDataFileSection): Extend the
456 section if necessary.
457
458 2002-08-14 David Welch <welch@computer2.darkstar.org>
459
460 * ntoskrnl/mm/pagefile.c (NtCreatePagingFile): Set the file
461 size using the FileAllocationInformation class.
462
463 2002-08-14 David Welch <welch@computer2.darkstar.org>
464
465 * ntoskrnl/mm/anonmem.c (MmWritePageVirtualMemory): Implemented
466 function to write anonymous memory pages to the swap file.
467 * ntoskrnl/mm/anonmem.c (MmFreeVirtualMemoryPage): Free any
468 swap page associated with the page.
469 * ntoskrnl/mm/mpw.c (MmWriteDirtyPages): New function to find
470 pages to write to disk.
471 * ntoskrnl/mm/mpw.c (MmMpwThreadMain): Implemented MPW functionality.
472 * ntoskrnl/mm/rmap.c (MmWritePagePhysicalAddress): New function
473 to write a single page back to disk.
474 * ntoskrnl/mm/rmap.c (MmSetCleanAllRmaps, MmSetDirtyAllRmaps,
475 MmIsDirtyPageRmap): New rmap function to support the MPW thread.
476 * ntoskrnl/mm/section.c (MmWritePageSectionView): Implemented
477 function to write back section pages.
478 * ntoskrnl/mm/section.c (MmFreeSectionPage): Free any swap
479 entry associated with the page; mark pages shared with
480 the cache as dirty if necessary.
481
482 2002-08-14 David Welch <welch@computer2.darkstar.org>
483
484 * ntoskrnl/ldr/loader.c (LdrPEProcessModule): Set name of
485 the module into the module text structure.
486
487 2002-08-14 David Welch <welch@computer2.darkstar.org>
488
489 * ntoskrnl/io/rw.c (NtReadFile, NtWriteFile): Use the correct
490 test for whether to wait for the completion of i/o.
491
492 2002-08-14 David Welch <welch@computer2.darkstar.org>
493
494 * ntoskrnl/cm/ntfunc.c (NtFlushKey): Request synchronous i/o
495 from NtOpenFile.
496 * ntoskrnl/cm/regfile (CmiInitPermanentRegistryHive): Request
497 synchronous i/o from NtCreateFile.
498 * ntoskrnl/dbg/kdb_stabs.c (LdrpLoadModuleSymbols): Request
499 synchronous i/o from NtOpenFile.
500 * ntoskrnl/ldr/sysdll.c (LdrpMapSystemDll): Request synchronous i/o
501 from NtOpenFile.
502
503 2002-08-14 David Welch <welch@computer2.darkstar.org>
504
505 * ntoskrnl/cc/view.c (CcRosSuggestFreeCacheSegment): Maintain the
506 correct reference count.
507
508 2002-08-14 David Welch <welch@computer2.darkstar.org>
509
510 * ntoskrnl/cc/view.c (CcRosFlushCacheSegment): New function to
511 write back a modified cache segment.
512 * ntoskrnl/cc/view.c (CcRosFlushDirtyPages): New function to
513 flush some dirty pages from the cache.
514 * ntoskrnl/cc/view.c (CcRosMarkDirtyCacheSegment): New function to
515 mark a cache segment modified while mapped into memory as dirty.
516
517 2002-08-14 David Welch <welch@computer2.darkstar.org>
518
519 * ntoskrnl/cc/pin.c (CcMapData, CcUnpinData, CcSetDirtyPinnedData):
520 Store the dirty status in the BCB; don't write back dirty data
521 immediately.
522
523 2002-08-14 David Welch <welch@computer2.darkstar.org>
524
525 * include/ntos/mm.h: Added SEC_XXXX defines from 'Windows NT/2000
526 Native API Reference'
527
528 2002-08-14 David Welch <welch@computer2.darkstar.org>
529
530 * drivers/fs/vfat/ea.c (VfatSetExtendedAttributes): Empty
531 placeholder for extended attribute functions.
532
533 2002-08-14 David Welch <welch@computer2.darkstar.org>
534
535 * drivers/fs/vfat/finfo.c (VfatSetAllocationSizeInformation):
536 Added function to set allocation size.
537
538 2002-08-14 David Welch <welch@computer2.darkstar.org>
539
540 * drivers/fs/vfat/fcb.c (vfatFCBInitializeCache): Renamed
541 to vfatFCBInitializeCacheFromVolume.
542 * drivers/fs/vfat/fcb.c (vfatMakeFCBFromDirEntry): Don't
543 initialise the cache with a file object representing the
544 volume unless the FCB is for a directory.
545
546 2002-08-14 David Welch <welch@computer2.darkstar.org>
547
548 * drivers/fs/vfat/create.c (VfatPagingFileCreate): Added a
549 new function for handling paging file only code.
550 * drivers/fs/vfat/create.c (VfatSupersedeFile): Added a
551 new function for doing a file supersede.
552 * drivers/fs/vfat/create.c (VfatCreateFile): Reformatted and
553 adjusted control flow. Set allocation size and extended attributes
554 on create.
555 * drivers/fs/vfat/create.c (VfatCreate): Removed goto.
556
557 2002-08-14 David Welch <welch@computer2.darkstar.org>
558
559 * drivers/fs/vfat/cleanup.c (VfatCleanupFile): Renamed
560 updEntry to VfatUpdateEntry.
561 * drivers/fs/vfat/close.c (VfatCloseFile): Renamed
562 updEntry to VfatUpdateEntry.
563 * drivers/fs/vfat/dirwr.c (updEntry): Renamed to
564 VfatUpdateEntry.
565 * drivers/fs/vfat/dirwr.c (addEntry): Renamed to
566 VfatAddEntry.
567
568 2002-08-14 David Welch <welch@computer2.darkstar.org>
569
570 * apps/tests/sectest/sectest.c (main): Fixed formatting.
571
572 2002-08-10 David Welch <welch@computer2.darkstar.org>
573
574 * ntoskrnl/mm/i386/page.c (MmSetPageProtect): Fixed
575 behaviour when called on the system address space.
576
577 2002-08-10 David Welch <welch@computer2.darkstar.org>
578
579 * ntoskrnl/mm/virtual.c (MmQueryAnonMem, MmProtectAnonMem,
580 NtAllocateVirtualMemory, NtFreeVirtualMemory): Renamed
581 segments to regions; moved region code to seperate file.
582 Implemented NtQueryVirtualMemory and NtProtectVirtualMemory
583 for anonymous memory areas.
584
585 2002-08-10 David Welch <welch@computer2.darkstar.org>
586
587 * ntoskrnl/mm/anonmem.c: Moved functions relating to
588 areas created with NtAllocateVirtualMemory to a
589 seperate file.
590
591 2002-08-10 David Welch <welch@computer2.darkstar.org>
592
593 * ntoskrnl/mm/section.c (MmQuerySectionView): Implemented
594 NtQueryVirtualMemory for section views.
595
596 2002-08-10 David Welch <welch@computer2.darkstar.org>
597
598 * ntoskrnl/mm/section.c (MmAccessFaultSectionView,
599 MmNotPresentFaultSectionView, MmProtectSectionView,
600 MmMapViewOfSegment, MmAlterViewAttributes): Implemented
601 NtProtectVirtualMemory for section views.
602
603 2002-08-10 David Welch <welch@computer2.darkstar.org>
604
605 * ntoskrnl/ke/main.c: Removed SEH test code.
606
607 2002-08-10 David Welch <welch@computer2.darkstar.org>
608
609 * lib/ntdll/ldr/utils.c (LdrFixupImports): Remove the readonly
610 protection from the IAT before writing to it.
611
612 2002-08-10 David Welch <welch@computer2.darkstar.org>
613
614 * lib/ntdll/ldr/utils.c (LdrAdjustDllName): Properly null terminate
615 the base name of the DLL.
616
617 2002-08-10 David Welch <welch@computer2.darkstar.org>
618
619 * ntoskrnl/ldr/loader.c (LdrPEProcessModule): Set the text segment
620 of modules to readonly after loading.
621
622 2002-08-09 David Welch <welch@computer2.darkstar.org>
623
624 * ntoskrnl/ps/create.c (NtCreateThread): Call PsSuspendThread
625 if NtCreateThread has CreateSuspended as TRUE.
626 * ntoskrnl/ps/suspend.c (PsSuspendThread, PsResumeThread,
627 PiSuspendThreadKernelRoutine): Fixed suspend functionality.
628
629 2002-08-09 David Welch <welch@computer2.darkstar.org>
630
631 * ntoskrnl/ke/i386/usertrap.c (print_user_address): Copy
632 the LDR variable from the right address.
633
634 2002-08-09 David Welch <welch@computer2.darkstar.org>
635
636 * ntoskrnl/ke/apc.c (KiDeliverNormalApc): Check for
637 kernel APCs pending on exit from the kernel.
638 * ntoskrnl/ke/apc.c (KiDeliverNormalApc, KiDeliverUserApc,
639 KiDeliverApc): Set the APC's inserted flag to FALSE after
640 removing it from the thread's queue.
641
642 2002-08-09 David Welch <welch@computer2.darkstar.org>
643
644 * lib/kernel32/thread/thread.c (ThreadStartup): Don't
645 call DLL entrypoints; this is done by LdrInitializeThunk.
646 * lib/ntdll/ldr/startup.c (LdrInitializeThunk): Call
647 DLLs in initialization order; take the loader lock before
648 calling.
649
650 2002-08-09 David Welch <welch@computer2.darkstar.org>
651
652 * apps/tests/thread/thread.c (main): Test suspend and
653 resume functionality.
654
655 2002-08-08 David Welch <welch@computer2.darkstar.org>
656
657 * ntoskrnl/mm/section (NtQuerySection): Return the
658 right result length.
659
660 2002-08-08 David Welch <welch@computer2.darkstar.org>
661
662 * ntoskrnl/ke/usertrap.c (print_user_address): Check for
663 a NULL LDR structure in the PEB; copy the LDR pointer in
664 safely.
665
666 2002-08-08 David Welch <welch@computer2.darkstar.org>
667
668 * ntoskrnl/ke/apc.c (KiDeliverUserApc): Deliver all present
669 APCs; release the APC spinlock while acccessing user memory.
670
671 2002-08-08 David Welch <welch@computer2.darkstar.org>
672
673 * include/internal/ps.h: Adjusted offsets into the ETHREAD
674 structure.
675 * include/internal/ps.h: Removed redundant members from the
676 KTHREAD structure.
677 * ntoskrnl/ke/kthread.c (KeInitializeThread): Removed
678 redundant members from the KTHREAD structure.
679
680 2002-08-08 David Welch <welch@computer2.darkstar.org>
681
682 * ntoskrnl/dbg/kdb.c (KdbEnterDebuggerException): New
683 function to enter the debugger on an exception.
684 * ntoskrnl/kd/kdebug.c (KdInitSystem): Initialize the
685 local kernel debugger if enabled.
686 * ntoskrnl/ke/catch.c (KiDispatchException): Enter the
687 local kernel debugger on an exception.
688
689 2002-08-08 David Welch <welch@computer2.darkstar.org>
690
691 * include/ntdll/ldr.h: Added definition for a DLL entrypoint.
692 * lib/kernel32/process/create.c (KlCreateFirstThread): Put
693 the argument to the NtProcessStartup function on the stack.
694 * lib/kernel32/process/create.c (KlInitPeb): Read the
695 base address of the new image from the PEB.
696 * lib/kernel32/process/create.c (CreateProcessW): Start the
697 first thread at the entrypoint of the new image.
698 * lib/ntdll/ldr/startup.c (LdrInitializeThunk): If the
699 function is called after the initial startup then just call the
700 entrypoints for the loaded DLLs with DLL_THREAD_ATTACH. Don't
701 call the entrypoint of the image.
702 * lib/ntdll/rtl/process.c (RtlpCreateFirstThread): Put the
703 argument to the NtProcessStartup function on the stack.
704 * lib/ntdll/rtl/process.c (KlInitPeb): Read the base address of
705 the new image from the PEB.
706 * lib/ntdll/rtl/process.c (RtlCreateUserProcess): Start the
707 first thread at the entrypoint of the new image.
708 * ntoskrnl/ke/i386/bthread.S (PsBeginThreadWithContextInternal):
709 Use the system call path to begin a usermode thread.
710 * ntoskrnl/ke/i386/thread.c (Ke386InitThreadWithContext): Convert
711 the supplied context into a trap frame.
712 * ntoskrnl/ldr/init.c (LdrLoadInitialProcess): Put the PEB argument
713 to the NtProcessStartup function on the new stack; start the
714 first thread at the entrypoint of the image.
715 * ntoskrnl/ps/create.c (NtCreateThread): Create an APC to call
716 LdrInitializeThunk in the context of a new thread before its
717 entrypoint.
718
719 2002-08-08 David Welch <welch@computer2.darkstar.org>
720
721 * drivers/fs/vfat/cleanup.c (VfatCleanupFile): Uninitialise
722 the cache on file cleanup.
723 * drivers/fs/vfat/fcb.c (vfatReleaseFcb): Don't uninitialise
724 the cache on file close.
725 * ntoskrnl/cc/copy.c: Renamed zero page global variable.
726 * ntoskrnl/cc/view.c: Added cache delete function.
727
728 2002-07-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
729
730 * rules.mak (RSYM): Define.
731 * include/ddk/zwtypes.h (DebugDbgLoadSymbols): Add to enum
732 _DEBUG_CONTROL_CODE.
733 * include/ntdll/ldr.h (LDR_SYMBOL_INFO, LdrpLoadUserModuleSymbols): Add.
734 (LdrLoadModuleSymbols): Remove.
735 * include/ntos/kdbgsyms.h (ST_FILENAME, ST_FUNCTION,
736 ST_LINENUMBER): Add.
737 (SYMBOL). Make Name an ANSI_STRING.
738 (IMAGE_SYMBOL_INFO, AreSymbolsParsed): Add.
739 * lib/ntdll/ldr/startup.c (LdrInitializeThunk): Call
740 LdrpLoadUserModuleSymbols() not LdrLoadModuleSymbols().
741 * lib/ntdll/ldr/utils.c (LdrLoadModuleSymbols): Rename to
742 LdrpLoadUserModuleSymbols.
743 (LdrpLoadUserModuleSymbols): Use DebugDbgLoadSymbols debug control code.
744 (LdrLoadDll): assert if out of memory.
745 (LdrLoadDll): Call
746 LdrpLoadUserModuleSymbols(), not LdrLoadModuleSymbols().
747 * lib/ntdll/string/ctype.c (_pctype): #undef.
748 * ntoskrnl/dbg/dbgctrl.c (NtSystemDebugControl): Call
749 LdrLoadUserModuleSymbols on DebugDbgLoadSymbols.
750 * ntoskrnl/include/internal/ldr.h (LdrGetAddressInformation): Add.
751 * ntoskrnl/include/internal/module.h (MODULE_TEXT_SECTION): Make SymbolInfo
752 an IMAGE_SYMBOL_INFO.
753 * ntoskrnl/ke/i386/exp.c (LdrGetAddressInformation): Add prototype.
754 (print_address): Change #ifdef KDBG to #ifdef DBG.
755 (KiDoubleFaultHandler, KiDumpTrapFrame, KeDumpStackFrames): Dump
756 one stack frame per line.
757 * ntoskrnl/ke/i386/multiboot.S: Create pagetables for more kernel
758 address space so larger modules can be passed from the boot loader.
759 * ntoskrnl/ke/i386/usertrap.c (LdrGetAddressInformation): Add prototype.
760 (print_user_address): Print symbols using LdrGetAddressInformation().
761 * ntoskrnl/ldr/loader.c (SYMBOLFILE_HEADER, IMAGE_SYMBOL_INFO_CACHE,
762 STAB_ENTRY, N_FUN, N_SLINE, N_SO, SymbolListHead): Add.
763 (TAG_SYM_BUF): Remove.
764 (LdrInitDebug): Remove unneeded code.
765 (LdrInit1): Prepare for loading symbols.
766 (LdrpReadLine, HexL, LdrpParseLine, LdrpLoadModuleSymbolsFromBuffer,
767 LdrpLoadUserModuleSymbolsFromBuffer): Remove.
768 (LdrpParseImageSymbols, LdrpGetFileName, LdrpGetFunctionName,
769 LdrpGetLineNumber, LdrGetAddressInformation, LdrpLookupUserSymbolInfo): Add.
770 (LdrpLoadModuleSymbols, LdrInitializeBootStartDriver): Change to use new
771 symbol structures.
772 (LdrLoadUserModuleSymbols): Cache symbol buffers.
773 (LdrUnloadModuleSymbols): Implement.
774 (LdrLoadModule, LdrUnloadModule): Change #ifdef KDBG to #ifdef DBG.
775 (LdrPEProcessModule): Split a line into two lines.
776 (LdrPEProcessModule): Setup for loading symbols.
777 * ntoskrnl/ldr/sysdll.c (LdrpMapSystemDll): Open with FILE_SHARE_READ.
778 * ntoskrnl/ps/process.c (PiFreeSymbols): Call LdrUnloadModuleSymbols() to
779 free symbols.
780 (PiDeleteProcess): Change #ifdef KDBG to #ifdef DBG.
781 * ntoskrnl/rtl/ctype.c (_pctype): #undef.
782 * ntoskrnl/rtl/string.c (strncpy): Terminate destination string.
783 * tools/Makefile (rsym): Add target.
784 * tools/helper.mk: Include config and use -g if DBG = 1.
785
786 2002-07-13 Casper S. Hornstrup <chorns@users.sourceforge.net>
787
788 * Makefile (install_before): Install system.hiv to correct location.
789
790 2002-07-04 David Welch <welch@computer2.darkstar.org>
791
792 * subsys/win32k/include/callback.h: Fixed callback argument
793 definitions.
794 * subsys/win32k/ntuser/winpos.c: Implemented some more of the windows
795 sizing/moving code.
796 * subsys/win32k/ntuser/painting.c: Implemented some more of the
797 window painting code.
798 * subsys/win32k/objects/coord.c: Implemented LPtoDP and DPtoLP.
799 * subsys/win32k/objects/region.c: Added stubs for some more
800 region functions.
801
802 2002-07-04 David Welch <welch@computer2.darkstar.org>
803
804 * ntoskrnl/ps/process.c (NtCreateProcess): Duplicate the
805 process desktop handle as well.
806
807 2002-07-04 David Welch <welch@computer2.darkstar.org>
808
809 * ntoskrnl/se/token.c: Don't call the ZwXXX variant of
810 system calls when in system context.
811
812 2002-07-04 David Welch <welch@computer2.darkstar.org>
813
814 * ntoskrnl/Makefile: Added file with MDA output code.
815 * ntoskrnl/kd/kdebug.c: Recognize MDA as a destination for
816 debug output.
817
818 2002-07-04 David Welch <welch@computer2.darkstar.org>
819
820 * lib/user32/windows/defwnd.c: Implemented some more of the
821 default window handler.
822
823 2002-07-04 David Welch <welch@computer2.darkstar.org>
824
825 * lib/user32/misc/stubs.c: Removed some stubs to seperate files.
826
827 2002-07-04 David Welch <welch@computer2.darkstar.org>
828
829 * lib/user32/user32.def: Export ScreenToClient otherwise we
830 get problems when code in user32 tries to call it.
831
832 2002-07-04 David Welch <welch@computer2.darkstar.org>
833
834 * include/win32k/region.h: Added prototypes for some missing
835 region functions.
836
837 2002-07-04 David Welch <welch@computer2.darkstar.org>
838
839 * include/win32k/ntuser.h: Added prototypes for some missing
840 NtUserXXX functions.
841
842 2002-07-04 David Welch <welch@computer2.darkstar.org>
843
844 * include/user32/wininternal.h: Added some constants for
845 private GetDCEx styles that WINE needs.
846
847 2002-07-04 David Welch <welch@computer2.darkstar.org>
848
849 * include/user32/callback.h: Fixed callbacks for messages with
850 parameters.
851
852 2002-07-04 David Welch <welch@computer2.darkstar.org>
853
854 * include/napi/win32.h (W32THREAD): Added pointer to the
855 thread's desktop.
856 * include/napi/win32.h (W32PROCESS): Removed handle table,
857 added a pointer to the process's window station.
858 * subsys/win32k/ntuser/guicheck.c (W32kGuiCheck): Reference
859 a process's window station on the first win32k system call. Reference
860 a thread's desktop on the first win32k system call.
861
862 2002-07-04 David Welch <welch@computer2.darkstar.org>
863
864 * include/messages.h: Added some missing WM_XXX constants.
865
866 2002-07-04 David Welch <welch@computer2.darkstar.org>
867
868 * drivers/dd/ide/makefile: Compiling with debugging messages
869 needs libgcc to be linked in.
870
871 2002-07-04 David Welch <welch@computer2.darkstar.org>
872
873 * iface/addsys/genw32k.c: Generate a variable with the
874 number of system calls.
875 * iface/native/genntdll.c: Generate a proper stack frame for
876 the user system call stubs.
877 * ntoskrnl/ke/i386/syscall.S: Generate a proper stack frame for
878 the handler for system calls.
879
880 2002-07-04 David Welch <welch@computer2.darkstar.org>
881
882 * Makefile: Build the GUI startup application.
883 * subsys/system/gstart/gstart.c: Application to start up
884 the GUI.
885
886 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
887
888 * tools/helper.mk: Make an import library a proper target
889 depending on the .def file.
890
891 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
892
893 * subsys/win32k/ntuser/window.c (NtUserGetWindowLong): Began
894 implementation.
895
896 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
897
898 * subsys/win32k/misc/object.c (ObmCreateHandle): Return the
899 correct handle value.
900
901 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
902
903 * subsys/win32k/makefile: Make win32k depend on the file containing
904 the service table.
905
906 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
907
908 * ntoskrnl/ke/i386/stkswitch.S (KeSwitchStackAndRet,
909 KePushAndStackSwitchAndSysRet): Push one value only.
910 * ntoskrnl/ps/w32call.c (NtCallbackReturn, NtW32Call): Moved
911 these functions to a new file. Restore the old trap frame after
912 returning from a callback.
913
914 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
915
916 * lib/user32/windows/message.c (CallWindowProcA, CallWindowProcW):
917 Convert message to Unicode or ASCII if necessary.
918
919 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
920
921 * include/user32/callback.h: Added WM_CREATE and WM_NCCALCSIZE
922 callbacks.
923 * lib/user32/windows/window.c (User32SendCREATEMessageForKernel,
924 User32SendNCCREATEMessageForKernel): Implemented.
925 * subsys/win32k/ntuser/callback.c (W32kSendCREATEMessage):
926 Implemented.
927
928 2002-06-18 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
929
930 * include/structs.h: Added Unicode and ASCII versions of
931 CREATESTRUCT.
932
933 2002-06-16 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
934
935 * tools/helper.mk: Make the install target depend on all the
936 files to be installed.
937
938 2002-06-16 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
939
940 * ntoskrnl/ps/thread.c (NtCallbackReturn): Set TSS.Esp0 to the
941 top of the old stack.
942 * ntoskrnl/ps/thread.c (NtW32Call): Set TSS.Esp0 to the top of
943 the new stack. Free the callback stack correctly. Don't copy
944 portion of the trap frame that doesn't exist in non-v86-mode
945 interrupts.
946 * ntoskrnl/ps/thread.c (PsFreeCallbackStack): New function to
947 free a stack allocated with PsAllocateCallbackStack.
948
949 2002-06-16 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
950
951 * drivers/dd/null/makefile: Commented out local LDFLAGS as
952 these cause bad relocations in the stripped image.
953
954 2002-06-16 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
955
956 * config: Corrected spelling error.
957
958 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
959
960 * subsys/system/winlogon/winlogon.c (WinMain): Check for
961 failure when creating a window system.
962
963 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
964
965 * ntoskrnl/ob/handle.c (ObDuplicateObject): Added this internal
966 function for duplicating objects.
967 * ntoskrnl/ps/process.c (NtCreateProcess): Duplicate the parent
968 process's window station to the child process.
969 * ntoskrnl/ps/process.c (PsInitProcessManagement): Initialize the
970 first process's window station.
971
972 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
973
974 * ntoskrnl/mm/marea.c (MmCreateMemoryArea): Initialise
975 page operation structure members.
976 * ntoskrnl/mm/pageop.c (MmReleasePageOp, MmGetPageOp): Increment
977 or decrement the page operation count in the memory area.
978 * ntoskrnl/mm/virtual.c (MmNotPresentFaultVirtualMemory,
979 MmPageOutVirtualMemory): Check for a deleted memory area before
980 handling the fault.
981 * ntoskrnl/mm/virtual.c (MmFreeVirtualMemory): Wait for all
982 page operations to finish before freeing the memory area.
983
984 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
985
986 * ntoskrnl/ke/i386/syscall.S (interrupt_handler2e): Corrected
987 test for previous mode, upper 16-bit of CS on the stack after an
988 interrupt are arbitary.
989
990 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
991
992 * lib/user32/misc/winsta.c: Cleaned up indentation.
993
994 2002-06-11 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
995
996 * apps/tests/winhello/winhello.c (WinMain, MainWndProc):
997 Cleaned up formatting, some more error checks.
998
999 2002-06-04 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
1000
1001 * ntoskrnl/mm/virtual.c (MmSecureVirtualMemory,
1002 MmUnsecureVirtualMemory, NtQueryVirtualMemory): Corrected indentation.
1003
1004 2002-06-04 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
1005
1006 * ntoskrnl/ke/i386/exp.c (KiDoubleFaultHandler): Print CR3
1007 correctly.
1008
1009 2002-06-04 David Welch <welch@whitehall1-5.seh.ox.ac.uk>
1010
1011 * ntoskrnl/include/internal/ps.h: Added KTHREAD_STACK_LIMIT definition.
1012 * ntoskrnl/ke/i386/tskswitch.S (Ki386ContextSwitch): Force all the
1013 pages of the kernel stack to be accessible from this process.
1014
1015 2002-06-04 David Welch <welch@cwcom.net>
1016
1017 * ntoskrnl/cc/view.c (ReadCacheSegmentChain): Changes to use
1018 PHYSICAL_ADDRESS type for physical addresses.
1019 * ntoskrnl/cc/copy.c (CcRosCreateCacheSegment): Changes to use
1020 PHYSICAL_ADDRESS type for physical addresses.
1021 * ntoskrnl/cc/copy.c (CcFreeCachePage): Changes to use
1022 PHYSICAL_ADDRESS type for physical addresses.
1023 * ntoskrnl/include/internal/mm.h: Changed prototypes to use
1024 PHYSICAL_ADDRESS type for physical addresses.
1025 * ntoskrnl/include/internal/ps.h (KPROCESS): Changed type of
1026 page directory base to PHYSICAL_ADDRESS.
1027 * ntoskrnl/include/internal/i386/mm.h: Changed prototypes to use
1028 PHYSICAL_ADDRESS type for physical addresses.
1029 * ntoskrnl/ke/kthread.c (KeFreeStackPage): Changes to use
1030 PHYSICAL_ADDRESS type for physical addresses.
1031 * ntoskrnl/ke/kthread.c (KeInitializeThread): Changes to use
1032 PHYSICAL_ADDRESS type for physical addresses.
1033 * ntoskrnl/ke/process.c (KeAttachProcess, KeDetachProcess): Changes
1034 to use PHYSICAL_ADDRESS type for physical addresses.
1035 * ntoskrnl/ke/kernel.c (PcrPages, KeApplicationProcessorInit): Changes
1036 to use PHYSICAL_ADDRESS type for physical addresses.
1037 * ntoskrnl/mm/balance.c (MM_ALLOCATION_REQUEST): Changes to use
1038 PHYSICAL_ADDRESS type for physical addresses.
1039 * ntoskrnl/mm/balance.c (MmReleasePageMemoryConsumer): Changes to use
1040 PHYSICAL_ADDRESS type for physical addresses.
1041 * ntoskrnl/mm/balance.c (MmRequestPageMemoryConsumer): Changes to use
1042 PHYSICAL_ADDRESS type for physical addresses.
1043 * ntoskrnl/mm/cont.c (MmFreeContinuousPage): Changes to use
1044 PHYSICAL_ADDRESS type for physical addresses.
1045 * ntoskrnl/mm/cont.c (MmAllocateContinuousAlignedMemory): Changes to
1046 use PHYSICAL_ADDRESS type for physical addresses.
1047 * ntoskrnl/mm/freelist.c (MmTransferOwnershipPage,
1048 MmGetLRUFirstUserPage, MmGetLRUNextUserPage, MmGetContinuousPages,
1049 MmInitializePageList, MmSetFlagsPage, MmSetRmapListHeadPage,
1050 MmGetRmapListHeadPage, MmMarkPageMapped, MmMarkPageUnmapped,
1051 MmGetFlagsPage, MmSetSavedSwapEntryPage, MmGetSavedSwapEntryPage,
1052 MmReferencePage, MmGetReferenceCountPage, MmIsUsablePage,
1053 MmDereferencePage, MmGetLockCountPage, MmLockPage, MmUnlockPage,
1054 MmAllocPage): Changes to use PHYSICAL_ADDRESS type for physical
1055 addresses.
1056 * ntoskrnl/mm/iospace.c (MmMapIoSpace): Changes to use
1057 PHYSICAL_ADDRESS type for physical addresses.
1058 * ntoskrnl/mm/kmap.c (ExAllocatePage, MiZeroPage, MiCopyFromUserPage,
1059 ExAllocatePageWithPhysPage): Changes to use PHYSICAL_ADDRESS type for
1060 physical addresses.
1061 * ntoskrnl/mm/marea.c (MmFreeMemoryArea): Changes to use
1062 PHYSICAL_ADDRESS type for physical addresses.
1063 * ntoskrnl/mm/mdl.c (MmUnlockPages, MmMapLockedPages,
1064 MmProbeAndLockPages): Changes to use PHYSICAL_ADDRESS type for
1065 physical addresses.
1066 * ntoskrnl/mm/mm.c (MmSharedDataPagePhysicalAddress,
1067 MmCommitPagedPoolAddress, MmNotPresentFault): Changes to use
1068 PHYSICAL_ADDRESS type for physical addresses.
1069 * ntoskrnl/mm/mminit.c (MmInitVirtualMemory): Changes to use
1070 PHYSICAL_ADDRESS type for physical addresses.
1071 * ntoskrnl/mm/ncache.c (MmAllocateNonCachedMemory,
1072 MmFreeNonCachedPage): Changes to use PHYSICAL_ADDRESS type for
1073 physical addresses.
1074 * ntoskrnl/mm/npool.c (grow_kernel_pool): Changes to use
1075 PHYSICAL_ADDRESS type for physical addresses.
1076 * ntoskrnl/mm/rmap.c (MmPageOutPhysicalAddress, MmInsertRmap,
1077 MmDeleteAllRmaps, MmDeleteRmap): Changes to use
1078 PHYSICAL_ADDRESS type for physical addresses.
1079 * ntoskrnl/mm/section.c (MiReadPage, MmNotPresentFaultSectionView,
1080 MmAccessFaultSectionView, MmPageOutDeleteMapping,
1081 MmPageOutSectionView, MmFreeSectionPage): Changes to use
1082 PHYSICAL_ADDRESS type for physical addresses.
1083 * ntoskrnl/mm/slab.c (ExGrowSlabCache): Changes to use
1084 PHYSICAL_ADDRESS type for physical address.
1085 * ntoskrnl/mm/virtual.c (MmPageOutVirtualMemory,
1086 MmNotPresentFaultVirtualMemory, MmFreeVirtualMemoryPage): Changes to
1087 use PHYSICAL_ADDRESS type for physical address.
1088 * ntoskrnl/mm/wset.c (MmTrimUserMemory): Changes to use
1089 PHYSICAL_ADDRESS type for physical address.
1090 * ntoskrnl/mm/page.c (Mmi386ReleaseMmInfo, MmCopyMmInfo,
1091 MmGetPhysicalAddressForProcess, MmCreateVirtualMapping,
1092 MmCreateVirtualMappingUnsafe, MmCreateVirtualMappingForProcess,
1093 MmDeleteVirtualMapping): Changes to use PHYSICAL_ADDRESS type for
1094 physical address.
1095 * ntoskrnl/ps/process (PsInitProcessManagment): Changes to use
1096 PHYSICAL_ADDRESS type for physical address.
1097 * ntoskrnl/ps/thread.c (PsAllocateCallbackStack): Changes to use
1098 PHYSICAL_ADDRESS type for physical address.
1099
1100 2002-06-04 David Welch <welch@cwcom.net>
1101
1102 * Lots of change since the ChangeLog was last updated.
1103
1104 2001-03-18 David Welch <welch@cwcom.net>
1105
1106 * ntoskrnl/ke/apc.c (KiDeliverApc): Bug fix.
1107 * ntoskrnl/ke/apc.c (KeInsertQueueApc): More comments.
1108 * ntoskrnl/ke/catch.c (KiDispatchException): Bug fix.
1109 * ntoskrnl/ke/timer.c (KeDelayExecutionThread): Don't use removed
1110 function KeAddTimeoutThread.
1111 * ntoskrnl/ke/timer.c (KeAddTimeoutThread): Removed.
1112 * ntoskrnl/ke/wait.c (KeWaitForSingleObject, KeWaitForMultipleObjects):
1113 Don't use KeAddTimeoutThread.
1114 * ntoskrnl/mm/freelist.c (MmAllocateContiguousAlignedMemory): Bug fix
1115 * ntoskrnl/mm/freelist.c (MmAllocatePage): Allocate from the top
1116 memory.
1117
1118 2001-03-17 David Welch <welch@cwcom.net>
1119
1120 * ntoskrnl/ke/catch.c (KiDispatchException): Implementation of
1121 exception handling, user-mode only.
1122
1123 2001-03-16 David Welch <welch@cwcom.net>
1124
1125 * include/ddk/zw.h: Corrected declarations of NtCreateProfile,
1126 NtQueryIntervalProfile, NtSetIntervalProfile.
1127 * include/ddk/zwtypes.h: Added definitions of KPROFILE_SOURCE.
1128 * ntoskrnl/include/internal/ke.h: Added the interrupted EIP as a
1129 parameter to KiUpdateSystemTime for profiling purposes.
1130 * ntoskrnl/include/internal/nt: Added declaration for profiling
1131 support initialization.
1132 * ntoskrnl/ke/timer.c (KiUpdateSystemTime, KeExpireTimers): Call
1133 the profiling code on a timer interrupt with the interrupt EIP.
1134 * ntoskrnl/ke/i386/irq.c (KiDispatchInterrupt): Pass the interrupted
1135 EIP to KiUpdateSystemTime.
1136 * ntoskrnl/mm/virtual.c (NtReadVirtualMemory, NtWriteVirtualMemory):
1137 Release the MDLs used properly.
1138 * ntoskrnl/nt/nt.c: Call the profiling support initialization.
1139 * ntoskrnl/nt/ntevent.c (NtCreateEvent): Don't try copying the
1140 ObjectAttributes parameter if it is NULL.
1141 * ntoskrnl/nt/profile.c: Implemented profiling.
1142
1143 2001-03-16 David Welch <welch@cwcom.net>
1144
1145 * ntoskrnl/include/internal/safe.h: Corrected typo.
1146 * ntoskrnl/nt/ntevent.c (NtCreateEvent, NtOpenEvent, NtQueryEvent):
1147 Corrected typos.
1148 * ntoskrnl/rtl/mem.c: Missing header file.
1149
1150 2001-03-16 David Welch <welch@cwcom.net>
1151
1152 * ntoskrnl/include/internal/safe.h: Add definitions for handling
1153 potentially unsafe pointers.
1154
1155 2001-03-16 David Welch <welch@cwcom.net>
1156
1157 * ntoskrnl/include/internal/mm.h: Removed MmSafeCopyToUser and
1158 MmSafeCopyFromUser as source files need these but don't want internal
1159 mm definitions.
1160 * ntoskrnl/nt/ntevent.c (NtCreateEvent, NtOpenEvent, NtPulseEvent,
1161 NtQueryEvent, NtResetEvent, NtSetEvent): Copy data to and from
1162 user mode safely.
1163 * ntoskrnl/rtl/mem.c (MmCopyToCaller, MmCopyFromCaller): Helper
1164 functions for copying data to and from potentially unsafe pointers.
1165
1166 2000-12-23 David Welch <welch@cwcom.net>
1167
1168 * All task switching is done in software.
1169 * Beginnings of v86 mode support.
1170
1171 2000-12-22 David Welch <welch@cwcom.net>
1172
1173 * ntoskrnl/ps/kill.c (PiTerminateProcessThreads): Drop
1174 PiThreadListLock before calling PsTerminateOtherThread
1175
1176 2000-12-16 David Welch <welch@cwcom.net>
1177
1178 * ntoskrnl/ex/fmutex.c (ExReleaseFastMutexUnsafe): Only set the
1179 fast mutex's owner back to NULL if it is being released
1180
1181 2000-12-10 David Welch <welch@cwcom.net>
1182
1183 * ntoskrnl/ke/i386/vm86_sup.S (Ki386RetToV86Mode): Added function
1184 to do the raw switch to v86 mode.
1185 * ntoskrnl/include/internal/vm86.h: Definitions for the v86 mode
1186 support.
1187
1188 2000-12-10 David Welch <welch@cwcom.net>
1189
1190 * ntoskrnl/ke/i386/trap.s (PsBeginThreadWithContextInternal): Moved
1191 to ntoskrnl/ke/i386/bswitch.S.
1192 * ntoskrnl/ke/i386/trap.s (interrupt_handler2e): Moved to
1193 ntoskrnl/ke/i386/syscall.S.
1194 * ntoskrnl/ke/i386/trap.s (old_interrupt_handler2e): Removed.
1195
1196 2000-12-04 David Welch <welch@cwcom.net>
1197
1198 * ntoskrnl/ke/i386/irq.c (KiInterruptDispatch): Record the last PC
1199 value for a rescheduled thread.
1200 * ntoskrnl/ke/i386/irqhand.s: Construct a primitive trap frame
1201 in interrupt handlers.
1202
1203 2000-08-30 David Welch <welch@cwcom.net>
1204
1205 * Added calibration of KeStallExecutionProcessor timing
1206 (code from linux 2.2.16).
1207
1208 * Corrected compilation bugs in user32 library.
1209
1210 * Corrected compilation bugs related to anonymous structs
1211 in ndis code.
1212
1213 * Pass command line to kernel from loadros.
1214
1215 * Corrected PIC mask calculation.
1216
1217 2000-05-27 David Welch <welch@cwcom.net>
1218
1219 * Fixed issue with closing non-existent or already closed
1220 handle.
1221
1222 2000-01-26 David Welch <welch@cwcom.net>
1223
1224 * ZwCreateProcess now maps ntdll rather than the user-mode
1225 code.
1226
1227 1999-09-06 David Welch <welch@cwcom.net>
1228
1229 * Implemented ZwOpenProcess.
1230
1231 * Partially implemented killing other threads (possible memory
1232 leaks).
1233
1234 * Made a start on a proper implemention of APCs (based on
1235 article in NT insider).
1236
1237 1998-12-08 David Welch <welch@cwcom.net>
1238
1239 * Corrected bug in shell (Read two keypresses and assumed they
1240 where the key going up and down respectively).
1241
1242 * Corrected race in dpc handling.
1243
1244 * Took out cleanup sections in ZwReadFile (now handled by the
1245 APC).
1246
1247 * Disabled broken code in kernel32.
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257