Commit graph

37141 commits

Author SHA1 Message Date
ReactOS Portable Systems Group 6464056a16 - Get rid of MmPageArray and MmPageArraySize since these were defined as just being ReactOS-specific clones of MmPfnDatabase and MmHighestPhysicalPage. Ergo, use the latter in relevant places.
svn path=/trunk/; revision=41506
2009-06-21 04:14:49 +00:00
ReactOS Portable Systems Group f7ed5bd01d - It is very possible for MiGetPfnEntry to be called for a page above the page array size, since not all pages are represented in the array. In this scenario, MiGetPfnEntry should return NULL (and the caller should be prepared for this scenario).
- Also move out the extern definitions outside of the inline, so that other functions may access them and consequently removing a needless UNREFERENCED_PARAMETER.


svn path=/trunk/; revision=41505
2009-06-21 04:09:25 +00:00
ReactOS Portable Systems Group 7f3a8dc045 - Add missing flags for MmAllocatePagesForMdlEx.
svn path=/trunk/; revision=41504
2009-06-21 03:59:23 +00:00
ReactOS Portable Systems Group 4fbc4ba227 - Remove MmGetPageFlags and MmSetPageFlags, there are no consumers of these two functions.
- Get rid of PHYSICAL_PAGE structure and move to WinNT MMPFN structure instead:
  - Define a preprocessor legacy mapping so that freelist.c receives only minimal changes:
    - This mapping allows the old meanings of the PHYSICAL_PAGE fields to remain, but now part of the new MMPFN structure
    - Other modules (balance.c and mm.h) use the new structure directly, since only 3 lines of code required changes.
  - The NT structure is 8 bytes smaller than the ReactOS structure, which saves about 1MB of physical memory and kernel VA space
    for each 512MB of RAM, or 25% less. This also enables ReactOS to support 25% more memory than before (64GB instead of 48GB).


svn path=/trunk/; revision=41503
2009-06-21 03:57:42 +00:00
Johannes Anderwald 66a0e71bf5 - Use interval of 10ms for the periodic timer IPortPinWaveRT
- Initialize a periodic timer for IPortPinWavePci
- Might fix Vortex AU8820C0 card

svn path=/trunk/; revision=41498
2009-06-21 00:16:32 +00:00
Johannes Anderwald eef3e1deca - Define private interface IPortWaveRTStreamInit in order to deal with PHYSICAL_ADDRESS as return value
- Implement reading/writing into cyclic buffer for IPortPinWaveRT 
- Allocate an audio buffer when the pin is initialized. This needs to be changed once KSPROPERTY_RTAUDIO_BUFFER is implemented
- Fix a bug in PcNewPort
- Remove obsolete code from IPortWavePci
- Return the allocated MDL from IPortWaveRTStream::AllocateContiguousPagesForMdl
- Create a system thread when using IServiceGroup::RequestDelayedService
- ReactOS now partly supports Vista audio driver model

svn path=/trunk/; revision=41497
2009-06-20 23:37:55 +00:00
Johannes Anderwald 9c621c0524 - Free forgotten irps
- Implement PcCompleteIrp

svn path=/trunk/; revision=41489
2009-06-20 16:00:45 +00:00
Christoph von Wittich d9042af464 partial dbghelp wine sync
svn path=/trunk/; revision=41474
2009-06-19 22:14:54 +00:00
Christoph von Wittich aa85426a38 improve some more Lsa stubs
svn path=/trunk/; revision=41473
2009-06-19 22:08:02 +00:00
Christoph von Wittich 2869ff1fbc better stub for LsaEnumerateAccountRights
svn path=/trunk/; revision=41472
2009-06-19 21:54:19 +00:00
Stefan Ginsberg b1821667f4 - Define noreturn attribute for KeBugCheck/Ex in a msvc-compatible way
svn path=/trunk/; revision=41471
2009-06-19 19:43:41 +00:00
Stefan Ginsberg d749e95880 - Define UNREFERENCED_PARAMETER for cmlib when built as host and reapply 41455.
svn path=/trunk/; revision=41470
2009-06-19 16:05:16 +00:00
Johannes Anderwald db429325e1 - Fix build
svn path=/trunk/; revision=41469
2009-06-19 13:59:27 +00:00
Johannes Anderwald 10e71311b1 - Make ks.h and drmk.h msvc compatible
svn path=/trunk/; revision=41468
2009-06-19 12:07:17 +00:00
Johannes Anderwald f791b1fa91 - Improve user mode buffer probing
svn path=/trunk/; revision=41467
2009-06-19 10:50:19 +00:00
Dmitry Chapyshev 97aea8189d - Add target process reference/dereference in ProcessWow64Information case of NtQueryInformationProcess.
- Check buffer length

