Commit graph

51675 commits

Author SHA1 Message Date
Amine Khaldi d1f163d021 [UNIATA]
* Sync with UniATA v0.42e2.
* Hello AHCI support, you've been missed ! (that's WIP but still)

svn path=/trunk/; revision=57018
2012-08-01 20:30:19 +00:00
Amine Khaldi e1398e05d4 [ATACTL]
* Sync with the latest UniATA version.

svn path=/trunk/; revision=57017
2012-08-01 20:27:41 +00:00
James Tabor b39bf28a27 - Fix Linux build.
svn path=/trunk/; revision=57016
2012-08-01 12:05:33 +00:00
Timo Kreuzer f91d4d599c [FREELDR]
Don't use fancy CMake features for MSVC builds that would require custom CMake installations. Period. ;-)

svn path=/trunk/; revision=57015
2012-08-01 11:43:47 +00:00
Timo Kreuzer 5437fdfa9b Fix build
svn path=/trunk/; revision=57014
2012-08-01 09:23:20 +00:00
Timo Kreuzer 74550e0567 [WIN32K]
- Use trivial Clip object, if NULL one is passed in IntEngAlphaBlend
- In NtGdiDescribePixelFormat allow passing NULL for the output pixel descriptor and copy the result *to* the caller not from the caller.
- Fix some format strings
- Update some annotations

svn path=/trunk/; revision=57013
2012-08-01 09:17:55 +00:00
Timo Kreuzer 716b77c63e [INCLUDE/CRT]
Partly revert r56995. Firstly it breaks MSVC builds, secondly the stuff doesn't belong into this header. MS headers don't have __fpclassify etc and our headers are not supposed to contain any fancy additions. If you need it for 3rd party code, put it somewhere else.

svn path=/trunk/; revision=57012
2012-08-01 08:23:54 +00:00
Alex Ionescu b3b73888b1 [NTOSKRNL]: Implement last bits of session space support (minus session pool). Processes now have a ->Session pointer! Implement and enable MmSessionId in a bunch of places.
[NTOSKRNL]: Set MiSessionSpaceWs address and use where needed.
[NTOSKRNL]: Initialize the session working set, and add support to MiLockWorkingSet and MiUnlockWorkingSet for session WS.
[NTOSKRNL]: Implement MiSessionAddProcess and MiSessionRemoveProcess which does the work required for this.
[NTOSKRNL]: Fix IoGetIrpRequestorProcess.
In my private branch, MmMapViewInSessionSpace is working fine for the user and GDI heaps. Will enable after TestBot tests.

svn path=/trunk/; revision=57011
2012-08-01 07:54:37 +00:00
Timo Kreuzer 4f1b5e8e7b [WIN32K]
Temporarily comment out some ASSERTs that fail

svn path=/trunk/; revision=57010
2012-07-31 21:33:34 +00:00
Timo Kreuzer 70b9199efd [NTOSKRNL]
Try to fix crash detection in sysreg

svn path=/trunk/; revision=57009
2012-07-31 20:58:37 +00:00
Timo Kreuzer 9fd18d4a19 [WIN32K]
- pass COLORADJUSTMENT to IntEngStretchBlt
- IntEngStretchBlt, EngStretchBltROP, DrvStretchBltROP always use a source, ASSERT that
- annotate pbrDefaultBrush and psurfDefaultBitmap as _Notnull_
- Don't use uninitialized psoInput in EngStretchBltROP
- Use trivial CLIPOBJ instead of NULL in IntEngStretchBlt
- Always pass a source surface to EngStretchBltROP

svn path=/trunk/; revision=57008
2012-07-31 20:44:56 +00:00
Timo Kreuzer 299f58b5fa [WIN32K]
- Use a global trivial CLIPOBJ if a NULL one is passed
- Don't pass a pointer to uninitialized memory to DrvBitBlt

svn path=/trunk/; revision=57007
2012-07-31 18:53:17 +00:00
Timo Kreuzer 1896c7326a [WIN32K]
trigraphs ...

svn path=/trunk/; revision=57006
2012-07-31 18:43:56 +00:00
Timo Kreuzer 0eb293193f [WIN32K]
- Fix PREFAST warnings related to printf format strings, empty SEH handler, some possible NULL pointer dereferences, some unchecked return values

svn path=/trunk/; revision=57005
2012-07-31 18:40:52 +00:00
Timo Kreuzer c3ccdfbde9 [DDK/XDK]
- Fix some annotations in wdm.h

[PSDK]
- Fix some annotations in winddi.h
- Add annotations to ntgdi.h (incomplete)

svn path=/trunk/; revision=57004
2012-07-31 18:20:09 +00:00
Amine Khaldi 573f94870e [ATACTL]
* Add atactl from the Uniata suite. It should be useful for troubleshooting uniata.

