Commit Graph
1439 Commits
Author SHA1 Message Date
Thomas Faber 88f12ca109 [DDK]
- Include <suppress.h> from wdm.h to satisfy __WARNING_MEMORY_NOT_ACQUIRED. Patch by Mark Jansen.
CORE-9657 #resolve

svn path=/trunk/; revision=67608
2015-05-09 22:49:37 +00:00
Ged Murphy 3f81100a8b Revert NTAPI changes.
MS uses stdcall by default (/gz), we don't and need to explicitly add this in the headers

svn path=/trunk/; revision=67571
2015-05-05 22:30:50 +00:00
Timo Kreuzer 472e68f392 [DDK]
Fix declaration of NdisCopyLookaheadData

svn path=/trunk/; revision=67565
2015-05-05 20:34:34 +00:00
Ged Murphy b9c0d08099 [DDK]
Fix the FS filter callback definitions

svn path=/trunk/; revision=67563
2015-05-05 18:54:28 +00:00
Timo Kreuzer 0c0c8d637f [DDK/XDK]
- Improve definition of ExInterlockedCompareExchange64 and interlocked SList functions and improve some annotations based on native header
- Update processor feature constants

svn path=/trunk/; revision=67521
2015-05-02 22:20:18 +00:00
Timo Kreuzer 49dfd75396 [XDK/DDK/NDK]
Simplify RtlXxxByteSwap macros (use them unconditionally)

svn path=/trunk/; revision=67520
2015-05-02 22:19:47 +00:00
David Quintana fd81042a22 Note to self: review diffs and remove temporary changes BEFORE commiting (not after).
svn path=/trunk/; revision=67484
2015-04-30 22:09:11 +00:00
David Quintana 3933ca6bce This commit brings support for compiling ReactOS with Visual Studio 2015 RC (and possibly the final release).
[BUILD]
msvc.cmake: Disable thread-local static initialization.
CMakeLists.txt: Disable PCH for VS2015.
configure.cmd: Make it aware of cl.exe version 19.x

[CPPRT]
Add alias for the new variants of the delete operators.

[BROWSEUI]
[MFIFS]
[FRAMEDYN]
[NDIS]
[DDK]
[PSDK]
[STLPORT]
Add explicit declarations of the new delete operators for those modules that don't use the WITH_RUNTIME option.

[WIDL]
[WPP]
Do not alias the snprintf family of functions to the _snprintf variants, since VS14 already declares them internally.

svn path=/trunk/; revision=67483
2015-04-30 21:48:26 +00:00
Timo Kreuzer 44ea2025e2 [INCLUDE]
Fix the Interlocked function mess. Implement all Interlocked functions in xdk/interlocked.h as they exist in native. Use this header to generate wdm.h and winnt.h. Remove Interlocked definitions from winbase.h. Fix definition of ExInterlockedAddLargeInteger.

svn path=/trunk/; revision=67173
2015-04-12 12:40:49 +00:00
Timo Kreuzer 217f3f66f1 [INCLUDE]
- Add missing KeMemoryBarrierWithoutFence, NUMBER_POOL_LOOKASIDE_LISTS, MM_SHARED_USER_DATA_VA, MM_EMPTY_PTE_LIST, MM_EMPTY_LIST, P*E_PER_PAGE, SESSION_POOL_LOOKASIDES, MiPdeToPte for ARM
- Fix KI_USER_SHARED_DATA for ARM based on native DDK

svn path=/trunk/; revision=67168
2015-04-12 09:48:00 +00:00
Timo Kreuzer 77ef72e473 [I8042PRT]
Implement parsing of SMBIOS tables to be able to apply hardware specific hacks. First hack fix attempt is on Microsoft VirtualMachine.

svn path=/trunk/; revision=66823
2015-03-19 21:50:53 +00:00
Hermès Bélusca-Maïto 02b663f961 [DDK]: Fix english
[NTVDM]: Make export library. Define the Vdm(Un)MapFlat functions if needed.