svn path=/trunk/; revision=41466
2009-06-19 08:49:01 +00:00
Dmitry Chapyshev 1cdc856b9c - Check buffer length for ProcessQuotaLimits/ProcessBasePriority/ProcessRaisePriority/ProcessWx86Information/ProcessDebugPort cases
svn path=/trunk/; revision=41465
2009-06-19 08:22:24 +00:00
Dmitry Chapyshev 8b7d2f3924 - Add probing of the result buffers
svn path=/trunk/; revision=41464
2009-06-19 07:46:46 +00:00
Cameron Gutman 12adb28b86 - Fix 2 typos
svn path=/trunk/; revision=41463
2009-06-19 07:34:34 +00:00
Cameron Gutman 1cde39c156 - Report that we are NDIS 5.1
svn path=/trunk/; revision=41462
2009-06-19 06:53:58 +00:00
Cameron Gutman cf30be51fb - Big debugging update
- Also fix some little bugs and reduce code duplication

svn path=/trunk/; revision=41461
2009-06-19 06:47:00 +00:00
Cameron Gutman 02b61191c8 - Make CancelId a LONG
svn path=/trunk/; revision=41460
2009-06-19 05:12:20 +00:00
KJK::Hyperion 591cbf3208 modified tools/rbuild/backend/mingw/compilers/gcc.mak
modified   tools/rbuild/backend/mingw/compilers/msc.mak
   New rules for C preprocessor that compiles to standard output (RBUILD_PIPE_CPP, RBUILD_PIPE_CXX_CPP)

modified   tools/rbuild/backend/mingw/rules.mak
   Use RBUILD_PIPE_CPP in RBUILD_WRC_RULE, instead of hardcoding GCC

svn path=/trunk/; revision=41459
2009-06-19 02:28:33 +00:00
KJK::Hyperion f073fbe6ab Revert 41455
svn path=/trunk/; revision=41458
2009-06-19 01:12:25 +00:00
KJK::Hyperion 204b2befbb modified drivers/filesystems/fastfat/blockdev.c
modified   drivers/filesystems/fastfat/dirwr.c
modified   drivers/filesystems/fastfat/ea.c
modified   drivers/filesystems/fastfat/finfo.c
   Silence "argument unused" warnings
   Corrected several accesses to potentially uninitialized variables

modified   drivers/filesystems/fastfat/vfat.h
   Visual C++ is no longer a guarantee of compilation with the DDK

Patch by Samuel Serapión <samdwise51@gmail.com>

svn path=/trunk/; revision=41457
2009-06-19 00:21:21 +00:00
KJK::Hyperion 82276953f4 modified drivers/input/i8042prt/createclose.c
modified   drivers/input/i8042prt/i8042prt.c
modified   drivers/input/i8042prt/keyboard.c
modified   drivers/input/i8042prt/misc.c
modified   drivers/input/i8042prt/mouse.c
modified   drivers/input/i8042prt/readwrite.c
   Silence "argument unused" and "unused variable" warnings
   Corrected several accesses to potentially uninitialized variables

Patch by Samuel Serapión <samdwise51@gmail.com>

svn path=/trunk/; revision=41456
2009-06-19 00:17:15 +00:00
KJK::Hyperion dc90252573 modified lib/cmlib/hivecell.c
modified   lib/cmlib/hiveinit.c
   Silence "argument unused" warnings

Patch by Samuel Serapión <samdwise51@gmail.com>