svn path=/trunk/; revision=57003
2012-07-31 17:18:47 +00:00
Amine Khaldi 3864f6ae77 [DISK_NEW]
* Allow warnings here (3rd party code).

svn path=/trunk/; revision=57002
2012-07-31 16:47:04 +00:00
Alex Ionescu 838bc812fe [NTOSKRNL]: When dispatching a prototype PTE fault, call MiCompleteProtoPteFault instead of directly calling MiResolveProtoPteFault. Also add support/detection for clustering.
svn path=/trunk/; revision=57001
2012-07-31 07:32:19 +00:00
Alex Ionescu a2cb9d5ee2 [NTOSKRNL]: Additional support for session space. A few more ASSERTs and paranoia.
[NTOSKRNL]: Don't assume all prototype PTEs are cached, in fact none are in ReactOS at the moment! This resulted in the wrong hardware caching bits for the PEB/TEB and NLS Data which are using ARM3 section code.
[NTOSKRNL]: Also implement dirty page bit for prototype PTEs.

svn path=/trunk/; revision=57000
2012-07-31 07:11:52 +00:00
Alex Ionescu e97a40328f [NTOSKRNL]: Multiple fixes to faulting paths. Make some checks more explicit, support lock pages counter, update dirty bit when needed, and stub further support for session space.
svn path=/trunk/; revision=56999
2012-07-31 06:47:47 +00:00
Amine Khaldi f255f69861 * Align the stack on an 8-byte boundary for x86.
svn path=/trunk/; revision=56998
2012-07-30 22:28:05 +00:00
Amine Khaldi 0113c5402c [FREELDR/SETUPLDR]
* Leverage the object library option provided by CMake 2.8.8+ which will speed up the build even further.
* These wrapping conditions will go away as soon as we ship the new BE.

svn path=/trunk/; revision=56997
2012-07-30 16:57:55 +00:00
Jérôme Gardou 3fb00ba84a [MSVCRTEX]
- Add is(w)blank implementation

svn path=/trunk/; revision=56996
2012-07-30 12:56:25 +00:00
Jérôme Gardou 01197a3cc8 [INCLUDE]
- Add some more C99 math functions
- Fix definition of __forceinline and FORCEINLINE for C99
- Fix and add definition of _aligned_malloc and _aligned_free
- Fix definition of is(w)blank, as a C99 function, it is not in msvcrt.dll and has to be implemented in msvcrtex
All of this taken from the mingw-w64 project

svn path=/trunk/; revision=56995
2012-07-30 12:55:13 +00:00
Timo Kreuzer a06b1e416e [WIN32K]
Check if the dc surface is NULL instead of ASSERTing

svn path=/trunk/; revision=56994
2012-07-30 11:09:31 +00:00
Hervé Poussineau e78aab93b0 [FREELDR] i386: support drives bigger than ~4GB
See issue #6669 for more details.

svn path=/trunk/; revision=56993
2012-07-30 06:12:58 +00:00
Jérôme Gardou df58b26774 [OPENGL32]
- Fix build

svn path=/trunk/; revision=56992
2012-07-30 01:07:57 +00:00
Jérôme Gardou e929298f0f [INCLUDE/CRT]
- revert 56989.
Our headers are a lost cause. Just add the functions that I need.

svn path=/trunk/; revision=56991
2012-07-30 00:36:00 +00:00
Jérôme Gardou 022b762f7e [CMAKE]
- Add macro to add flags to a specific language.

svn path=/trunk/; revision=56990
2012-07-30 00:00:51 +00:00
Jérôme Gardou 6a6501c365 [INCLUDE/CRT]
- Partial update of math.h
Someone used to mingw-w64 headers system should look into this, I NEED those C99 functions!

svn path=/trunk/; revision=56989
2012-07-29 23:59:33 +00:00
Thomas Faber ca4b50adef [CMAKE]
- Revert 56985 for now, as it apparently breaks syscalls
See issue #7218 for more details.

svn path=/trunk/; revision=56988
2012-07-29 23:24:02 +00:00
Jérôme Gardou c9b13b573b [INCLUDE]
- Update gl.h from Mesa 8.0.4