svn path=/trunk/; revision=66821
2015-03-19 21:03:58 +00:00
Hermès Bélusca-Maïto 0c66b36a42 [DDK]: Update VDD headers.
svn path=/trunk/; revision=66820
2015-03-19 21:00:25 +00:00
Timo Kreuzer 631b0ae9a1 [PSDK/DDK/XDK]
- Add mising wmiguid.h
- Fix parameter of IoWMIOpenBlock based on latest WDK
- Add a few missing constants to wmistr.h

svn path=/trunk/; revision=66813
2015-03-19 16:30:45 +00:00
Timo Kreuzer 2f63c537d6 [DDK/PSDK/NDK/XDK]
- Improve annotations for some functions
- Sync winnt.h with XDK

svn path=/trunk/; revision=66720
2015-03-15 00:05:50 +00:00
Amine Khaldi d534d99907 [DDK] Bring nt_vdd.h up to DDK formatting standards and use annotations. NFC.
svn path=/trunk/; revision=66682
2015-03-14 10:50:52 +00:00
Hermès Bélusca-Maïto c73bb5a49f [NTVDM]
- Export VDDInstallMemoryHook and VDDDeInstallMemoryHook.
- Stubplement and export VDDAllocMem, VDDFreeMem, VDDIncludeMem and VDDExcludeMem (undocumented).

svn path=/trunk/; revision=66670
2015-03-13 23:26:33 +00:00
Hermès Bélusca-Maïto 682debaaf6 [NTVDM]
- Move the VDD memory handler API prototypes to the corresponding DDK header.
- Fix few function arguments types and add few more comments :)
- Move all NTVDM-memory related functions to memory.c
- Prefer checking for !IsListEmpty(&list) instead of doing list.Flink != &list (ehh! NTVDM is not win32k!!)

svn path=/trunk/; revision=66669
2015-03-13 22:38:44 +00:00
Thomas Faber 07aa0d698c [DDK][NDK][XDK]
- Update some definitions to match WDK8.1. Fixes a few compatibility issues between NDK and WDK.
CORE-9356 #resolve

svn path=/trunk/; revision=66663
2015-03-11 09:21:10 +00:00
Timo Kreuzer bb60692b92 [SAL]
- kernelspecs.h: Add IRQL level defines, remove a duplicate annotation and make some definitions more consistent
- concurrencysal.h: Add missing annotations (only dummies so far)
- driverspecs.h: Add some missing annotations
- sal_old.h: remove __inner_callback, which is in sal.h

svn path=/trunk/; revision=66654
2015-03-10 09:10:00 +00:00
Timo Kreuzer 83779b37e6 [PSDK/DDK/XDK]
- Make NT_ASSERT() give the MSVC static analyzer a hint that the condition can now be excpected to be true. This adds __analysis_unreachable(), which uses __assume(0) on _PREFAST_ builds. This is neccessary, since it seems impossible to make MSVC respect __analysis_noreturn / __declspec(noreturn) on an intrinsic prototype like __int2c().

svn path=/trunk/; revision=66642
2015-03-10 00:10:46 +00:00
Timo Kreuzer 1e9299af24 [PSDK]
Fix NULL-termination bugs in ntstrunsafe.h

svn path=/trunk/; revision=66637
2015-03-10 00:09:30 +00:00
Timo Kreuzer 4beaf120e7 [DDK/XDK]
- Fix some prototypes in wdm.h (PMDLX -> PMDL)
- Fix annotations for ExFreePool(WithTag)

svn path=/trunk/; revision=66636
2015-03-10 00:09:20 +00:00
Johannes Anderwald d50415a948 [PSDK]
- fix build

