Commit graph

51208 commits

Author SHA1 Message Date
Timo Kreuzer 9199599d20 [NTOSKRNL]
Mark lowest pages of P0BootStackData and KiDoubleFaultStackData as read-only to prevent unnoticed stack-overflow. CORE-4380 #resolve

svn path=/trunk/; revision=64130
2014-09-13 08:24:03 +00:00
Aleksandar Andrejevic a475a70e24 [NTVDM]
Start implementing the NTVDM mouse BIOS driver.


svn path=/trunk/; revision=64129
2014-09-13 02:02:44 +00:00
Jérôme Gardou 836ae31c1d [NTOSKRNL/GCC]
- Use 0x00800000 as base address. This doesn't change anything (still loaded at 0x80800000) and it produces debug symbols that GDB can understand
[CMAKE]
 - Get back to using DWARF2 symbols. They are a lot bigger, but at least they work
Now GDB can be used to source-level debug ntoskrnl.

svn path=/trunk/; revision=64128
2014-09-12 22:56:22 +00:00
Jérôme Gardou 1bbea7c093 [KDGDB]
- Add a callback mechanism permitting to "simulate" KD send <-> receive loop without having to actually communicate to GDB
 - Use that to update the program counter when cont'ing a breakpoint
Now cont'ing an assertion failure is possible, since we actually get beyond the int 3 instruction

svn path=/trunk/; revision=64127
2014-09-12 20:23:08 +00:00
Thomas Faber 476ad09335 [PSEH3]
- Add missing C_ASSERTs

svn path=/trunk/; revision=64124
2014-09-12 10:43:50 +00:00
Jérôme Gardou 9cc2b4e75c [KDGDB]
- introduce KDGDB, a KDCOM-like DLL, wrapping the KD protocol and the GDB remote protocol together.
It is not fully functional, but for now it permits source-level debugging in some modules. More will be added as I feel the need and find the time to work a bit more on it. (That is, unless an angel comes and resume the work)
To use it, set GDB and _WINKD_ to TRUE in your CMakeCache.txt. Using separate debug symbols is also a good idea.

svn path=/trunk/; revision=64121
2014-09-11 20:55:42 +00:00
Amine Khaldi b26a0236de [WIN32SS]
* Remove extraneous parentheses.
CORE-8516

svn path=/trunk/; revision=64120
2014-09-11 13:34:39 +00:00
Amine Khaldi e23636afda [WINEMP3.ACM]
* Link with mingwex.
CORE-8516

svn path=/trunk/; revision=64119
2014-09-11 13:24:10 +00:00
Amine Khaldi b758e85060 [OLEAUT32]
* Link with mingwex.
* Fall back to gas with vartype.c until http://llvm.org/bugs/show_bug.cgi?id=19027 is fixed.
CORE-8516

svn path=/trunk/; revision=64116
2014-09-11 11:03:20 +00:00
Amine Khaldi 8a8c6273fc [INCLUDES]
* Define DECLSPEC_HOTPATCH to nothing until http://llvm.org/bugs/show_bug.cgi?id=20888 is fixed.
CORE-8516

svn path=/trunk/; revision=64115
2014-09-11 10:50:15 +00:00
Amine Khaldi db90bb6299 [CMAKE]
* Don't set -Wno-unused-but-set-variable until http://llvm.org/bugs/show_bug.cgi?id=20906 is fixed or the warnings are fixed upstream.
CORE-8516

svn path=/trunk/; revision=64114
2014-09-11 10:43:57 +00:00
Amine Khaldi d84558f23a [GLU32]
* Link with mingwex.
* Allow multiple definitions at link time because longjmp exists in both our msvcrt and mingwex.
CORE-8516

svn path=/trunk/; revision=64113
2014-09-11 10:13:05 +00:00
Hervé Poussineau 364fbd6cea [CDFS]
- Correctly decode address of first session, which now uses MSF format since r64106

svn path=/trunk/; revision=64112
2014-09-10 19:45:57 +00:00
Amine Khaldi 9cf026de3a [CMAKE/CLANG]
* Do not add PIC and PIE related flags.
CORE-8516

svn path=/trunk/; revision=64111
2014-09-10 19:00:53 +00:00
Amine Khaldi 63012a3b59 [WIN32SS]
* Remove unused CompareSpans().