svn path=/trunk/; revision=56987
2012-07-29 23:07:34 +00:00
Aleksey Bragin 8e69a449bd [NTOS/ARM3]
- Implement MiProtectVirtualMemory for VAD based allocator (it's very similar to the already implemented MiSetProtectionOnSection function). However it still doesn't fully work because support in other functions is missing (failed assertions in MiFlushTbAndCapture).
See issue #7216 for more details.

svn path=/trunk/; revision=56986
2012-07-29 22:18:23 +00:00
Thomas Faber d574e063d0 [CMAKE]
- Align the stack on a 16-byte boundary for x86 like any sensible compiler would, anyway. Should fix weird GCC 4.7 behavior.

svn path=/trunk/; revision=56985
2012-07-29 18:19:40 +00:00
Hervé Poussineau 408272b62f [FREELDR] Seek to correct sector number, even after ~4GB.
See issue #6669 for more details.

svn path=/trunk/; revision=56984
2012-07-29 17:36:31 +00:00
Timo Kreuzer d2d680b3ae [INCLUDES]
- Add _PRAGMA_WARNING_SUPPRESS() macro
- Fix definition of __analysis_noreturn for PREFAST runs
- Annotate RtlAssert with __analysis_noreturn everywhere
- Add proper annotations to all DbgPrint and DbgPrintEx definitions
- Suppress warnings for use of ProbeForRead outside of SEH

svn path=/trunk/; revision=56983
2012-07-29 17:25:05 +00:00
Timo Kreuzer f59a68d66e [SPEC2DEF]
Fix use of uninitialized variable warning

svn path=/trunk/; revision=56982
2012-07-29 15:49:29 +00:00
Hervé Poussineau f8b87477ce freeldr: seek to correct sector number, even after ~4GB.
See issue #6669 for more details.

svn path=/trunk/; revision=56981
2012-07-29 15:45:57 +00:00
Timo Kreuzer 268d481877 [WIN32K]
Check for NULL dc surface before dereferencing it in IntGdiRealizePalette.

svn path=/trunk/; revision=56980
2012-07-29 12:22:06 +00:00
Timo Kreuzer 85a3397af9 [WIN32K]
- Change some #defines to enums
- Cleanup some obsolete stuff

svn path=/trunk/; revision=56979
2012-07-29 11:20:05 +00:00
Amine Khaldi aa0fc5cdca [GDI32_APITESTS]
* Allow warnings when compiling with gcc.

svn path=/trunk/; revision=56978
2012-07-29 02:44:53 +00:00
Amine Khaldi 01b9338bc1 [VGA_NEW]
* Explicitly mark the functions as stdcall.

svn path=/trunk/; revision=56977
2012-07-29 02:38:10 +00:00
Amine Khaldi 6a16d0d04b [FBTUSB]
* Explicitly mark the functions as stdcall.

svn path=/trunk/; revision=56976
2012-07-29 02:29:12 +00:00
Amine Khaldi e819a3017f [CLASSPNP]
* Fix some more warnings.

svn path=/trunk/; revision=56975
2012-07-29 02:14:52 +00:00
Amine Khaldi 434f07a99c [DISK_NEW]
* Explicitly mark the functions as stdcall.
* Fix some warnings.

svn path=/trunk/; revision=56974
2012-07-29 02:05:26 +00:00
Amine Khaldi 79df779077 [CLASSPNP]
* Explicitly mark the functions as stdcall (NTAPI).. -mrtd changes the default calling convention, but name-decoration isn't affected by this. The -mrtd feature has its origin in some older linux-code-mode, and it's considered for removal in GCC 4.8.
* Fix some warnings.

svn path=/trunk/; revision=56973
2012-07-29 01:49:24 +00:00
Amine Khaldi 614db35f56 * We've been waiting, for a long time, for the mighty GCC version upgrade, but that was easier said than done, for the Windows build at least. Many have tried, to no avail, so Amine finally decided to step up, to give it a shot.. he went on and learned the dark arts of compiling GCC... and he succeeded !
* In the journey of running his GCC 4.7.1 compiled bootcd, two issues were revealed. Thomas kindly investigated them and fixed them, and as a result the bootcd boots to shell !
[CSRSRV]
* Fix the output parameter of ProcessLUIDDeviceMapsEnabled case in NtQueryInformationProcess() to be ULONG instead of BOOLEAN (as required).
* ASSERT that the function succeeds.
[SMSS]
* Move this condition up to the commented-out part (where it belongs).

svn path=/trunk/; revision=56972
2012-07-29 00:47:58 +00:00
Amine Khaldi 922ef66861 [NEWINFLIB]
* Back out r56969 for MSVC compatibility, a better approach is coming up soon.

svn path=/trunk/; revision=56971
2012-07-28 23:03:40 +00:00
Timo Kreuzer 6a17ab3c5e [WIN32K]
- Take translation into account when inverting an XFORMOBJ
- Always use the matrices from the DCATTR instead of DCLEVEL
- Mark Device-to-World translation as invalid when the Window Origin is modified
Fixes 7088
See issue #7088 for more details.

svn path=/trunk/; revision=56970
2012-07-28 18:31:24 +00:00
Amine Khaldi c41d0cf560 [NEWINFLIB]
* We don't need to define _CRT_NON_CONFORMING_SWPRINTFS for inflibhost.

svn path=/trunk/; revision=56969
2012-07-28 15:33:38 +00:00