svn path=/trunk/; revision=66380
2015-02-21 10:14:00 +00:00
Thomas Faber 3df35a13be [DDK]
- Add additional list entry checks that can be optionally enabled by defining EXTRA_KERNEL_LIST_ENTRY_CHECKS. These checks warn against attempts to remove items from an empty list, which can easily be an error (and is trivial to avoid where it's not).
- Enable these checks by default for ReactOS code
CORE-8419 #resolve

svn path=/trunk/; revision=66208
2015-02-08 14:22:26 +00:00
Thomas Faber a5667eedbc [DDK]
- Add list entry security checks equivalent to those in current WDKs. This is useful for ROS because it detects memory corruption very quickly.
CORE-8419

svn path=/trunk/; revision=66206
2015-02-08 13:22:06 +00:00
Thomas Faber f142ee5329 [DDK]
- Add RtlFailFast and FAST_FAIL_* codes
CORE-8419

svn path=/trunk/; revision=66204
2015-02-08 10:57:47 +00:00
Timo Kreuzer d4579fbe00 [DDK]
ExInitializePushLock is NTAPI!

svn path=/trunk/; revision=65627
2014-12-13 14:37:34 +00:00
Hermès Bélusca-Maïto fc11139981 [DDK]
Add few VDD API prototypes:
- VDDReserve/ReleaseIrqLine to get a "lock" on an IRQ line (so that VDDs can check whether some IRQs are free or not).
- Add DMA services.

svn path=/trunk/; revision=65436
2014-11-21 00:13:51 +00:00
Hermès Bélusca-Maïto 6a9276ecb9 [DDK]: VDD IO handlers are WINAPI and not something undefined (CDECL ... ?). Double-checked by V.
svn path=/trunk/; revision=65002
2014-10-26 01:28:32 +00:00
Timo Kreuzer 5c0f6850a4 [XDK/DDK]
Improve debugprint in __assert_annotationA/W

svn path=/trunk/; revision=64905
2014-10-22 19:30:27 +00:00
Timo Kreuzer 0a9f51e62d [XDK/DDK/PSDK]
- Move FsRtl functions to fsrtlfuncs.h
- Improve formatting of a few macros
- Add missing NTKERNELAPI
- Add a "special" kind of "ASSERT" to ListEntry64To32

svn path=/trunk/; revision=64513
2014-10-03 19:36:22 +00:00
Jérôme Gardou d4fd3a072f [DDK]
- Addendum to r64151
Complain on IRC, then complain on ros-dev, then steal fixes from your peers, then do as if nothing happened.

svn path=/trunk/; revision=64155
2014-09-14 22:41:27 +00:00
Amine Khaldi 00ad9c4760 [XDK][DDK]
* Handle the rest of cases about the order of pragma and symbol declaration.

svn path=/trunk/; revision=64151
2014-09-14 15:49:35 +00:00
Amine Khaldi 3ff848136a [XDK][DDK]
* Addendum to r64148.

svn path=/trunk/; revision=64150
2014-09-14 15:40:37 +00:00
Amine Khaldi cc36d06006 [XDK][DDK]
* Work around what looks like a bug in GCC's handling of #pragma redefine_extname. Its behavior regarding additional underscore prefixes depends on the order of pragma and symbol declaration with GCC, while it's consistent with Clang. Brought to you by Thomas Faber, reviewed by Timo Kreuzer.
CORE-8516

svn path=/trunk/; revision=64148
2014-09-14 15:19:20 +00:00
Amine Khaldi 11a6a9d17b [NTSTRSAFE]
* Don't mark varags functions as stdcall.

svn path=/trunk/; revision=64066
2014-09-07 17:30:44 +00:00
Timo Kreuzer c8e3595247 [XDK/DDK]
- Remove useless inline definition of InterlockedBitTestAnd(Re)Set, which was not used anyway.
- Update template for ntdef.h

svn path=/trunk/; revision=64046
2014-09-05 21:54:49 +00:00
Timo Kreuzer 3ffbea35b3 [DDK]
- Remove NTKERNELAPI from Rtl String routines
- Remove obsolete hack definition
- Fix a typo, spotted by Thomas

svn path=/trunk/; revision=63269
2014-05-12 23:40:14 +00:00
Timo Kreuzer df0efd5556 [DDK/XDK/NTOSKRNL/DRIVERS]
Fix incompatible definition of a number of NTOSKRNL data imports. These imports are declared in MS DDK in a way that is usually not how you would declare data imports. The proper way of doing it is using _DECLSPEC_INTRIN_TYPE(dllimport) or in this case NTKERNELAPI, which will cause the compiler to directly dereference the __imp__FooBar symbol. MS has declared some of these variables directly as pointers without using dllimport. This works with MS DDK, since it's import libraries contain aliases (like _FooBar) to the import symbols (__imp__FooBar). Neither MS LINK nor DLLTOOL create these aliases in the import libs, which is good, since hacks like these are dangerous. To make the original declarations work without using macros (which can conflict with other things, like for example the KdDebuggerEnabled member in KUSER_SHARED_DATA) these aliases have to be generated differently. Luckily both MSVC and GCC support a pragma that does exactly this. Fix the incompatible use in our drivers and the broen(!) use of KdDebuggerEnabled in kdcom (which was writing a PBOOLEAN value (FALSE == 0 == NULL, so no warning) into the location that is really a BOOLEAN, possibly overwriting other data. Finally get rid of a number of hacks in ntoskrnl, where prefixed versions were used to not conflict with the DDK definitions.

svn path=/trunk/; revision=63247
2014-05-11 23:11:16 +00:00
Timo Kreuzer 2b89f1925e [KS/NTOSKRNL/WIN32K] Fix MSVC warnings
[WMILIB] Don't put it in a cab file, so we can use it in first stage
[DDK/VDDSVC.H] use the 16 bit interface only on MIPS
[WINE/PORT.H] WIN32 -> _WIN32
[NTOSKRNL] KfAcquire/ReleaseSpinLock -> KeAcquire/ReleaseSpinLock
[NTOSKRNL] Make sure KeUpdateSystemTime returns properly on non-x86 builds

svn path=/trunk/; revision=63220
2014-05-10 14:33:37 +00:00
Aleksandar Andrejevic c32b8d2f39 [BRANCHES]
Merge the NTVDM branch back to trunk. New/changed components are: ntvdm, fast486, basesrv,
ntdll, kernel32 and csrsrv.


svn path=/trunk/; revision=63177
2014-05-06 17:06:47 +00:00
Thomas Faber 3bf3d743b5 [NDK][DDK][XDK]
- Move BITMAP_RANGE structure to NDK where it belongs

svn path=/trunk/; revision=62631
2014-04-05 17:17:47 +00:00
Thomas Faber 0f74d012d4 [DDK][NDK]
- Fix some members of SHARED_CACHE_MAP
- Move MBCB to NDK where it belongs

svn path=/trunk/; revision=61708
2014-01-19 15:05:23 +00:00
Thomas Faber 070f745c24 [DDK]
- Add missing reserved fields to NDIS51_MINIPORT_CHARACTERISTICS

svn path=/trunk/; revision=61688
2014-01-19 09:54:14 +00:00
Thomas Faber 32a9726da2 [DDK][XDK]
- Do not evaluate the NT_ASSERT macro's parameter before stringifying it. Forgot this in r61008/CORE-7758

svn path=/trunk/; revision=61686
2014-01-19 09:28:53 +00:00
Timo Kreuzer d3872b419c [DDK/XDK]
- Add missing _KEY_USER_FLAGS_INFORMATION
- Fix some FSCTL_* constants, add Win7/8 ones
- Sync DDK/XDK (just a reminder, you are supposed to fix XDK headers and simply regenerate the DDK headers from them)

svn path=/trunk/; revision=61567
2014-01-07 20:17:01 +00:00
Pierre Schweitzer ad8fe5ab95 [DDK]
Remove stray '\'

svn path=/trunk/; revision=61420
2013-12-25 22:25:36 +00:00
Thomas Faber 154b389724 [DDK][XDK]
- Do not evaluate the ASSERT macro's parameter before stringifying it
CORE-7588 #resolve

svn path=/trunk/; revision=61008
2013-11-16 15:00:11 +00:00
Thomas Faber 82703397cf [CLASSPNP]
- Do not disable compiler warnings
- Fix a ton of them

svn path=/trunk/; revision=60922
2013-11-10 20:54:19 +00:00