svn path=/trunk/; revision=64110
2014-09-10 18:49:29 +00:00
Hervé Poussineau 2d5c0c6269 [NTOS:IO]
- Support creating new registry keys when registering new interfaces
- IoSetDeviceInterfaceState: do not try to parse symbolic link name, as symbolic link name is enough to open the right object
- IoSetDeviceInterfaceState: send the notification on the right interface when registering interfaces on devices already having an interface


svn path=/trunk/; revision=64108
2014-09-10 16:05:44 +00:00
Amine Khaldi e40fc3d65f [RICHED20]
* Fall back to gas with some source files until http://llvm.org/bugs/show_bug.cgi?id=19027 is fixed.
CORE-8516

svn path=/trunk/; revision=64107
2014-09-10 16:03:22 +00:00
Hervé Poussineau fa4b180304 [CDFS] Use IOCTL_CDROM_READ_TOC instead of IOCTL_CDROM_GET_LAST_SESSION, which is not always available
svn path=/trunk/; revision=64106
2014-09-10 16:02:02 +00:00
Amine Khaldi 37ff67c8fc [CMAKE/CLANG]
* Link mingwex when needed because having it globally won't do.
CORE-8516

svn path=/trunk/; revision=64105
2014-09-10 15:56:48 +00:00
Amine Khaldi 009e72443d [CMAKE/CLANG]
* Do not pass -mwindows when linking executables.
CORE-8516

svn path=/trunk/; revision=64104
2014-09-10 15:34:05 +00:00
Thomas Faber de2119ac36 [CONSRV]
- Fix MSVC build

svn path=/trunk/; revision=64103
2014-09-10 13:52:31 +00:00
Hermès Bélusca-Maïto e393b80e07 [REACTOS]
Merge back condrv_restructure branch with everything up to revision 64079 (and up for maintenance), that made console kernel32 & winsrv CSR structures Win2k3 compliant.
CORE-7931 #comment Merged back to trunk in revision 64102.
CORE-7481 #comment kernel32 / winsrv console CSR structures are Win2k3-compliant in trunk since revision 64102 (and since revision 64079 in the condrv_restructure branch, see CORE-7931 for more details).

svn path=/trunk/; revision=64102
2014-09-10 00:08:04 +00:00
Hermès Bélusca-Maïto b56ba45255 [OLEACC]
Fix language ID, that made msvc compilation fail with the error:
oleacc\lang/oleacc_Ru.rc(27) : error RC2151 : cannot reuse string constants, 0(0x0) - "unknown object" already defined. Cannot add 0(0x0) - "
(and similar for the other strings).
And as usual: "Thanks GCC for not having warned us before"...