svn path=/trunk/; revision=41455
2009-06-19 00:12:26 +00:00
KJK::Hyperion f06e2b532c modified drivers/bus/pci/fdo.c
modified   drivers/bus/pci/pci.c
modified   drivers/bus/pci/pdo.c
   Silence "argument unused" warnings
   Corrected a potentially uninitialized variable access

Patch by Samuel Serapión <samdwise51@gmail.com>

svn path=/trunk/; revision=41454
2009-06-19 00:09:42 +00:00
Stefan Ginsberg a4cad0ba8d - Fix compiler flag for rosautotest
- Get rid of -Wno-format in the Winetests, replacing it with __ROS_LONG64__.

svn path=/trunk/; revision=41453
2009-06-18 22:16:49 +00:00
Stefan Ginsberg 4acc879393 - Revert 39470, reapplying the __ROS_LONG64__ check for INT_PTR and UINT_PTR on 32-bit.
svn path=/trunk/; revision=41452
2009-06-18 22:07:20 +00:00
Stefan Ginsberg 85c7801c12 - Only pass gcc flags to gcc.
svn path=/trunk/; revision=41451
2009-06-18 22:06:16 +00:00
Aleksey Bragin 4f6ecaaec2 - Implement ProcessQuotaLimits case for NtQueryInformationProcess. Based on Dmitry Chapyshev's patch.
svn path=/trunk/; revision=41450
2009-06-18 19:46:18 +00:00
Stefan Ginsberg 6cfc9ab326 - Add missing NTAPI to DriverEntry
svn path=/trunk/; revision=41449
2009-06-18 19:13:05 +00:00
Stefan Ginsberg 3d64a589fb - Do not pass gcc and ld flags to other tools
svn path=/trunk/; revision=41448
2009-06-18 18:18:57 +00:00
Daniel Reimer 065a190de7 Bug 4620: Incorrect code page output in shutdown.exe (Russian locale) by John White
Polish Translation Updates by Maciej Bialas

svn path=/trunk/; revision=41447
2009-06-18 15:47:41 +00:00
Ged Murphy ce911cc090 Fix the version data in the registry to match what the kernel reports.
svn path=/trunk/; revision=41446
2009-06-18 10:59:15 +00:00
Daniel Reimer 9fdf163245 Bug 4610: Dutch translation for Solitaire by reFly <wouterdevlieger@gmail.com>
Bug 4619: Japanese translation update for syssetup and downloader by Tomoya Kitagawa

svn path=/trunk/; revision=41445
2009-06-18 09:30:33 +00:00
Johannes Anderwald 70159651dc - mmreg uses for all structures contained byte-aligned packing
svn path=/trunk/; revision=41444
2009-06-18 08:03:40 +00:00
Cameron Gutman e2662e4df0 - Make NdisGeneratePartialCancelId safe by using Interlocked functions
svn path=/trunk/; revision=41443
2009-06-18 02:24:19 +00:00
KJK::Hyperion f6a788b116 Miscellaneous Visual C++ compilation fixes
modified   include/crt/mingw32/intrin_x86.h
modified   include/crt/msc/intrin.h
   Fixed declarations of _InterlockedDecrement16 and _InterlockedIncrement16
   Fixed declarations of __readcr0, __readcr2, __readcr3 and __readcr4 for x86
   Implement __readdr and __writedr for x86 too
   Added missing semicolon

modified   include/crt/stdlib.h
modified   lib/3rdparty/mingw/crtexe.c
   Use Visual C++-compatible attribute placement

