From 0f48860c6c82b7ea64357452ff61e7e031f7ca94 Mon Sep 17 00:00:00 2001 From: Casper Hornstrup Date: Sat, 19 Oct 2002 14:24:16 +0000 Subject: [PATCH] 2002-10-19 Casper S. Hornstrup * include/ntos.h: Include relevant files. * include/internal/ke.h: Include files relative to ntoskrnl/include. * include/internal/arch/ke.h: Ditto. svn path=/trunk/; revision=3638 --- reactos/ChangeLog | 2005 ++++++++++--------- reactos/include/ntos.h | 75 +- reactos/ntoskrnl/include/internal/arch/ke.h | 2 +- reactos/ntoskrnl/include/internal/ke.h | 2 +- 4 files changed, 1077 insertions(+), 1007 deletions(-) diff --git a/reactos/ChangeLog b/reactos/ChangeLog index dd9759460c0..a39be58aaf3 100644 --- a/reactos/ChangeLog +++ b/reactos/ChangeLog @@ -1,999 +1,1006 @@ -2002-10-01 Casper S. Hornstrup - - * drivers/dd/floppy/floppy.c: Changed PAGESIZE to PAGE_SIZE. - * drivers/fs/cdfs/fcb.c: Ditto. - * drivers/fs/cdfs/fsctl.c: Ditto. - * drivers/fs/cdfs/rw.c: Ditto. - * drivers/fs/ext2/dir.c: Ditto. - * drivers/fs/ext2/inode.c: Ditto. - * drivers/fs/ext2/rw.c: Ditto. - * drivers/fs/ext2/super.c: Ditto. - * drivers/fs/minix/blockdev.c: Ditto. - * drivers/fs/minix/cache.c: Ditto. - * drivers/fs/minix/inode.c: Ditto. - * drivers/fs/minix/rw.c: Ditto. - * drivers/fs/ntfs/fcb.c: Ditto. - * drivers/fs/ntfs/ntfs.h: Ditto. - * drivers/fs/vfat/create.c: Ditto. - * drivers/fs/vfat/direntry.c: Ditto. - * drivers/fs/vfat/dirwr.c: Ditto. - * drivers/fs/vfat/fat.c: Ditto. - * drivers/fs/vfat/fcb.c: Ditto. - * drivers/fs/vfat/fsctl.c: Ditto. - * drivers/fs/vfat/rw.c: Ditto. - * drivers/storage/class2/class2.c: Ditto. - * drivers/storage/scsiport/scsiport.c: Ditto. - * hal/halx86/adapter.c: Ditto. - * hal/halx86/mp.c: Ditto. - * include/ddk/mmfuncs.h: Ditto. - * include/ddk/mmtypes.h: Ditto. - * include/ddk/i386/pagesize.h: Ditto. - * include/ntdll/pagesize.h: Ditto. - * lib/kernel32/process/create.c: Ditto. - * lib/kernel32/thread/thread.c: Ditto. - * lib/ntdll/ldr/utils.c: Ditto. - * lib/ntdll/rtl/env.c: Ditto. - * lib/ntdll/rtl/heap.c: Ditto. - * lib/ntdll/rtl/ppb.c: Ditto. - * lib/ntdll/rtl/process.c: Ditto. - * lib/ntdll/rtl/thread.c: Ditto. - * ntoskrnl/cc/copy.c: Ditto. - * ntoskrnl/cc/view.c: Ditto. - * ntoskrnl/ex/sysinfo.c: Ditto. - * ntoskrnl/include/internal/i386/mm.h: Ditto. - * ntoskrnl/io/mdl.c: Ditto. - * ntoskrnl/ke/kthread.c: Ditto. - * ntoskrnl/ke/i386/kernel.c: Ditto. - * ntoskrnl/ldr/init.c: Ditto. - * ntoskrnl/ldr/loader.c: Ditto. - * ntoskrnl/mm/anonmem.c: Ditto. - * ntoskrnl/mm/cont.c: Ditto. - * ntoskrnl/mm/freelist.c: Ditto. - * ntoskrnl/mm/iospace.c: Ditto. - * ntoskrnl/mm/kmap.c: Ditto. - * ntoskrnl/mm/marea.c: Ditto. - * ntoskrnl/mm/mdl.c: Ditto. - * ntoskrnl/mm/mminit.c: Ditto. - * ntoskrnl/mm/ncache.c: Ditto. - * ntoskrnl/mm/npool.c: Ditto. - * ntoskrnl/mm/pagefile.c: Ditto. - * ntoskrnl/mm/pageop.c: Ditto. - * ntoskrnl/mm/section.c: Ditto. - * ntoskrnl/mm/slab.c: Ditto. - * ntoskrnl/mm/i386/page.c: Ditto. - * ntoskrnl/ob/handle.c: Ditto. - * ntoskrnl/ps/create.c: Ditto. - * ntoskrnl/ps/process.c: Ditto. - * ntoskrnl/ps/w32call.c: Ditto. - * subsys/win32k/include/object.h: Ditto. - -2002-10-01 Casper S. Hornstrup - - * lib/ntdll/string/ctype.c: Undefine __MSVCRT__ to not have mingw - runtime import _pctype. - -2002-09-30 Casper S. Hornstrup - - * lib/user32/misc/desktop.c (string.h): Include. - * lib/user32/misc/resources.c: Ditto. - * lib/user32/misc/winhelp.c: Ditto. - * lib/user32/windows/accel.c: Ditto. - * lib/user32/windows/bitmap.c: Ditto. - * subsys/win32k/freetype/ctype.c: Undefine __MSVCRT__ and _pctype to not - have mingw runtime import _pctype. - -2002-09-30 Casper S. Hornstrup - - * ntoskrnl/cc/view.c (alloca): Prototype. - * ntoskrnl/rtl/ctype.c: Undefine __MSVCRT__ to not have mingw runtime - import _pctype. - -2002-08-26 David Welch - - * lib/gdi32/misc/dllmain.c (GdiDllInitialize): Don't initialize - win32k.sys for each process. - * subsys/csrss/init.c (CsrServerInitialization): Initialize - win32k.sys as well. - -2002-08-26 David Welch - - * ntoskrnl/ps/process.c (NtCreateProcess): Reference the - parent process's handle using ExGetPreviousMode. - -2002-08-26 David Welch - - * lib/user32/misc/dllmain.c (Init): Initialize gdi32 as well. - -2002-08-26 David Welch - - * iface/addsys/genw32k.c (main, process): Generate a set of - stubs for csrss as well. - -2002-08-26 David Welch - - * lib/kernel32/process/create.c (CreateProcessW): Initialize - all the members of the new process's PPB. - -2002-08-17 David Welch - - * ntoskrnl/mm/rmap.c (MmWritePagePhysicalAddress): Ensure the - process isn't freed in the middle of our operations. - -2002-08-17 David Welch - - * drivers/fs/vfat/finfo.c (VfatSetAllocationSizeInformation): Fixed. - -2002-08-17 David Welch - - * ntoskrnl/ps/create.c (PiDeleteThread): Don't dereference - the thread's process while holding the thread list lock. - -2002-08-17 David Welch - - * ntoskrnl/mm/section.c (MmMapViewOfSection): Check there is - enough space for all parts of an image before mapping it; if - there isn't enough space free at the preferred base address - then try to choose a different one. - -2002-08-17 David Welch - - * ntoskrnl/mm/mpw.c (MmInitMpwThread): Run the MPW thread at - idle priority. - -2002-08-17 David Welch - - * ntoskrnl/mm/kmap.c (ExUnmapPage, ExAllocatePageWithPhysPage, - MiFreeNonPagedPoolRegion, MiAllocNonPagedPoolRegion): Maintain - a hint of the next free page; makes running with whole page - allocation more bearable. - -2002-08-17 David Welch - - * ntoskrnl/mm/anonmem.c (MmPageOutVirtualMemory): Show an - out of swap space message if we are out of swap space. - * ntoskrnl/mm/section.c (MmPageOutSectionView): Show an - out of swap space message if we are out of swap space. - * ntoskrnl/mm/pagefile.c (MmAllocSwapPage): Don't automatically - show an out of swap space message on failure. - * ntoskrnl/mm/pagefile.c (MmShowOutOfSpaceMessagePagingFile): New - function to notify the user that the pagefile is full. - -2002-08-17 David Welch - - * drivers/lib/zlib/Makefile: Create a dummy zlib.sym - -2002-08-16 David Welch - - * ntoskrnl/mm/npool.c (ExAllocateWholePageBlock): Converted - to use PHYSICAL_ADDRESS type for page address. - -2002-08-16 David Welch - - * subsys/win32k/ntuser/class.c (W32kCreateClass): Corrected - typo when calculating the offset into the class object to - put the class name string. - -2002-08-16 David Welch - - * ntoskrnl/ps/thread.c (PsDispatchThreadNoLock): Don't call - the reaper function directly; set an event to wake up a seperate - reaper thread. - * ntoskrnl/ps/thread.c (PsReaperThreadMain): New function that - waits for a notification and then calls PsReapThreads. - * ntoskrnl/ps/thread.c (PsInitThreadManagement): Create the - reaper thread. - -2002-08-15 David Welch - - * lib/advapi32/misc/dllmain.c (DllMain): Removed debug message. - -2002-08-14 David Welch - - * subsys/smss/init.c (SmPagingFilesQueryRoutine): If possible - take the size of the paging file from the registry. - -2002-08-14 David Welch - - * ntoskrnl/mm/section.c (MmCreateDataFileSection): Extend the - section if necessary. - -2002-08-14 David Welch - - * ntoskrnl/mm/pagefile.c (NtCreatePagingFile): Set the file - size using the FileAllocationInformation class. - -2002-08-14 David Welch - - * ntoskrnl/mm/anonmem.c (MmWritePageVirtualMemory): Implemented - function to write anonymous memory pages to the swap file. - * ntoskrnl/mm/anonmem.c (MmFreeVirtualMemoryPage): Free any - swap page associated with the page. - * ntoskrnl/mm/mpw.c (MmWriteDirtyPages): New function to find - pages to write to disk. - * ntoskrnl/mm/mpw.c (MmMpwThreadMain): Implemented MPW functionality. - * ntoskrnl/mm/rmap.c (MmWritePagePhysicalAddress): New function - to write a single page back to disk. - * ntoskrnl/mm/rmap.c (MmSetCleanAllRmaps, MmSetDirtyAllRmaps, - MmIsDirtyPageRmap): New rmap function to support the MPW thread. - * ntoskrnl/mm/section.c (MmWritePageSectionView): Implemented - function to write back section pages. - * ntoskrnl/mm/section.c (MmFreeSectionPage): Free any swap - entry associated with the page; mark pages shared with - the cache as dirty if necessary. - -2002-08-14 David Welch - - * ntoskrnl/ldr/loader.c (LdrPEProcessModule): Set name of - the module into the module text structure. - -2002-08-14 David Welch - - * ntoskrnl/io/rw.c (NtReadFile, NtWriteFile): Use the correct - test for whether to wait for the completion of i/o. - -2002-08-14 David Welch - - * ntoskrnl/cm/ntfunc.c (NtFlushKey): Request synchronous i/o - from NtOpenFile. - * ntoskrnl/cm/regfile (CmiInitPermanentRegistryHive): Request - synchronous i/o from NtCreateFile. - * ntoskrnl/dbg/kdb_stabs.c (LdrpLoadModuleSymbols): Request - synchronous i/o from NtOpenFile. - * ntoskrnl/ldr/sysdll.c (LdrpMapSystemDll): Request synchronous i/o - from NtOpenFile. - -2002-08-14 David Welch - - * ntoskrnl/cc/view.c (CcRosSuggestFreeCacheSegment): Maintain the - correct reference count. - -2002-08-14 David Welch - - * ntoskrnl/cc/view.c (CcRosFlushCacheSegment): New function to - write back a modified cache segment. - * ntoskrnl/cc/view.c (CcRosFlushDirtyPages): New function to - flush some dirty pages from the cache. - * ntoskrnl/cc/view.c (CcRosMarkDirtyCacheSegment): New function to - mark a cache segment modified while mapped into memory as dirty. - -2002-08-14 David Welch - - * ntoskrnl/cc/pin.c (CcMapData, CcUnpinData, CcSetDirtyPinnedData): - Store the dirty status in the BCB; don't write back dirty data - immediately. - -2002-08-14 David Welch - - * include/ntos/mm.h: Added SEC_XXXX defines from 'Windows NT/2000 - Native API Reference' - -2002-08-14 David Welch - - * drivers/fs/vfat/ea.c (VfatSetExtendedAttributes): Empty - placeholder for extended attribute functions. - -2002-08-14 David Welch - - * drivers/fs/vfat/finfo.c (VfatSetAllocationSizeInformation): - Added function to set allocation size. - -2002-08-14 David Welch - - * drivers/fs/vfat/fcb.c (vfatFCBInitializeCache): Renamed - to vfatFCBInitializeCacheFromVolume. - * drivers/fs/vfat/fcb.c (vfatMakeFCBFromDirEntry): Don't - initialise the cache with a file object representing the - volume unless the FCB is for a directory. - -2002-08-14 David Welch - - * drivers/fs/vfat/create.c (VfatPagingFileCreate): Added a - new function for handling paging file only code. - * drivers/fs/vfat/create.c (VfatSupersedeFile): Added a - new function for doing a file supersede. - * drivers/fs/vfat/create.c (VfatCreateFile): Reformatted and - adjusted control flow. Set allocation size and extended attributes - on create. - * drivers/fs/vfat/create.c (VfatCreate): Removed goto. - -2002-08-14 David Welch - - * drivers/fs/vfat/cleanup.c (VfatCleanupFile): Renamed - updEntry to VfatUpdateEntry. - * drivers/fs/vfat/close.c (VfatCloseFile): Renamed - updEntry to VfatUpdateEntry. - * drivers/fs/vfat/dirwr.c (updEntry): Renamed to - VfatUpdateEntry. - * drivers/fs/vfat/dirwr.c (addEntry): Renamed to - VfatAddEntry. - -2002-08-14 David Welch - - * apps/tests/sectest/sectest.c (main): Fixed formatting. - -2002-08-10 David Welch - - * ntoskrnl/mm/i386/page.c (MmSetPageProtect): Fixed - behaviour when called on the system address space. - -2002-08-10 David Welch - - * ntoskrnl/mm/virtual.c (MmQueryAnonMem, MmProtectAnonMem, - NtAllocateVirtualMemory, NtFreeVirtualMemory): Renamed - segments to regions; moved region code to seperate file. - Implemented NtQueryVirtualMemory and NtProtectVirtualMemory - for anonymous memory areas. - -2002-08-10 David Welch - - * ntoskrnl/mm/anonmem.c: Moved functions relating to - areas created with NtAllocateVirtualMemory to a - seperate file. - -2002-08-10 David Welch - - * ntoskrnl/mm/section.c (MmQuerySectionView): Implemented - NtQueryVirtualMemory for section views. - -2002-08-10 David Welch - - * ntoskrnl/mm/section.c (MmAccessFaultSectionView, - MmNotPresentFaultSectionView, MmProtectSectionView, - MmMapViewOfSegment, MmAlterViewAttributes): Implemented - NtProtectVirtualMemory for section views. - -2002-08-10 David Welch - - * ntoskrnl/ke/main.c: Removed SEH test code. - -2002-08-10 David Welch - - * lib/ntdll/ldr/utils.c (LdrFixupImports): Remove the readonly - protection from the IAT before writing to it. - -2002-08-10 David Welch - - * lib/ntdll/ldr/utils.c (LdrAdjustDllName): Properly null terminate - the base name of the DLL. - -2002-08-10 David Welch - - * ntoskrnl/ldr/loader.c (LdrPEProcessModule): Set the text segment - of modules to readonly after loading. - -2002-08-09 David Welch - - * ntoskrnl/ps/create.c (NtCreateThread): Call PsSuspendThread - if NtCreateThread has CreateSuspended as TRUE. - * ntoskrnl/ps/suspend.c (PsSuspendThread, PsResumeThread, - PiSuspendThreadKernelRoutine): Fixed suspend functionality. - -2002-08-09 David Welch - - * ntoskrnl/ke/i386/usertrap.c (print_user_address): Copy - the LDR variable from the right address. - -2002-08-09 David Welch - - * ntoskrnl/ke/apc.c (KiDeliverNormalApc): Check for - kernel APCs pending on exit from the kernel. - * ntoskrnl/ke/apc.c (KiDeliverNormalApc, KiDeliverUserApc, - KiDeliverApc): Set the APC's inserted flag to FALSE after - removing it from the thread's queue. - -2002-08-09 David Welch - - * lib/kernel32/thread/thread.c (ThreadStartup): Don't - call DLL entrypoints; this is done by LdrInitializeThunk. - * lib/ntdll/ldr/startup.c (LdrInitializeThunk): Call - DLLs in initialization order; take the loader lock before - calling. - -2002-08-09 David Welch - - * apps/tests/thread/thread.c (main): Test suspend and - resume functionality. - -2002-08-08 David Welch - - * ntoskrnl/mm/section (NtQuerySection): Return the - right result length. - -2002-08-08 David Welch - - * ntoskrnl/ke/usertrap.c (print_user_address): Check for - a NULL LDR structure in the PEB; copy the LDR pointer in - safely. - -2002-08-08 David Welch - - * ntoskrnl/ke/apc.c (KiDeliverUserApc): Deliver all present - APCs; release the APC spinlock while acccessing user memory. - -2002-08-08 David Welch - - * include/internal/ps.h: Adjusted offsets into the ETHREAD - structure. - * include/internal/ps.h: Removed redundant members from the - KTHREAD structure. - * ntoskrnl/ke/kthread.c (KeInitializeThread): Removed - redundant members from the KTHREAD structure. - -2002-08-08 David Welch - - * ntoskrnl/dbg/kdb.c (KdbEnterDebuggerException): New - function to enter the debugger on an exception. - * ntoskrnl/kd/kdebug.c (KdInitSystem): Initialize the - local kernel debugger if enabled. - * ntoskrnl/ke/catch.c (KiDispatchException): Enter the - local kernel debugger on an exception. - -2002-08-08 David Welch - - * include/ntdll/ldr.h: Added definition for a DLL entrypoint. - * lib/kernel32/process/create.c (KlCreateFirstThread): Put - the argument to the NtProcessStartup function on the stack. - * lib/kernel32/process/create.c (KlInitPeb): Read the - base address of the new image from the PEB. - * lib/kernel32/process/create.c (CreateProcessW): Start the - first thread at the entrypoint of the new image. - * lib/ntdll/ldr/startup.c (LdrInitializeThunk): If the - function is called after the initial startup then just call the - entrypoints for the loaded DLLs with DLL_THREAD_ATTACH. Don't - call the entrypoint of the image. - * lib/ntdll/rtl/process.c (RtlpCreateFirstThread): Put the - argument to the NtProcessStartup function on the stack. - * lib/ntdll/rtl/process.c (KlInitPeb): Read the base address of - the new image from the PEB. - * lib/ntdll/rtl/process.c (RtlCreateUserProcess): Start the - first thread at the entrypoint of the new image. - * ntoskrnl/ke/i386/bthread.S (PsBeginThreadWithContextInternal): - Use the system call path to begin a usermode thread. - * ntoskrnl/ke/i386/thread.c (Ke386InitThreadWithContext): Convert - the supplied context into a trap frame. - * ntoskrnl/ldr/init.c (LdrLoadInitialProcess): Put the PEB argument - to the NtProcessStartup function on the new stack; start the - first thread at the entrypoint of the image. - * ntoskrnl/ps/create.c (NtCreateThread): Create an APC to call - LdrInitializeThunk in the context of a new thread before its - entrypoint. - -2002-08-08 David Welch - - * drivers/fs/vfat/cleanup.c (VfatCleanupFile): Uninitialise - the cache on file cleanup. - * drivers/fs/vfat/fcb.c (vfatReleaseFcb): Don't uninitialise - the cache on file close. - * ntoskrnl/cc/copy.c: Renamed zero page global variable. - * ntoskrnl/cc/view.c: Added cache delete function. - -2002-07-13 Casper S. Hornstrup - - * rules.mak (RSYM): Define. - * include/ddk/zwtypes.h (DebugDbgLoadSymbols): Add to enum - _DEBUG_CONTROL_CODE. - * include/ntdll/ldr.h (LDR_SYMBOL_INFO, LdrpLoadUserModuleSymbols): Add. - (LdrLoadModuleSymbols): Remove. - * include/ntos/kdbgsyms.h (ST_FILENAME, ST_FUNCTION, - ST_LINENUMBER): Add. - (SYMBOL). Make Name an ANSI_STRING. - (IMAGE_SYMBOL_INFO, AreSymbolsParsed): Add. - * lib/ntdll/ldr/startup.c (LdrInitializeThunk): Call - LdrpLoadUserModuleSymbols() not LdrLoadModuleSymbols(). - * lib/ntdll/ldr/utils.c (LdrLoadModuleSymbols): Rename to - LdrpLoadUserModuleSymbols. - (LdrpLoadUserModuleSymbols): Use DebugDbgLoadSymbols debug control code. - (LdrLoadDll): assert if out of memory. - (LdrLoadDll): Call - LdrpLoadUserModuleSymbols(), not LdrLoadModuleSymbols(). - * lib/ntdll/string/ctype.c (_pctype): #undef. - * ntoskrnl/dbg/dbgctrl.c (NtSystemDebugControl): Call - LdrLoadUserModuleSymbols on DebugDbgLoadSymbols. - * ntoskrnl/include/internal/ldr.h (LdrGetAddressInformation): Add. - * ntoskrnl/include/internal/module.h (MODULE_TEXT_SECTION): Make SymbolInfo - an IMAGE_SYMBOL_INFO. - * ntoskrnl/ke/i386/exp.c (LdrGetAddressInformation): Add prototype. - (print_address): Change #ifdef KDBG to #ifdef DBG. - (KiDoubleFaultHandler, KiDumpTrapFrame, KeDumpStackFrames): Dump - one stack frame per line. - * ntoskrnl/ke/i386/multiboot.S: Create pagetables for more kernel - address space so larger modules can be passed from the boot loader. - * ntoskrnl/ke/i386/usertrap.c (LdrGetAddressInformation): Add prototype. - (print_user_address): Print symbols using LdrGetAddressInformation(). - * ntoskrnl/ldr/loader.c (SYMBOLFILE_HEADER, IMAGE_SYMBOL_INFO_CACHE, - STAB_ENTRY, N_FUN, N_SLINE, N_SO, SymbolListHead): Add. - (TAG_SYM_BUF): Remove. - (LdrInitDebug): Remove unneeded code. - (LdrInit1): Prepare for loading symbols. - (LdrpReadLine, HexL, LdrpParseLine, LdrpLoadModuleSymbolsFromBuffer, - LdrpLoadUserModuleSymbolsFromBuffer): Remove. - (LdrpParseImageSymbols, LdrpGetFileName, LdrpGetFunctionName, - LdrpGetLineNumber, LdrGetAddressInformation, LdrpLookupUserSymbolInfo): Add. - (LdrpLoadModuleSymbols, LdrInitializeBootStartDriver): Change to use new - symbol structures. - (LdrLoadUserModuleSymbols): Cache symbol buffers. - (LdrUnloadModuleSymbols): Implement. - (LdrLoadModule, LdrUnloadModule): Change #ifdef KDBG to #ifdef DBG. - (LdrPEProcessModule): Split a line into two lines. - (LdrPEProcessModule): Setup for loading symbols. - * ntoskrnl/ldr/sysdll.c (LdrpMapSystemDll): Open with FILE_SHARE_READ. - * ntoskrnl/ps/process.c (PiFreeSymbols): Call LdrUnloadModuleSymbols() to - free symbols. - (PiDeleteProcess): Change #ifdef KDBG to #ifdef DBG. - * ntoskrnl/rtl/ctype.c (_pctype): #undef. - * ntoskrnl/rtl/string.c (strncpy): Terminate destination string. - * tools/Makefile (rsym): Add target. - * tools/helper.mk: Include config and use -g if DBG = 1. - -2002-07-13 Casper S. Hornstrup - - * Makefile (install_before): Install system.hiv to correct location. - -2002-07-04 David Welch - - * subsys/win32k/include/callback.h: Fixed callback argument - definitions. - * subsys/win32k/ntuser/winpos.c: Implemented some more of the windows - sizing/moving code. - * subsys/win32k/ntuser/painting.c: Implemented some more of the - window painting code. - * subsys/win32k/objects/coord.c: Implemented LPtoDP and DPtoLP. - * subsys/win32k/objects/region.c: Added stubs for some more - region functions. - -2002-07-04 David Welch - - * ntoskrnl/ps/process.c (NtCreateProcess): Duplicate the - process desktop handle as well. - -2002-07-04 David Welch - - * ntoskrnl/se/token.c: Don't call the ZwXXX variant of - system calls when in system context. - -2002-07-04 David Welch - - * ntoskrnl/Makefile: Added file with MDA output code. - * ntoskrnl/kd/kdebug.c: Recognize MDA as a destination for - debug output. - -2002-07-04 David Welch - - * lib/user32/windows/defwnd.c: Implemented some more of the - default window handler. - -2002-07-04 David Welch - - * lib/user32/misc/stubs.c: Removed some stubs to seperate files. - -2002-07-04 David Welch - - * lib/user32/user32.def: Export ScreenToClient otherwise we - get problems when code in user32 tries to call it. - -2002-07-04 David Welch - - * include/win32k/region.h: Added prototypes for some missing - region functions. - -2002-07-04 David Welch - - * include/win32k/ntuser.h: Added prototypes for some missing - NtUserXXX functions. - -2002-07-04 David Welch - - * include/user32/wininternal.h: Added some constants for - private GetDCEx styles that WINE needs. - -2002-07-04 David Welch - - * include/user32/callback.h: Fixed callbacks for messages with - parameters. - -2002-07-04 David Welch - - * include/napi/win32.h (W32THREAD): Added pointer to the - thread's desktop. - * include/napi/win32.h (W32PROCESS): Removed handle table, - added a pointer to the process's window station. - * subsys/win32k/ntuser/guicheck.c (W32kGuiCheck): Reference - a process's window station on the first win32k system call. Reference - a thread's desktop on the first win32k system call. - -2002-07-04 David Welch - - * include/messages.h: Added some missing WM_XXX constants. - -2002-07-04 David Welch - - * drivers/dd/ide/makefile: Compiling with debugging messages - needs libgcc to be linked in. - -2002-07-04 David Welch - - * iface/addsys/genw32k.c: Generate a variable with the - number of system calls. - * iface/native/genntdll.c: Generate a proper stack frame for - the user system call stubs. - * ntoskrnl/ke/i386/syscall.S: Generate a proper stack frame for - the handler for system calls. - -2002-07-04 David Welch - - * Makefile: Build the GUI startup application. - * subsys/system/gstart/gstart.c: Application to start up - the GUI. - -2002-06-18 David Welch - - * tools/helper.mk: Make an import library a proper target - depending on the .def file. - -2002-06-18 David Welch - - * subsys/win32k/ntuser/window.c (NtUserGetWindowLong): Began - implementation. - -2002-06-18 David Welch - - * subsys/win32k/misc/object.c (ObmCreateHandle): Return the - correct handle value. - -2002-06-18 David Welch - - * subsys/win32k/makefile: Make win32k depend on the file containing - the service table. - -2002-06-18 David Welch - - * ntoskrnl/ke/i386/stkswitch.S (KeSwitchStackAndRet, - KePushAndStackSwitchAndSysRet): Push one value only. - * ntoskrnl/ps/w32call.c (NtCallbackReturn, NtW32Call): Moved - these functions to a new file. Restore the old trap frame after - returning from a callback. - -2002-06-18 David Welch - - * lib/user32/windows/message.c (CallWindowProcA, CallWindowProcW): - Convert message to Unicode or ASCII if necessary. - -2002-06-18 David Welch - - * include/user32/callback.h: Added WM_CREATE and WM_NCCALCSIZE - callbacks. - * lib/user32/windows/window.c (User32SendCREATEMessageForKernel, - User32SendNCCREATEMessageForKernel): Implemented. - * subsys/win32k/ntuser/callback.c (W32kSendCREATEMessage): - Implemented. - -2002-06-18 David Welch - - * include/structs.h: Added Unicode and ASCII versions of - CREATESTRUCT. - -2002-06-16 David Welch - - * tools/helper.mk: Make the install target depend on all the - files to be installed. - -2002-06-16 David Welch - - * ntoskrnl/ps/thread.c (NtCallbackReturn): Set TSS.Esp0 to the - top of the old stack. - * ntoskrnl/ps/thread.c (NtW32Call): Set TSS.Esp0 to the top of - the new stack. Free the callback stack correctly. Don't copy - portion of the trap frame that doesn't exist in non-v86-mode - interrupts. - * ntoskrnl/ps/thread.c (PsFreeCallbackStack): New function to - free a stack allocated with PsAllocateCallbackStack. - -2002-06-16 David Welch - - * drivers/dd/null/makefile: Commented out local LDFLAGS as - these cause bad relocations in the stripped image. - -2002-06-16 David Welch - - * config: Corrected spelling error. - -2002-06-11 David Welch - - * subsys/system/winlogon/winlogon.c (WinMain): Check for - failure when creating a window system. - -2002-06-11 David Welch - - * ntoskrnl/ob/handle.c (ObDuplicateObject): Added this internal - function for duplicating objects. - * ntoskrnl/ps/process.c (NtCreateProcess): Duplicate the parent - process's window station to the child process. - * ntoskrnl/ps/process.c (PsInitProcessManagement): Initialize the - first process's window station. - -2002-06-11 David Welch - - * ntoskrnl/mm/marea.c (MmCreateMemoryArea): Initialise - page operation structure members. - * ntoskrnl/mm/pageop.c (MmReleasePageOp, MmGetPageOp): Increment - or decrement the page operation count in the memory area. - * ntoskrnl/mm/virtual.c (MmNotPresentFaultVirtualMemory, - MmPageOutVirtualMemory): Check for a deleted memory area before - handling the fault. - * ntoskrnl/mm/virtual.c (MmFreeVirtualMemory): Wait for all - page operations to finish before freeing the memory area. - -2002-06-11 David Welch - - * ntoskrnl/ke/i386/syscall.S (interrupt_handler2e): Corrected - test for previous mode, upper 16-bit of CS on the stack after an - interrupt are arbitary. - -2002-06-11 David Welch - - * lib/user32/misc/winsta.c: Cleaned up indentation. - -2002-06-11 David Welch - - * apps/tests/winhello/winhello.c (WinMain, MainWndProc): - Cleaned up formatting, some more error checks. - -2002-06-04 David Welch - - * ntoskrnl/mm/virtual.c (MmSecureVirtualMemory, - MmUnsecureVirtualMemory, NtQueryVirtualMemory): Corrected indentation. - -2002-06-04 David Welch - - * ntoskrnl/ke/i386/exp.c (KiDoubleFaultHandler): Print CR3 - correctly. - -2002-06-04 David Welch - - * ntoskrnl/include/internal/ps.h: Added KTHREAD_STACK_LIMIT definition. - * ntoskrnl/ke/i386/tskswitch.S (Ki386ContextSwitch): Force all the - pages of the kernel stack to be accessible from this process. - -2002-06-04 David Welch - - * ntoskrnl/cc/view.c (ReadCacheSegmentChain): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/cc/copy.c (CcRosCreateCacheSegment): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/cc/copy.c (CcFreeCachePage): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/include/internal/mm.h: Changed prototypes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/include/internal/ps.h (KPROCESS): Changed type of - page directory base to PHYSICAL_ADDRESS. - * ntoskrnl/include/internal/i386/mm.h: Changed prototypes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/ke/kthread.c (KeFreeStackPage): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/ke/kthread.c (KeInitializeThread): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/ke/process.c (KeAttachProcess, KeDetachProcess): Changes - to use PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/ke/kernel.c (PcrPages, KeApplicationProcessorInit): Changes - to use PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/mm/balance.c (MM_ALLOCATION_REQUEST): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/mm/balance.c (MmReleasePageMemoryConsumer): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/mm/balance.c (MmRequestPageMemoryConsumer): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/mm/cont.c (MmFreeContinuousPage): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/mm/cont.c (MmAllocateContinuousAlignedMemory): Changes to - use PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/mm/freelist.c (MmTransferOwnershipPage, - MmGetLRUFirstUserPage, MmGetLRUNextUserPage, MmGetContinuousPages, - MmInitializePageList, MmSetFlagsPage, MmSetRmapListHeadPage, - MmGetRmapListHeadPage, MmMarkPageMapped, MmMarkPageUnmapped, - MmGetFlagsPage, MmSetSavedSwapEntryPage, MmGetSavedSwapEntryPage, - MmReferencePage, MmGetReferenceCountPage, MmIsUsablePage, - MmDereferencePage, MmGetLockCountPage, MmLockPage, MmUnlockPage, - MmAllocPage): Changes to use PHYSICAL_ADDRESS type for physical - addresses. - * ntoskrnl/mm/iospace.c (MmMapIoSpace): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/mm/kmap.c (ExAllocatePage, MiZeroPage, MiCopyFromUserPage, - ExAllocatePageWithPhysPage): Changes to use PHYSICAL_ADDRESS type for - physical addresses. - * ntoskrnl/mm/marea.c (MmFreeMemoryArea): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/mm/mdl.c (MmUnlockPages, MmMapLockedPages, - MmProbeAndLockPages): Changes to use PHYSICAL_ADDRESS type for - physical addresses. - * ntoskrnl/mm/mm.c (MmSharedDataPagePhysicalAddress, - MmCommitPagedPoolAddress, MmNotPresentFault): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/mm/mminit.c (MmInitVirtualMemory): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/mm/ncache.c (MmAllocateNonCachedMemory, - MmFreeNonCachedPage): Changes to use PHYSICAL_ADDRESS type for - physical addresses. - * ntoskrnl/mm/npool.c (grow_kernel_pool): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/mm/rmap.c (MmPageOutPhysicalAddress, MmInsertRmap, - MmDeleteAllRmaps, MmDeleteRmap): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/mm/section.c (MiReadPage, MmNotPresentFaultSectionView, - MmAccessFaultSectionView, MmPageOutDeleteMapping, - MmPageOutSectionView, MmFreeSectionPage): Changes to use - PHYSICAL_ADDRESS type for physical addresses. - * ntoskrnl/mm/slab.c (ExGrowSlabCache): Changes to use - PHYSICAL_ADDRESS type for physical address. - * ntoskrnl/mm/virtual.c (MmPageOutVirtualMemory, - MmNotPresentFaultVirtualMemory, MmFreeVirtualMemoryPage): Changes to - use PHYSICAL_ADDRESS type for physical address. - * ntoskrnl/mm/wset.c (MmTrimUserMemory): Changes to use - PHYSICAL_ADDRESS type for physical address. - * ntoskrnl/mm/page.c (Mmi386ReleaseMmInfo, MmCopyMmInfo, - MmGetPhysicalAddressForProcess, MmCreateVirtualMapping, - MmCreateVirtualMappingUnsafe, MmCreateVirtualMappingForProcess, - MmDeleteVirtualMapping): Changes to use PHYSICAL_ADDRESS type for - physical address. - * ntoskrnl/ps/process (PsInitProcessManagment): Changes to use - PHYSICAL_ADDRESS type for physical address. - * ntoskrnl/ps/thread.c (PsAllocateCallbackStack): Changes to use - PHYSICAL_ADDRESS type for physical address. - -2002-06-04 David Welch - - * Lots of change since the ChangeLog was last updated. - -2001-03-18 David Welch - - * ntoskrnl/ke/apc.c (KiDeliverApc): Bug fix. - * ntoskrnl/ke/apc.c (KeInsertQueueApc): More comments. - * ntoskrnl/ke/catch.c (KiDispatchException): Bug fix. - * ntoskrnl/ke/timer.c (KeDelayExecutionThread): Don't use removed - function KeAddTimeoutThread. - * ntoskrnl/ke/timer.c (KeAddTimeoutThread): Removed. - * ntoskrnl/ke/wait.c (KeWaitForSingleObject, KeWaitForMultipleObjects): - Don't use KeAddTimeoutThread. - * ntoskrnl/mm/freelist.c (MmAllocateContiguousAlignedMemory): Bug fix - * ntoskrnl/mm/freelist.c (MmAllocatePage): Allocate from the top - memory. - -2001-03-17 David Welch - - * ntoskrnl/ke/catch.c (KiDispatchException): Implementation of - exception handling, user-mode only. - -2001-03-16 David Welch - - * include/ddk/zw.h: Corrected declarations of NtCreateProfile, - NtQueryIntervalProfile, NtSetIntervalProfile. - * include/ddk/zwtypes.h: Added definitions of KPROFILE_SOURCE. - * ntoskrnl/include/internal/ke.h: Added the interrupted EIP as a - parameter to KiUpdateSystemTime for profiling purposes. - * ntoskrnl/include/internal/nt: Added declaration for profiling - support initialization. - * ntoskrnl/ke/timer.c (KiUpdateSystemTime, KeExpireTimers): Call - the profiling code on a timer interrupt with the interrupt EIP. - * ntoskrnl/ke/i386/irq.c (KiDispatchInterrupt): Pass the interrupted - EIP to KiUpdateSystemTime. - * ntoskrnl/mm/virtual.c (NtReadVirtualMemory, NtWriteVirtualMemory): - Release the MDLs used properly. - * ntoskrnl/nt/nt.c: Call the profiling support initialization. - * ntoskrnl/nt/ntevent.c (NtCreateEvent): Don't try copying the - ObjectAttributes parameter if it is NULL. - * ntoskrnl/nt/profile.c: Implemented profiling. - -2001-03-16 David Welch - - * ntoskrnl/include/internal/safe.h: Corrected typo. - * ntoskrnl/nt/ntevent.c (NtCreateEvent, NtOpenEvent, NtQueryEvent): - Corrected typos. - * ntoskrnl/rtl/mem.c: Missing header file. - -2001-03-16 David Welch - - * ntoskrnl/include/internal/safe.h: Add definitions for handling - potentially unsafe pointers. - -2001-03-16 David Welch - - * ntoskrnl/include/internal/mm.h: Removed MmSafeCopyToUser and - MmSafeCopyFromUser as source files need these but don't want internal - mm definitions. - * ntoskrnl/nt/ntevent.c (NtCreateEvent, NtOpenEvent, NtPulseEvent, - NtQueryEvent, NtResetEvent, NtSetEvent): Copy data to and from - user mode safely. - * ntoskrnl/rtl/mem.c (MmCopyToCaller, MmCopyFromCaller): Helper - functions for copying data to and from potentially unsafe pointers. - -2000-12-23 David Welch - - * All task switching is done in software. - * Beginnings of v86 mode support. - -2000-12-22 David Welch - - * ntoskrnl/ps/kill.c (PiTerminateProcessThreads): Drop - PiThreadListLock before calling PsTerminateOtherThread - -2000-12-16 David Welch - - * ntoskrnl/ex/fmutex.c (ExReleaseFastMutexUnsafe): Only set the - fast mutex's owner back to NULL if it is being released - -2000-12-10 David Welch - - * ntoskrnl/ke/i386/vm86_sup.S (Ki386RetToV86Mode): Added function - to do the raw switch to v86 mode. - * ntoskrnl/include/internal/vm86.h: Definitions for the v86 mode - support. - -2000-12-10 David Welch - - * ntoskrnl/ke/i386/trap.s (PsBeginThreadWithContextInternal): Moved - to ntoskrnl/ke/i386/bswitch.S. - * ntoskrnl/ke/i386/trap.s (interrupt_handler2e): Moved to - ntoskrnl/ke/i386/syscall.S. - * ntoskrnl/ke/i386/trap.s (old_interrupt_handler2e): Removed. - -2000-12-04 David Welch - - * ntoskrnl/ke/i386/irq.c (KiInterruptDispatch): Record the last PC - value for a rescheduled thread. - * ntoskrnl/ke/i386/irqhand.s: Construct a primitive trap frame - in interrupt handlers. - -2000-08-30 David Welch - - * Added calibration of KeStallExecutionProcessor timing - (code from linux 2.2.16). - - * Corrected compilation bugs in user32 library. - - * Corrected compilation bugs related to anonymous structs - in ndis code. - - * Pass command line to kernel from loadros. - - * Corrected PIC mask calculation. - -2000-05-27 David Welch - - * Fixed issue with closing non-existent or already closed - handle. - -2000-01-26 David Welch - - * ZwCreateProcess now maps ntdll rather than the user-mode - code. - -1999-09-06 David Welch - - * Implemented ZwOpenProcess. - - * Partially implemented killing other threads (possible memory - leaks). - - * Made a start on a proper implemention of APCs (based on - article in NT insider). - -1998-12-08 David Welch - - * Corrected bug in shell (Read two keypresses and assumed they - where the key going up and down respectively). - - * Corrected race in dpc handling. - - * Took out cleanup sections in ZwReadFile (now handled by the - APC). - - * Disabled broken code in kernel32. - - - - - - - - - - +2002-10-19 Casper S. Hornstrup + + * include/ntos.h: Include relevant files. + * include/internal/ke.h: Include files relative to + ntoskrnl/include. + * include/internal/arch/ke.h: Ditto. + +2002-10-01 Casper S. Hornstrup + + * drivers/dd/floppy/floppy.c: Changed PAGESIZE to PAGE_SIZE. + * drivers/fs/cdfs/fcb.c: Ditto. + * drivers/fs/cdfs/fsctl.c: Ditto. + * drivers/fs/cdfs/rw.c: Ditto. + * drivers/fs/ext2/dir.c: Ditto. + * drivers/fs/ext2/inode.c: Ditto. + * drivers/fs/ext2/rw.c: Ditto. + * drivers/fs/ext2/super.c: Ditto. + * drivers/fs/minix/blockdev.c: Ditto. + * drivers/fs/minix/cache.c: Ditto. + * drivers/fs/minix/inode.c: Ditto. + * drivers/fs/minix/rw.c: Ditto. + * drivers/fs/ntfs/fcb.c: Ditto. + * drivers/fs/ntfs/ntfs.h: Ditto. + * drivers/fs/vfat/create.c: Ditto. + * drivers/fs/vfat/direntry.c: Ditto. + * drivers/fs/vfat/dirwr.c: Ditto. + * drivers/fs/vfat/fat.c: Ditto. + * drivers/fs/vfat/fcb.c: Ditto. + * drivers/fs/vfat/fsctl.c: Ditto. + * drivers/fs/vfat/rw.c: Ditto. + * drivers/storage/class2/class2.c: Ditto. + * drivers/storage/scsiport/scsiport.c: Ditto. + * hal/halx86/adapter.c: Ditto. + * hal/halx86/mp.c: Ditto. + * include/ddk/mmfuncs.h: Ditto. + * include/ddk/mmtypes.h: Ditto. + * include/ddk/i386/pagesize.h: Ditto. + * include/ntdll/pagesize.h: Ditto. + * lib/kernel32/process/create.c: Ditto. + * lib/kernel32/thread/thread.c: Ditto. + * lib/ntdll/ldr/utils.c: Ditto. + * lib/ntdll/rtl/env.c: Ditto. + * lib/ntdll/rtl/heap.c: Ditto. + * lib/ntdll/rtl/ppb.c: Ditto. + * lib/ntdll/rtl/process.c: Ditto. + * lib/ntdll/rtl/thread.c: Ditto. + * ntoskrnl/cc/copy.c: Ditto. + * ntoskrnl/cc/view.c: Ditto. + * ntoskrnl/ex/sysinfo.c: Ditto. + * ntoskrnl/include/internal/i386/mm.h: Ditto. + * ntoskrnl/io/mdl.c: Ditto. + * ntoskrnl/ke/kthread.c: Ditto. + * ntoskrnl/ke/i386/kernel.c: Ditto. + * ntoskrnl/ldr/init.c: Ditto. + * ntoskrnl/ldr/loader.c: Ditto. + * ntoskrnl/mm/anonmem.c: Ditto. + * ntoskrnl/mm/cont.c: Ditto. + * ntoskrnl/mm/freelist.c: Ditto. + * ntoskrnl/mm/iospace.c: Ditto. + * ntoskrnl/mm/kmap.c: Ditto. + * ntoskrnl/mm/marea.c: Ditto. + * ntoskrnl/mm/mdl.c: Ditto. + * ntoskrnl/mm/mminit.c: Ditto. + * ntoskrnl/mm/ncache.c: Ditto. + * ntoskrnl/mm/npool.c: Ditto. + * ntoskrnl/mm/pagefile.c: Ditto. + * ntoskrnl/mm/pageop.c: Ditto. + * ntoskrnl/mm/section.c: Ditto. + * ntoskrnl/mm/slab.c: Ditto. + * ntoskrnl/mm/i386/page.c: Ditto. + * ntoskrnl/ob/handle.c: Ditto. + * ntoskrnl/ps/create.c: Ditto. + * ntoskrnl/ps/process.c: Ditto. + * ntoskrnl/ps/w32call.c: Ditto. + * subsys/win32k/include/object.h: Ditto. + +2002-10-01 Casper S. Hornstrup + + * lib/ntdll/string/ctype.c: Undefine __MSVCRT__ to not have mingw + runtime import _pctype. + +2002-09-30 Casper S. Hornstrup + + * lib/user32/misc/desktop.c (string.h): Include. + * lib/user32/misc/resources.c: Ditto. + * lib/user32/misc/winhelp.c: Ditto. + * lib/user32/windows/accel.c: Ditto. + * lib/user32/windows/bitmap.c: Ditto. + * subsys/win32k/freetype/ctype.c: Undefine __MSVCRT__ and _pctype to not + have mingw runtime import _pctype. + +2002-09-30 Casper S. Hornstrup + + * ntoskrnl/cc/view.c (alloca): Prototype. + * ntoskrnl/rtl/ctype.c: Undefine __MSVCRT__ to not have mingw runtime + import _pctype. + +2002-08-26 David Welch + + * lib/gdi32/misc/dllmain.c (GdiDllInitialize): Don't initialize + win32k.sys for each process. + * subsys/csrss/init.c (CsrServerInitialization): Initialize + win32k.sys as well. + +2002-08-26 David Welch + + * ntoskrnl/ps/process.c (NtCreateProcess): Reference the + parent process's handle using ExGetPreviousMode. + +2002-08-26 David Welch + + * lib/user32/misc/dllmain.c (Init): Initialize gdi32 as well. + +2002-08-26 David Welch + + * iface/addsys/genw32k.c (main, process): Generate a set of + stubs for csrss as well. + +2002-08-26 David Welch + + * lib/kernel32/process/create.c (CreateProcessW): Initialize + all the members of the new process's PPB. + +2002-08-17 David Welch + + * ntoskrnl/mm/rmap.c (MmWritePagePhysicalAddress): Ensure the + process isn't freed in the middle of our operations. + +2002-08-17 David Welch + + * drivers/fs/vfat/finfo.c (VfatSetAllocationSizeInformation): Fixed. + +2002-08-17 David Welch + + * ntoskrnl/ps/create.c (PiDeleteThread): Don't dereference + the thread's process while holding the thread list lock. + +2002-08-17 David Welch + + * ntoskrnl/mm/section.c (MmMapViewOfSection): Check there is + enough space for all parts of an image before mapping it; if + there isn't enough space free at the preferred base address + then try to choose a different one. + +2002-08-17 David Welch + + * ntoskrnl/mm/mpw.c (MmInitMpwThread): Run the MPW thread at + idle priority. + +2002-08-17 David Welch + + * ntoskrnl/mm/kmap.c (ExUnmapPage, ExAllocatePageWithPhysPage, + MiFreeNonPagedPoolRegion, MiAllocNonPagedPoolRegion): Maintain + a hint of the next free page; makes running with whole page + allocation more bearable. + +2002-08-17 David Welch + + * ntoskrnl/mm/anonmem.c (MmPageOutVirtualMemory): Show an + out of swap space message if we are out of swap space. + * ntoskrnl/mm/section.c (MmPageOutSectionView): Show an + out of swap space message if we are out of swap space. + * ntoskrnl/mm/pagefile.c (MmAllocSwapPage): Don't automatically + show an out of swap space message on failure. + * ntoskrnl/mm/pagefile.c (MmShowOutOfSpaceMessagePagingFile): New + function to notify the user that the pagefile is full. + +2002-08-17 David Welch + + * drivers/lib/zlib/Makefile: Create a dummy zlib.sym + +2002-08-16 David Welch + + * ntoskrnl/mm/npool.c (ExAllocateWholePageBlock): Converted + to use PHYSICAL_ADDRESS type for page address. + +2002-08-16 David Welch + + * subsys/win32k/ntuser/class.c (W32kCreateClass): Corrected + typo when calculating the offset into the class object to + put the class name string. + +2002-08-16 David Welch + + * ntoskrnl/ps/thread.c (PsDispatchThreadNoLock): Don't call + the reaper function directly; set an event to wake up a seperate + reaper thread. + * ntoskrnl/ps/thread.c (PsReaperThreadMain): New function that + waits for a notification and then calls PsReapThreads. + * ntoskrnl/ps/thread.c (PsInitThreadManagement): Create the + reaper thread. + +2002-08-15 David Welch + + * lib/advapi32/misc/dllmain.c (DllMain): Removed debug message. + +2002-08-14 David Welch + + * subsys/smss/init.c (SmPagingFilesQueryRoutine): If possible + take the size of the paging file from the registry. + +2002-08-14 David Welch + + * ntoskrnl/mm/section.c (MmCreateDataFileSection): Extend the + section if necessary. + +2002-08-14 David Welch + + * ntoskrnl/mm/pagefile.c (NtCreatePagingFile): Set the file + size using the FileAllocationInformation class. + +2002-08-14 David Welch + + * ntoskrnl/mm/anonmem.c (MmWritePageVirtualMemory): Implemented + function to write anonymous memory pages to the swap file. + * ntoskrnl/mm/anonmem.c (MmFreeVirtualMemoryPage): Free any + swap page associated with the page. + * ntoskrnl/mm/mpw.c (MmWriteDirtyPages): New function to find + pages to write to disk. + * ntoskrnl/mm/mpw.c (MmMpwThreadMain): Implemented MPW functionality. + * ntoskrnl/mm/rmap.c (MmWritePagePhysicalAddress): New function + to write a single page back to disk. + * ntoskrnl/mm/rmap.c (MmSetCleanAllRmaps, MmSetDirtyAllRmaps, + MmIsDirtyPageRmap): New rmap function to support the MPW thread. + * ntoskrnl/mm/section.c (MmWritePageSectionView): Implemented + function to write back section pages. + * ntoskrnl/mm/section.c (MmFreeSectionPage): Free any swap + entry associated with the page; mark pages shared with + the cache as dirty if necessary. + +2002-08-14 David Welch + + * ntoskrnl/ldr/loader.c (LdrPEProcessModule): Set name of + the module into the module text structure. + +2002-08-14 David Welch + + * ntoskrnl/io/rw.c (NtReadFile, NtWriteFile): Use the correct + test for whether to wait for the completion of i/o. + +2002-08-14 David Welch + + * ntoskrnl/cm/ntfunc.c (NtFlushKey): Request synchronous i/o + from NtOpenFile. + * ntoskrnl/cm/regfile (CmiInitPermanentRegistryHive): Request + synchronous i/o from NtCreateFile. + * ntoskrnl/dbg/kdb_stabs.c (LdrpLoadModuleSymbols): Request + synchronous i/o from NtOpenFile. + * ntoskrnl/ldr/sysdll.c (LdrpMapSystemDll): Request synchronous i/o + from NtOpenFile. + +2002-08-14 David Welch + + * ntoskrnl/cc/view.c (CcRosSuggestFreeCacheSegment): Maintain the + correct reference count. + +2002-08-14 David Welch + + * ntoskrnl/cc/view.c (CcRosFlushCacheSegment): New function to + write back a modified cache segment. + * ntoskrnl/cc/view.c (CcRosFlushDirtyPages): New function to + flush some dirty pages from the cache. + * ntoskrnl/cc/view.c (CcRosMarkDirtyCacheSegment): New function to + mark a cache segment modified while mapped into memory as dirty. + +2002-08-14 David Welch + + * ntoskrnl/cc/pin.c (CcMapData, CcUnpinData, CcSetDirtyPinnedData): + Store the dirty status in the BCB; don't write back dirty data + immediately. + +2002-08-14 David Welch + + * include/ntos/mm.h: Added SEC_XXXX defines from 'Windows NT/2000 + Native API Reference' + +2002-08-14 David Welch + + * drivers/fs/vfat/ea.c (VfatSetExtendedAttributes): Empty + placeholder for extended attribute functions. + +2002-08-14 David Welch + + * drivers/fs/vfat/finfo.c (VfatSetAllocationSizeInformation): + Added function to set allocation size. + +2002-08-14 David Welch + + * drivers/fs/vfat/fcb.c (vfatFCBInitializeCache): Renamed + to vfatFCBInitializeCacheFromVolume. + * drivers/fs/vfat/fcb.c (vfatMakeFCBFromDirEntry): Don't + initialise the cache with a file object representing the + volume unless the FCB is for a directory. + +2002-08-14 David Welch + + * drivers/fs/vfat/create.c (VfatPagingFileCreate): Added a + new function for handling paging file only code. + * drivers/fs/vfat/create.c (VfatSupersedeFile): Added a + new function for doing a file supersede. + * drivers/fs/vfat/create.c (VfatCreateFile): Reformatted and + adjusted control flow. Set allocation size and extended attributes + on create. + * drivers/fs/vfat/create.c (VfatCreate): Removed goto. + +2002-08-14 David Welch + + * drivers/fs/vfat/cleanup.c (VfatCleanupFile): Renamed + updEntry to VfatUpdateEntry. + * drivers/fs/vfat/close.c (VfatCloseFile): Renamed + updEntry to VfatUpdateEntry. + * drivers/fs/vfat/dirwr.c (updEntry): Renamed to + VfatUpdateEntry. + * drivers/fs/vfat/dirwr.c (addEntry): Renamed to + VfatAddEntry. + +2002-08-14 David Welch + + * apps/tests/sectest/sectest.c (main): Fixed formatting. + +2002-08-10 David Welch + + * ntoskrnl/mm/i386/page.c (MmSetPageProtect): Fixed + behaviour when called on the system address space. + +2002-08-10 David Welch + + * ntoskrnl/mm/virtual.c (MmQueryAnonMem, MmProtectAnonMem, + NtAllocateVirtualMemory, NtFreeVirtualMemory): Renamed + segments to regions; moved region code to seperate file. + Implemented NtQueryVirtualMemory and NtProtectVirtualMemory + for anonymous memory areas. + +2002-08-10 David Welch + + * ntoskrnl/mm/anonmem.c: Moved functions relating to + areas created with NtAllocateVirtualMemory to a + seperate file. + +2002-08-10 David Welch + + * ntoskrnl/mm/section.c (MmQuerySectionView): Implemented + NtQueryVirtualMemory for section views. + +2002-08-10 David Welch + + * ntoskrnl/mm/section.c (MmAccessFaultSectionView, + MmNotPresentFaultSectionView, MmProtectSectionView, + MmMapViewOfSegment, MmAlterViewAttributes): Implemented + NtProtectVirtualMemory for section views. + +2002-08-10 David Welch + + * ntoskrnl/ke/main.c: Removed SEH test code. + +2002-08-10 David Welch + + * lib/ntdll/ldr/utils.c (LdrFixupImports): Remove the readonly + protection from the IAT before writing to it. + +2002-08-10 David Welch + + * lib/ntdll/ldr/utils.c (LdrAdjustDllName): Properly null terminate + the base name of the DLL. + +2002-08-10 David Welch + + * ntoskrnl/ldr/loader.c (LdrPEProcessModule): Set the text segment + of modules to readonly after loading. + +2002-08-09 David Welch + + * ntoskrnl/ps/create.c (NtCreateThread): Call PsSuspendThread + if NtCreateThread has CreateSuspended as TRUE. + * ntoskrnl/ps/suspend.c (PsSuspendThread, PsResumeThread, + PiSuspendThreadKernelRoutine): Fixed suspend functionality. + +2002-08-09 David Welch + + * ntoskrnl/ke/i386/usertrap.c (print_user_address): Copy + the LDR variable from the right address. + +2002-08-09 David Welch + + * ntoskrnl/ke/apc.c (KiDeliverNormalApc): Check for + kernel APCs pending on exit from the kernel. + * ntoskrnl/ke/apc.c (KiDeliverNormalApc, KiDeliverUserApc, + KiDeliverApc): Set the APC's inserted flag to FALSE after + removing it from the thread's queue. + +2002-08-09 David Welch + + * lib/kernel32/thread/thread.c (ThreadStartup): Don't + call DLL entrypoints; this is done by LdrInitializeThunk. + * lib/ntdll/ldr/startup.c (LdrInitializeThunk): Call + DLLs in initialization order; take the loader lock before + calling. + +2002-08-09 David Welch + + * apps/tests/thread/thread.c (main): Test suspend and + resume functionality. + +2002-08-08 David Welch + + * ntoskrnl/mm/section (NtQuerySection): Return the + right result length. + +2002-08-08 David Welch + + * ntoskrnl/ke/usertrap.c (print_user_address): Check for + a NULL LDR structure in the PEB; copy the LDR pointer in + safely. + +2002-08-08 David Welch + + * ntoskrnl/ke/apc.c (KiDeliverUserApc): Deliver all present + APCs; release the APC spinlock while acccessing user memory. + +2002-08-08 David Welch + + * include/internal/ps.h: Adjusted offsets into the ETHREAD + structure. + * include/internal/ps.h: Removed redundant members from the + KTHREAD structure. + * ntoskrnl/ke/kthread.c (KeInitializeThread): Removed + redundant members from the KTHREAD structure. + +2002-08-08 David Welch + + * ntoskrnl/dbg/kdb.c (KdbEnterDebuggerException): New + function to enter the debugger on an exception. + * ntoskrnl/kd/kdebug.c (KdInitSystem): Initialize the + local kernel debugger if enabled. + * ntoskrnl/ke/catch.c (KiDispatchException): Enter the + local kernel debugger on an exception. + +2002-08-08 David Welch + + * include/ntdll/ldr.h: Added definition for a DLL entrypoint. + * lib/kernel32/process/create.c (KlCreateFirstThread): Put + the argument to the NtProcessStartup function on the stack. + * lib/kernel32/process/create.c (KlInitPeb): Read the + base address of the new image from the PEB. + * lib/kernel32/process/create.c (CreateProcessW): Start the + first thread at the entrypoint of the new image. + * lib/ntdll/ldr/startup.c (LdrInitializeThunk): If the + function is called after the initial startup then just call the + entrypoints for the loaded DLLs with DLL_THREAD_ATTACH. Don't + call the entrypoint of the image. + * lib/ntdll/rtl/process.c (RtlpCreateFirstThread): Put the + argument to the NtProcessStartup function on the stack. + * lib/ntdll/rtl/process.c (KlInitPeb): Read the base address of + the new image from the PEB. + * lib/ntdll/rtl/process.c (RtlCreateUserProcess): Start the + first thread at the entrypoint of the new image. + * ntoskrnl/ke/i386/bthread.S (PsBeginThreadWithContextInternal): + Use the system call path to begin a usermode thread. + * ntoskrnl/ke/i386/thread.c (Ke386InitThreadWithContext): Convert + the supplied context into a trap frame. + * ntoskrnl/ldr/init.c (LdrLoadInitialProcess): Put the PEB argument + to the NtProcessStartup function on the new stack; start the + first thread at the entrypoint of the image. + * ntoskrnl/ps/create.c (NtCreateThread): Create an APC to call + LdrInitializeThunk in the context of a new thread before its + entrypoint. + +2002-08-08 David Welch + + * drivers/fs/vfat/cleanup.c (VfatCleanupFile): Uninitialise + the cache on file cleanup. + * drivers/fs/vfat/fcb.c (vfatReleaseFcb): Don't uninitialise + the cache on file close. + * ntoskrnl/cc/copy.c: Renamed zero page global variable. + * ntoskrnl/cc/view.c: Added cache delete function. + +2002-07-13 Casper S. Hornstrup + + * rules.mak (RSYM): Define. + * include/ddk/zwtypes.h (DebugDbgLoadSymbols): Add to enum + _DEBUG_CONTROL_CODE. + * include/ntdll/ldr.h (LDR_SYMBOL_INFO, LdrpLoadUserModuleSymbols): Add. + (LdrLoadModuleSymbols): Remove. + * include/ntos/kdbgsyms.h (ST_FILENAME, ST_FUNCTION, + ST_LINENUMBER): Add. + (SYMBOL). Make Name an ANSI_STRING. + (IMAGE_SYMBOL_INFO, AreSymbolsParsed): Add. + * lib/ntdll/ldr/startup.c (LdrInitializeThunk): Call + LdrpLoadUserModuleSymbols() not LdrLoadModuleSymbols(). + * lib/ntdll/ldr/utils.c (LdrLoadModuleSymbols): Rename to + LdrpLoadUserModuleSymbols. + (LdrpLoadUserModuleSymbols): Use DebugDbgLoadSymbols debug control code. + (LdrLoadDll): assert if out of memory. + (LdrLoadDll): Call + LdrpLoadUserModuleSymbols(), not LdrLoadModuleSymbols(). + * lib/ntdll/string/ctype.c (_pctype): #undef. + * ntoskrnl/dbg/dbgctrl.c (NtSystemDebugControl): Call + LdrLoadUserModuleSymbols on DebugDbgLoadSymbols. + * ntoskrnl/include/internal/ldr.h (LdrGetAddressInformation): Add. + * ntoskrnl/include/internal/module.h (MODULE_TEXT_SECTION): Make SymbolInfo + an IMAGE_SYMBOL_INFO. + * ntoskrnl/ke/i386/exp.c (LdrGetAddressInformation): Add prototype. + (print_address): Change #ifdef KDBG to #ifdef DBG. + (KiDoubleFaultHandler, KiDumpTrapFrame, KeDumpStackFrames): Dump + one stack frame per line. + * ntoskrnl/ke/i386/multiboot.S: Create pagetables for more kernel + address space so larger modules can be passed from the boot loader. + * ntoskrnl/ke/i386/usertrap.c (LdrGetAddressInformation): Add prototype. + (print_user_address): Print symbols using LdrGetAddressInformation(). + * ntoskrnl/ldr/loader.c (SYMBOLFILE_HEADER, IMAGE_SYMBOL_INFO_CACHE, + STAB_ENTRY, N_FUN, N_SLINE, N_SO, SymbolListHead): Add. + (TAG_SYM_BUF): Remove. + (LdrInitDebug): Remove unneeded code. + (LdrInit1): Prepare for loading symbols. + (LdrpReadLine, HexL, LdrpParseLine, LdrpLoadModuleSymbolsFromBuffer, + LdrpLoadUserModuleSymbolsFromBuffer): Remove. + (LdrpParseImageSymbols, LdrpGetFileName, LdrpGetFunctionName, + LdrpGetLineNumber, LdrGetAddressInformation, LdrpLookupUserSymbolInfo): Add. + (LdrpLoadModuleSymbols, LdrInitializeBootStartDriver): Change to use new + symbol structures. + (LdrLoadUserModuleSymbols): Cache symbol buffers. + (LdrUnloadModuleSymbols): Implement. + (LdrLoadModule, LdrUnloadModule): Change #ifdef KDBG to #ifdef DBG. + (LdrPEProcessModule): Split a line into two lines. + (LdrPEProcessModule): Setup for loading symbols. + * ntoskrnl/ldr/sysdll.c (LdrpMapSystemDll): Open with FILE_SHARE_READ. + * ntoskrnl/ps/process.c (PiFreeSymbols): Call LdrUnloadModuleSymbols() to + free symbols. + (PiDeleteProcess): Change #ifdef KDBG to #ifdef DBG. + * ntoskrnl/rtl/ctype.c (_pctype): #undef. + * ntoskrnl/rtl/string.c (strncpy): Terminate destination string. + * tools/Makefile (rsym): Add target. + * tools/helper.mk: Include config and use -g if DBG = 1. + +2002-07-13 Casper S. Hornstrup + + * Makefile (install_before): Install system.hiv to correct location. + +2002-07-04 David Welch + + * subsys/win32k/include/callback.h: Fixed callback argument + definitions. + * subsys/win32k/ntuser/winpos.c: Implemented some more of the windows + sizing/moving code. + * subsys/win32k/ntuser/painting.c: Implemented some more of the + window painting code. + * subsys/win32k/objects/coord.c: Implemented LPtoDP and DPtoLP. + * subsys/win32k/objects/region.c: Added stubs for some more + region functions. + +2002-07-04 David Welch + + * ntoskrnl/ps/process.c (NtCreateProcess): Duplicate the + process desktop handle as well. + +2002-07-04 David Welch + + * ntoskrnl/se/token.c: Don't call the ZwXXX variant of + system calls when in system context. + +2002-07-04 David Welch + + * ntoskrnl/Makefile: Added file with MDA output code. + * ntoskrnl/kd/kdebug.c: Recognize MDA as a destination for + debug output. + +2002-07-04 David Welch + + * lib/user32/windows/defwnd.c: Implemented some more of the + default window handler. + +2002-07-04 David Welch + + * lib/user32/misc/stubs.c: Removed some stubs to seperate files. + +2002-07-04 David Welch + + * lib/user32/user32.def: Export ScreenToClient otherwise we + get problems when code in user32 tries to call it. + +2002-07-04 David Welch + + * include/win32k/region.h: Added prototypes for some missing + region functions. + +2002-07-04 David Welch + + * include/win32k/ntuser.h: Added prototypes for some missing + NtUserXXX functions. + +2002-07-04 David Welch + + * include/user32/wininternal.h: Added some constants for + private GetDCEx styles that WINE needs. + +2002-07-04 David Welch + + * include/user32/callback.h: Fixed callbacks for messages with + parameters. + +2002-07-04 David Welch + + * include/napi/win32.h (W32THREAD): Added pointer to the + thread's desktop. + * include/napi/win32.h (W32PROCESS): Removed handle table, + added a pointer to the process's window station. + * subsys/win32k/ntuser/guicheck.c (W32kGuiCheck): Reference + a process's window station on the first win32k system call. Reference + a thread's desktop on the first win32k system call. + +2002-07-04 David Welch + + * include/messages.h: Added some missing WM_XXX constants. + +2002-07-04 David Welch + + * drivers/dd/ide/makefile: Compiling with debugging messages + needs libgcc to be linked in. + +2002-07-04 David Welch + + * iface/addsys/genw32k.c: Generate a variable with the + number of system calls. + * iface/native/genntdll.c: Generate a proper stack frame for + the user system call stubs. + * ntoskrnl/ke/i386/syscall.S: Generate a proper stack frame for + the handler for system calls. + +2002-07-04 David Welch + + * Makefile: Build the GUI startup application. + * subsys/system/gstart/gstart.c: Application to start up + the GUI. + +2002-06-18 David Welch + + * tools/helper.mk: Make an import library a proper target + depending on the .def file. + +2002-06-18 David Welch + + * subsys/win32k/ntuser/window.c (NtUserGetWindowLong): Began + implementation. + +2002-06-18 David Welch + + * subsys/win32k/misc/object.c (ObmCreateHandle): Return the + correct handle value. + +2002-06-18 David Welch + + * subsys/win32k/makefile: Make win32k depend on the file containing + the service table. + +2002-06-18 David Welch + + * ntoskrnl/ke/i386/stkswitch.S (KeSwitchStackAndRet, + KePushAndStackSwitchAndSysRet): Push one value only. + * ntoskrnl/ps/w32call.c (NtCallbackReturn, NtW32Call): Moved + these functions to a new file. Restore the old trap frame after + returning from a callback. + +2002-06-18 David Welch + + * lib/user32/windows/message.c (CallWindowProcA, CallWindowProcW): + Convert message to Unicode or ASCII if necessary. + +2002-06-18 David Welch + + * include/user32/callback.h: Added WM_CREATE and WM_NCCALCSIZE + callbacks. + * lib/user32/windows/window.c (User32SendCREATEMessageForKernel, + User32SendNCCREATEMessageForKernel): Implemented. + * subsys/win32k/ntuser/callback.c (W32kSendCREATEMessage): + Implemented. + +2002-06-18 David Welch + + * include/structs.h: Added Unicode and ASCII versions of + CREATESTRUCT. + +2002-06-16 David Welch + + * tools/helper.mk: Make the install target depend on all the + files to be installed. + +2002-06-16 David Welch + + * ntoskrnl/ps/thread.c (NtCallbackReturn): Set TSS.Esp0 to the + top of the old stack. + * ntoskrnl/ps/thread.c (NtW32Call): Set TSS.Esp0 to the top of + the new stack. Free the callback stack correctly. Don't copy + portion of the trap frame that doesn't exist in non-v86-mode + interrupts. + * ntoskrnl/ps/thread.c (PsFreeCallbackStack): New function to + free a stack allocated with PsAllocateCallbackStack. + +2002-06-16 David Welch + + * drivers/dd/null/makefile: Commented out local LDFLAGS as + these cause bad relocations in the stripped image. + +2002-06-16 David Welch + + * config: Corrected spelling error. + +2002-06-11 David Welch + + * subsys/system/winlogon/winlogon.c (WinMain): Check for + failure when creating a window system. + +2002-06-11 David Welch + + * ntoskrnl/ob/handle.c (ObDuplicateObject): Added this internal + function for duplicating objects. + * ntoskrnl/ps/process.c (NtCreateProcess): Duplicate the parent + process's window station to the child process. + * ntoskrnl/ps/process.c (PsInitProcessManagement): Initialize the + first process's window station. + +2002-06-11 David Welch + + * ntoskrnl/mm/marea.c (MmCreateMemoryArea): Initialise + page operation structure members. + * ntoskrnl/mm/pageop.c (MmReleasePageOp, MmGetPageOp): Increment + or decrement the page operation count in the memory area. + * ntoskrnl/mm/virtual.c (MmNotPresentFaultVirtualMemory, + MmPageOutVirtualMemory): Check for a deleted memory area before + handling the fault. + * ntoskrnl/mm/virtual.c (MmFreeVirtualMemory): Wait for all + page operations to finish before freeing the memory area. + +2002-06-11 David Welch + + * ntoskrnl/ke/i386/syscall.S (interrupt_handler2e): Corrected + test for previous mode, upper 16-bit of CS on the stack after an + interrupt are arbitary. + +2002-06-11 David Welch + + * lib/user32/misc/winsta.c: Cleaned up indentation. + +2002-06-11 David Welch + + * apps/tests/winhello/winhello.c (WinMain, MainWndProc): + Cleaned up formatting, some more error checks. + +2002-06-04 David Welch + + * ntoskrnl/mm/virtual.c (MmSecureVirtualMemory, + MmUnsecureVirtualMemory, NtQueryVirtualMemory): Corrected indentation. + +2002-06-04 David Welch + + * ntoskrnl/ke/i386/exp.c (KiDoubleFaultHandler): Print CR3 + correctly. + +2002-06-04 David Welch + + * ntoskrnl/include/internal/ps.h: Added KTHREAD_STACK_LIMIT definition. + * ntoskrnl/ke/i386/tskswitch.S (Ki386ContextSwitch): Force all the + pages of the kernel stack to be accessible from this process. + +2002-06-04 David Welch + + * ntoskrnl/cc/view.c (ReadCacheSegmentChain): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/cc/copy.c (CcRosCreateCacheSegment): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/cc/copy.c (CcFreeCachePage): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/include/internal/mm.h: Changed prototypes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/include/internal/ps.h (KPROCESS): Changed type of + page directory base to PHYSICAL_ADDRESS. + * ntoskrnl/include/internal/i386/mm.h: Changed prototypes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/ke/kthread.c (KeFreeStackPage): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/ke/kthread.c (KeInitializeThread): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/ke/process.c (KeAttachProcess, KeDetachProcess): Changes + to use PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/ke/kernel.c (PcrPages, KeApplicationProcessorInit): Changes + to use PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/mm/balance.c (MM_ALLOCATION_REQUEST): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/mm/balance.c (MmReleasePageMemoryConsumer): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/mm/balance.c (MmRequestPageMemoryConsumer): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/mm/cont.c (MmFreeContinuousPage): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/mm/cont.c (MmAllocateContinuousAlignedMemory): Changes to + use PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/mm/freelist.c (MmTransferOwnershipPage, + MmGetLRUFirstUserPage, MmGetLRUNextUserPage, MmGetContinuousPages, + MmInitializePageList, MmSetFlagsPage, MmSetRmapListHeadPage, + MmGetRmapListHeadPage, MmMarkPageMapped, MmMarkPageUnmapped, + MmGetFlagsPage, MmSetSavedSwapEntryPage, MmGetSavedSwapEntryPage, + MmReferencePage, MmGetReferenceCountPage, MmIsUsablePage, + MmDereferencePage, MmGetLockCountPage, MmLockPage, MmUnlockPage, + MmAllocPage): Changes to use PHYSICAL_ADDRESS type for physical + addresses. + * ntoskrnl/mm/iospace.c (MmMapIoSpace): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/mm/kmap.c (ExAllocatePage, MiZeroPage, MiCopyFromUserPage, + ExAllocatePageWithPhysPage): Changes to use PHYSICAL_ADDRESS type for + physical addresses. + * ntoskrnl/mm/marea.c (MmFreeMemoryArea): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/mm/mdl.c (MmUnlockPages, MmMapLockedPages, + MmProbeAndLockPages): Changes to use PHYSICAL_ADDRESS type for + physical addresses. + * ntoskrnl/mm/mm.c (MmSharedDataPagePhysicalAddress, + MmCommitPagedPoolAddress, MmNotPresentFault): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/mm/mminit.c (MmInitVirtualMemory): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/mm/ncache.c (MmAllocateNonCachedMemory, + MmFreeNonCachedPage): Changes to use PHYSICAL_ADDRESS type for + physical addresses. + * ntoskrnl/mm/npool.c (grow_kernel_pool): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/mm/rmap.c (MmPageOutPhysicalAddress, MmInsertRmap, + MmDeleteAllRmaps, MmDeleteRmap): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/mm/section.c (MiReadPage, MmNotPresentFaultSectionView, + MmAccessFaultSectionView, MmPageOutDeleteMapping, + MmPageOutSectionView, MmFreeSectionPage): Changes to use + PHYSICAL_ADDRESS type for physical addresses. + * ntoskrnl/mm/slab.c (ExGrowSlabCache): Changes to use + PHYSICAL_ADDRESS type for physical address. + * ntoskrnl/mm/virtual.c (MmPageOutVirtualMemory, + MmNotPresentFaultVirtualMemory, MmFreeVirtualMemoryPage): Changes to + use PHYSICAL_ADDRESS type for physical address. + * ntoskrnl/mm/wset.c (MmTrimUserMemory): Changes to use + PHYSICAL_ADDRESS type for physical address. + * ntoskrnl/mm/page.c (Mmi386ReleaseMmInfo, MmCopyMmInfo, + MmGetPhysicalAddressForProcess, MmCreateVirtualMapping, + MmCreateVirtualMappingUnsafe, MmCreateVirtualMappingForProcess, + MmDeleteVirtualMapping): Changes to use PHYSICAL_ADDRESS type for + physical address. + * ntoskrnl/ps/process (PsInitProcessManagment): Changes to use + PHYSICAL_ADDRESS type for physical address. + * ntoskrnl/ps/thread.c (PsAllocateCallbackStack): Changes to use + PHYSICAL_ADDRESS type for physical address. + +2002-06-04 David Welch + + * Lots of change since the ChangeLog was last updated. + +2001-03-18 David Welch + + * ntoskrnl/ke/apc.c (KiDeliverApc): Bug fix. + * ntoskrnl/ke/apc.c (KeInsertQueueApc): More comments. + * ntoskrnl/ke/catch.c (KiDispatchException): Bug fix. + * ntoskrnl/ke/timer.c (KeDelayExecutionThread): Don't use removed + function KeAddTimeoutThread. + * ntoskrnl/ke/timer.c (KeAddTimeoutThread): Removed. + * ntoskrnl/ke/wait.c (KeWaitForSingleObject, KeWaitForMultipleObjects): + Don't use KeAddTimeoutThread. + * ntoskrnl/mm/freelist.c (MmAllocateContiguousAlignedMemory): Bug fix + * ntoskrnl/mm/freelist.c (MmAllocatePage): Allocate from the top + memory. + +2001-03-17 David Welch + + * ntoskrnl/ke/catch.c (KiDispatchException): Implementation of + exception handling, user-mode only. + +2001-03-16 David Welch + + * include/ddk/zw.h: Corrected declarations of NtCreateProfile, + NtQueryIntervalProfile, NtSetIntervalProfile. + * include/ddk/zwtypes.h: Added definitions of KPROFILE_SOURCE. + * ntoskrnl/include/internal/ke.h: Added the interrupted EIP as a + parameter to KiUpdateSystemTime for profiling purposes. + * ntoskrnl/include/internal/nt: Added declaration for profiling + support initialization. + * ntoskrnl/ke/timer.c (KiUpdateSystemTime, KeExpireTimers): Call + the profiling code on a timer interrupt with the interrupt EIP. + * ntoskrnl/ke/i386/irq.c (KiDispatchInterrupt): Pass the interrupted + EIP to KiUpdateSystemTime. + * ntoskrnl/mm/virtual.c (NtReadVirtualMemory, NtWriteVirtualMemory): + Release the MDLs used properly. + * ntoskrnl/nt/nt.c: Call the profiling support initialization. + * ntoskrnl/nt/ntevent.c (NtCreateEvent): Don't try copying the + ObjectAttributes parameter if it is NULL. + * ntoskrnl/nt/profile.c: Implemented profiling. + +2001-03-16 David Welch + + * ntoskrnl/include/internal/safe.h: Corrected typo. + * ntoskrnl/nt/ntevent.c (NtCreateEvent, NtOpenEvent, NtQueryEvent): + Corrected typos. + * ntoskrnl/rtl/mem.c: Missing header file. + +2001-03-16 David Welch + + * ntoskrnl/include/internal/safe.h: Add definitions for handling + potentially unsafe pointers. + +2001-03-16 David Welch + + * ntoskrnl/include/internal/mm.h: Removed MmSafeCopyToUser and + MmSafeCopyFromUser as source files need these but don't want internal + mm definitions. + * ntoskrnl/nt/ntevent.c (NtCreateEvent, NtOpenEvent, NtPulseEvent, + NtQueryEvent, NtResetEvent, NtSetEvent): Copy data to and from + user mode safely. + * ntoskrnl/rtl/mem.c (MmCopyToCaller, MmCopyFromCaller): Helper + functions for copying data to and from potentially unsafe pointers. + +2000-12-23 David Welch + + * All task switching is done in software. + * Beginnings of v86 mode support. + +2000-12-22 David Welch + + * ntoskrnl/ps/kill.c (PiTerminateProcessThreads): Drop + PiThreadListLock before calling PsTerminateOtherThread + +2000-12-16 David Welch + + * ntoskrnl/ex/fmutex.c (ExReleaseFastMutexUnsafe): Only set the + fast mutex's owner back to NULL if it is being released + +2000-12-10 David Welch + + * ntoskrnl/ke/i386/vm86_sup.S (Ki386RetToV86Mode): Added function + to do the raw switch to v86 mode. + * ntoskrnl/include/internal/vm86.h: Definitions for the v86 mode + support. + +2000-12-10 David Welch + + * ntoskrnl/ke/i386/trap.s (PsBeginThreadWithContextInternal): Moved + to ntoskrnl/ke/i386/bswitch.S. + * ntoskrnl/ke/i386/trap.s (interrupt_handler2e): Moved to + ntoskrnl/ke/i386/syscall.S. + * ntoskrnl/ke/i386/trap.s (old_interrupt_handler2e): Removed. + +2000-12-04 David Welch + + * ntoskrnl/ke/i386/irq.c (KiInterruptDispatch): Record the last PC + value for a rescheduled thread. + * ntoskrnl/ke/i386/irqhand.s: Construct a primitive trap frame + in interrupt handlers. + +2000-08-30 David Welch + + * Added calibration of KeStallExecutionProcessor timing + (code from linux 2.2.16). + + * Corrected compilation bugs in user32 library. + + * Corrected compilation bugs related to anonymous structs + in ndis code. + + * Pass command line to kernel from loadros. + + * Corrected PIC mask calculation. + +2000-05-27 David Welch + + * Fixed issue with closing non-existent or already closed + handle. + +2000-01-26 David Welch + + * ZwCreateProcess now maps ntdll rather than the user-mode + code. + +1999-09-06 David Welch + + * Implemented ZwOpenProcess. + + * Partially implemented killing other threads (possible memory + leaks). + + * Made a start on a proper implemention of APCs (based on + article in NT insider). + +1998-12-08 David Welch + + * Corrected bug in shell (Read two keypresses and assumed they + where the key going up and down respectively). + + * Corrected race in dpc handling. + + * Took out cleanup sections in ZwReadFile (now handled by the + APC). + + * Disabled broken code in kernel32. + + + + + + + + + + diff --git a/reactos/include/ntos.h b/reactos/include/ntos.h index 8ce61d845b2..4e27456344d 100644 --- a/reactos/include/ntos.h +++ b/reactos/include/ntos.h @@ -1,12 +1,75 @@ #ifndef _NTOS_H #define _NTOS_H -/* $Id: ntos.h,v 1.5 2002/09/08 10:22:28 chorns Exp $ */ +/* $Id: ntos.h,v 1.6 2002/10/19 14:24:15 chorns Exp $ */ +#if defined(NTOS_MODE_USER) +// include windows.h before ntddk.h to get user mode prototype for InterlockedXxx functions +#include #include -#include -#include -#include -#include -#include +#include "ntos/types.h" +#include "ntos/cdrom.h" +#include "ntos/console.h" +#include "ntos/disk.h" +#include "ntos/except.h" +#include "ntos/file.h" +#include "ntos/gditypes.h" +#include "ntos/heap.h" +#include "ntos/kdbgsyms.h" +#include "ntos/keyboard.h" +#include "ntos/minmax.h" +#include "ntos/mm.h" +#include "ntos/ntdef.h" +#include "ntos/port.h" +#include "ntos/ps.h" +#include "ntos/registry.h" +#include "ntos/security.h" +#include "ntos/synch.h" +#include "ntos/time.h" +#include "napi/i386/segment.h" +#include "napi/types.h" +#include "napi/core.h" +#include "napi/dbg.h" +#include "napi/lpc.h" +#include "napi/npipe.h" +#include "napi/shared_data.h" +#include "napi/win32.h" +#include "ntdll/csr.h" +#include "ntdll/dbg.h" +#include "ntdll/ldr.h" +#include "ntdll/registry.h" +#include "ntdll/rtl.h" +#include "ntdll/trace.h" +#include "kernel32/error.h" +#else // Assume kernel mode +#include +#include +#include "ntos/types.h" +#include "ntos/cdrom.h" +#include "ntos/console.h" +#include "ntos/disk.h" +#include "ntos/except.h" +#include "ntos/file.h" +#include "ntos/gditypes.h" +#include "ntos/heap.h" +#include "ntos/kdbgsyms.h" +#include "ntos/keyboard.h" +#include "ntos/minmax.h" +#include "ntos/mm.h" +#include "ntos/ntdef.h" +#include "ntos/port.h" +#include "ntos/ps.h" +#include "ntos/registry.h" +#include "ntos/security.h" +#include "ntos/synch.h" +#include "ntos/time.h" +#include "napi/i386/segment.h" +#include "napi/types.h" +#include "napi/core.h" +#include "napi/dbg.h" +#include "napi/lpc.h" +#include "napi/npipe.h" +#include "napi/shared_data.h" +#include "napi/win32.h" +#endif #endif /* ndef _NTOS_H */ diff --git a/reactos/ntoskrnl/include/internal/arch/ke.h b/reactos/ntoskrnl/include/internal/arch/ke.h index cc0589b60a0..2973640b691 100644 --- a/reactos/ntoskrnl/include/internal/arch/ke.h +++ b/reactos/ntoskrnl/include/internal/arch/ke.h @@ -20,7 +20,7 @@ #define __NTOSKRNL_INCLUDE_INTERNAL_ARCH_KE_H #ifdef i386 -#include +#include "../i386/ke.h" #else #error "Unknown processor" #endif diff --git a/reactos/ntoskrnl/include/internal/ke.h b/reactos/ntoskrnl/include/internal/ke.h index 13121187838..102b9c561cd 100644 --- a/reactos/ntoskrnl/include/internal/ke.h +++ b/reactos/ntoskrnl/include/internal/ke.h @@ -28,7 +28,7 @@ #include #endif /* not __ASM__ */ -#include +#include "arch/ke.h" /* INTERNAL KERNEL FUNCTIONS ************************************************/