svn path=/trunk/; revision=64099
2014-09-09 23:02:39 +00:00
Amine Khaldi 58d6989040 [CMAKE/CLANG]
* Add -Wno-microsoft only for C modules at the moment (as we're using g++ for c++ modules).
CORE-8516

svn path=/trunk/; revision=64097
2014-09-09 18:42:43 +00:00
Amine Khaldi 43ca2f7692 [LIBSAMPLERATE]
* Actually, we have these function so we don't need to have inlined versions for them here.
CORE-8516

svn path=/trunk/; revision=64096
2014-09-09 18:35:49 +00:00
Amine Khaldi 7fffcd30aa [LIBSAMPLERATE]
* static __inline => extern __inline.
CORE-8516

svn path=/trunk/; revision=64095
2014-09-09 18:25:18 +00:00
Amine Khaldi 1931c699fc [CMAKE/CLANG]
* Globally link mingwex for C modules.
CORE-8516

svn path=/trunk/; revision=64094
2014-09-09 18:11:10 +00:00
Jérôme Gardou 1fdfbceee5 [SPEC2DEF]
- Fix GCC warning (weird doubled arguments for fprintf format)

svn path=/trunk/; revision=64093
2014-09-09 17:39:01 +00:00
Amine Khaldi 4810b26797 [WINE/LIST]
* Use an attribute that should work with both Clang and GCC. Brought to you by Thomas Faber.
CORE-8516

svn path=/trunk/; revision=64092
2014-09-09 17:25:25 +00:00
Amine Khaldi 8f51422b28 [CRT/INTRIN_X86]
* Add suffixes to satisfy Clang assembler.
CORE-8516

svn path=/trunk/; revision=64091
2014-09-09 16:39:19 +00:00
Amine Khaldi 12545de76f [NTOS:VF]
* Don't mark varargs functions as stdcall.

svn path=/trunk/; revision=64090
2014-09-09 16:32:51 +00:00
Amine Khaldi d68784c08f [NTOS]
* Fall back to gas with some source files until http://llvm.org/bugs/show_bug.cgi?id=19027 is fixed.
CORE-8516

svn path=/trunk/; revision=64088
2014-09-09 12:28:48 +00:00
Amine Khaldi 14ad4ab4f6 [CMAKE/CLANG]
* Clang c++ support is not there yet, so we'll use g++ until then.
CORE-8516

svn path=/trunk/; revision=64087
2014-09-09 12:14:52 +00:00
Amine Khaldi 273956fd2a [RTL]
* Remove unused asmv2hashW and DeviceRootW.

svn path=/trunk/; revision=64086
2014-09-09 12:06:01 +00:00
Timo Kreuzer 38d7031ac9 [PSEH]
- On clang builds we need to do the return twice trick, since we don't have asm goto, which would allow us to specify labels in the code where we can branch to on an exception. So we return back to from where we called the registration function and decide how to proceed from there nasedon the return value. For this we need to save the return address in the registration record and use it in __SEH3$_InvokeEmbeddedFilterFromRegistration

svn path=/trunk/; revision=64078
2014-09-07 21:40:07 +00:00
Timo Kreuzer cc9ee2cf1b [PSEH]
- Fix compilation of PSEH with Clang
- Fix _SEH3$_InvokeEmbeddedFilterFromRegistration

svn path=/trunk/; revision=64077
2014-09-07 20:52:20 +00:00
Amine Khaldi e9389a03f4 [DPLAY]
* Add the (empty) stub file to build.
* We don't need to link ntdll.
* dplay now compiles with Clang.
CORE-8516

svn path=/trunk/; revision=64076
2014-09-07 20:19:05 +00:00
Amine Khaldi 3fc8f2ce20 [NTOS:CC]
* Remove unused ExSectionInfoClass.

svn path=/trunk/; revision=64074
2014-09-07 19:16:30 +00:00
Daniel Reimer 6452361bbd [BOOTDATA]
Add libp11-kit-0.dll to optional components, because without it, our iexplore, sometimes FF and the Chrome installer lament about it missing.

svn path=/trunk/; revision=64073
2014-09-07 18:46:43 +00:00
Amine Khaldi 726d95b525 [OPENGL32/MESA]
* Zap some more unneeded variables/functions.
CORE-7499

svn path=/trunk/; revision=64072
2014-09-07 18:34:37 +00:00
Amine Khaldi 57ab19b141 [CALC]
* Fix Clang build.

svn path=/trunk/; revision=64071
2014-09-07 18:18:00 +00:00
Amine Khaldi 91020e4044 [CRT/MATH]
* Use the GCC version if inline assembly in ldexp() as it works with Clang too.

svn path=/trunk/; revision=64070
2014-09-07 18:13:52 +00:00
Christoph von Wittich 31ceb315a3 [crt]
add null check (for ntdll only)
fixes remaining test failure in ntdll:string

svn path=/trunk/; revision=64069
2014-09-07 18:11:50 +00:00
Amine Khaldi b4cec44624 [CRT]
* Use gas to compile except/cpp.c until http://llvm.org/bugs/show_bug.cgi?id=19027 is fixed.

svn path=/trunk/; revision=64067
2014-09-07 17:44:24 +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
Amine Khaldi 4a442e9d1b [PSEH3]
* Enable PSEH for Clang builds.

svn path=/trunk/; revision=64065
2014-09-07 17:24:08 +00:00
Amine Khaldi d269d9c801 [CMAKE/CLANG]
* Properly set CMAKE_STATIC_LIBRARY_SUFFIX and CMAKE_LINK_LIBRARY_SUFFIX for Clang builds.

svn path=/trunk/; revision=64064
2014-09-07 17:19:14 +00:00
Amine Khaldi ada8c2467a [SAL]
* Add some missing _Check_return_ annotations.

svn path=/trunk/; revision=64063
2014-09-07 17:10:44 +00:00
Amine Khaldi 6327d11e06 [CRT/INTRIN_X86]
* Skip some intrinsics when compiling with Clang.

svn path=/trunk/; revision=64062
2014-09-07 17:09:34 +00:00
Christoph von Wittich 85304acb22 [crt]
revert changes to streamout_char

svn path=/trunk/; revision=64061
2014-09-07 13:55:36 +00:00