modified   lib/3rdparty/mingw/crtexe.c
   Get rid of useless assembly, replace with __writefsdword (it's still useless)

modified   lib/3rdparty/mingw/mingw.rbuild
   Disable Visual C++ warning C4733 ("Inline asm assigning to 'FS:0' : handler not registered as safe handler") for mingw_wmain

modified   lib/sdk/scrnsave/scrnsave.c
   Silence a warning

modified   ReactOS-generic.rbuild
   Disable Visual C++ warning C4711 ("function 'function' selected for inline expansion") globally

modified   tools/rbuild/backend/mingw/compilers/msc.mak
   Fix Visual C++ compiler rules to emit an uniquely named PDB for each object file

svn path=/trunk/; revision=41442
2009-06-18 00:41:56 +00:00
KJK::Hyperion f706410ede modified tools/rbuild/backend/mingw/rules.mak
For now, only pass the -I, -D and -U preprocessor options to gas

svn path=/trunk/; revision=41441
2009-06-18 00:27:18 +00:00
KJK::Hyperion 5632264d33 modified include/crt/math.h
Ported <math.h> to Visual C++
   Fixed some miscellaneous stupidity. I see Arch has been committing to MinGW-W64 too

svn path=/trunk/; revision=41440
2009-06-17 23:25:22 +00:00
Dmitry Gorbachev abdf1ae486 Do not lie about compiler optimizations.
svn path=/trunk/; revision=41439
2009-06-17 18:17:45 +00:00
Christoph von Wittich 1bff1b2197 fix msvc build
svn path=/trunk/; revision=41438
2009-06-17 13:48:36 +00:00
Stefan Ginsberg 2c8507d494 - Leftover from 41436
svn path=/trunk/; revision=41437
2009-06-17 12:44:56 +00:00
Stefan Ginsberg 88e9b2a513 - In Win32 DBG is defined to 0 for a non-debug build and to 1 for a debug build. In ReactOS we do this slightly different: DBG is correctly defined to 1 for debug, but not defined at all on non-debug/release build. Because gcc is awesome we can then check for debug compilation with both #ifdef DBG and #if DBG (error free! yay gcc!), and so we have mixed usage all over the tree.
- Fix this by defining DBG on non-debug build too and deprecate all usage of #ifdef DBG.

svn path=/trunk/; revision=41436
2009-06-17 12:44:05 +00:00
Christoph von Wittich 3d402751d4 some code cleanup
svn path=/trunk/; revision=41435
2009-06-17 11:52:39 +00:00
KJK::Hyperion 84833730d0 modified include/crt/_mingw.h
No "restrict" support in Visual C++ (and __restrict isn't the same thing)

modified   include/crt/stdarg.h
   Really fix stdarg.h this time

modified   include/crt/wchar.h
modified   include/psdk/dde.h
modified   include/psdk/mmsystem.h
modified   include/psdk/prsht.h
modified   include/psdk/rpcndr.h
modified   include/psdk/shellapi.h
modified   include/psdk/winbase.h
modified   include/psdk/wincon.h
modified   include/psdk/wincrypt.h
modified   include/psdk/windef.h
modified   include/psdk/wingdi.h
modified   include/psdk/winioctl.h
modified   include/psdk/winnetwk.h
modified   include/psdk/winnls.h
modified   include/psdk/winnt.h
modified   include/psdk/winperf.h
modified   include/psdk/winsmcrd.h
modified   include/psdk/winsock2.h
modified   include/psdk/winspool.h
modified   include/psdk/winuser.h
modified   include/psdk/wtypes.idl
modified   include/reactos/mingw-w64/internal.h
modified   include/reactos/mingw-w64/oscalls.h
   Disable some unavoidable warnings in Visual C++

modified   include/psdk/poppack.h
modified   include/psdk/pshpack1.h
modified   include/psdk/pshpack2.h
modified   include/psdk/pshpack4.h
modified   include/psdk/pshpack8.h
modified   include/psdk/pshpck16.h
modified   include/psdk/windows.h
modified   include/psdk/winsock2.h
   Check that defines are defined before testing their value

modified   include/psdk/rpcasync.h

modified   include/psdk/rpcdce.h
   Visual C++ doesn't support functions without a prototype anymore, and RPC_AUTH_KEY_RETRIEVAL_FN has a documented prototype anyway

modified   include/psdk/winnt.h
   WIN32_WINNT -> _WIN32_WINNT

svn path=/trunk/; revision=41434
2009-06-17 11:18:51 +00:00
Kamil Hornicek 7e8ae7ca6b - correct fix, also free the allocated buffer
svn path=/trunk/; revision=41433
2009-06-17 11:08:00 +00:00
Kamil Hornicek 8519197da3 - sync quartz with Wine 1.1.23
svn path=/trunk/; revision=41432
2009-06-17 10:31:16 +00:00