Hermès Bélusca-Maïto
65758cc3b4
[FMIFS] Whitespaces formatting only.
2020-11-22 21:34:04 +01:00
Jérôme Gardou
f54c7b646c
[VMAKE/WIDL] Properly fix build (try 3)
2020-11-20 19:57:48 +01:00
Jérôme Gardou
72d9471424
[CMAKE] Fix host tools dependency tracking
2020-11-20 19:57:48 +01:00
Jérôme Gardou
8297109b95
[CMAKE/WIDL] Fix build (try 2)
2020-11-20 10:17:43 +01:00
Jérôme Gardou
acfff0919e
[CMAKE/WIDL] Fix build
2020-11-20 10:12:31 +01:00
Jérôme Gardou
b587e7b32e
[CMAKE/WIDL] Run widl from the source directory
...
This dramatically improves ccache direct hit rate as now the generated files are identical across build trees
2020-11-20 09:47:33 +01:00
Jérôme Gardou
02f4c755b8
[SDK] Use FORCEINLINE instead of inline
2020-11-16 16:58:10 +01:00
Jérôme Gardou
b0abd14b03
[ATL] Declare pointer as return type for functions returning pointers
2020-11-16 16:58:10 +01:00
Jérôme Gardou
281389b7e7
[CRT] Use ASM aliases for CLang builds
2020-11-16 16:58:10 +01:00
Jérôme Gardou
15c9f63b65
[MSVCRTEX] Add some floating point functions for CLang build
...
Clang makes optimisations requiring functions not present in msvcrt
2020-11-16 16:58:10 +01:00
Jérôme Gardou
3936c3f19e
[CRT] Fix __forceinline definition for clang
2020-11-16 16:58:10 +01:00
Jérôme Gardou
f96e47db43
[CRT] Fix intrinsics definition with clang
2020-11-16 16:58:10 +01:00
Jérôme Gardou
edc1f3ca56
[CMAKE] Fix use of CLang
...
- Updated toolchain file
- set GCC variable when using CLang in "GCC mode"
- Properly retrieve GCC support libraries
- Various flags needed to get this going
2020-11-16 16:58:10 +01:00
Victor Perevertkin
901c457b63
[PSDK] Add more 32 and 64-bit definitions to ntddscsi.h
2020-11-13 03:15:31 +03:00
Hermès Bélusca-Maïto
be01e6d76f
[XDK] Update the definition of DEBUG_DEVICE_DESCRIPTOR and related structures with Vista,7,8,10 additions.
...
CORE-17360
Information from:
- https://docs.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddk/ns-ntddk-debug_device_descriptor
- https://www.vergiliusproject.com
- https://codemachine.com
2020-11-09 22:33:02 +01:00
Jérôme Gardou
bf04126e02
|CMAKE] Use RULE_LAUNCH_COMPILE property to handle ccache
2020-11-09 10:47:19 +01:00
Timo Kreuzer
743c378ed1
[CMAKE] Add architecture to our build string
...
This introduces a new CMake variable WINARCH, which what Windows usually uses ("x86" instead of "i386") e.g. in sxs names.
2020-11-07 18:40:45 +01:00
Timo Kreuzer
0b0bb1a93b
[SPEC2DEF] Implement support for private exports
2020-11-07 18:40:03 +01:00
Victor Perevertkin
7c734db034
[WDF] Enable Resource and Interrupt APIs
2020-11-04 19:34:14 +03:00
Victor Perevertkin
1f377076d7
[WDF] Fix KMDF so it can compile with ReactOS SDK
...
Not all files are included, but these are necessary to compile cdrom driver.
So far it can only be statically linked with drivers, a proper
implementation requires wdfldr helper driver
2020-11-03 00:06:27 +03:00
Victor Perevertkin
8a978a179f
[WDF] Add Windows Driver Framework files
...
Takern from Microsoft GitHub repo:
d9c6040fe9
Licensed under MIT
2020-11-03 00:06:26 +03:00
Victor Perevertkin
545df81502
[KMDF] Make KMDF headers compatible with our SDK and compilers
2020-11-03 00:06:25 +03:00
Victor Perevertkin
40462c924e
[KMDF] Add Kernel-Mode Driver Framework headers v1.17
...
Taken from Microsoft GitHub repo:
d9c6040fe9
Licensed under MIT
2020-11-02 22:07:15 +03:00
Victor Perevertkin
5c7ce4475e
[REACTOS] Cleanup INIT and some PAGE section allocations
...
- Change INIT_FUNCTION and INIT_SECTION to CODE_SEG("INIT") and DATA_SEG("INIT") respectively
- Remove INIT_FUNCTION from function prototypes
- Remove alloc_text pragma calls as they are not needed anymore
2020-11-02 21:45:31 +03:00
Victor Perevertkin
658f742c2d
[NDK][CMAKE] Introduce DATA_SEG and CODE_SEG macro
...
These are for putting code and data to non-default sections
At the same time, move INIT section attributes declaration to cmake files
2020-11-02 21:27:06 +03:00
Timo Kreuzer
2c791cdde7
[CRT] Remove duplicated atexit/onexit code
...
This removes the broken wine version of atexit and onexit. It keeps only dllonexit, which is implemented properly. The previous __call_atexit is moved to where the mingw onexit/atexit code is and adjusts it to work with the existing code. A call to __call_atexit is added in __tmainCRTStartup after the main function was called.
2020-11-01 09:33:14 +01:00
Timo Kreuzer
d685dcee9b
[CMAKE] Rename def files for import libraries on MSVC builds to *_implib.de like on GCC
2020-11-01 09:33:14 +01:00
Timo Kreuzer
2a8c680dbe
[NTOS:KE:X64][NTDLL:X64] Implement KiUserExceptionDispatcher and fix KiDispatchExceptionToUser
2020-10-31 14:23:16 +01:00
Timo Kreuzer
a016ccd117
[NTOS:KE:X64][ASM:X64] Fix delivery of APCs
...
- Deliver pending APCs on trap exit
- Pass the trapframe of KiApcInterrupt to KiDeliverApcs, not NULL.
- Fix parameter passing from KiSwapContext to KiSwapContextInternal and KiSwapContextResume, so that the ApcBypass parameter is not uninitialized
- Fix return value of KiSwapContextResume to correctly indicate whether we want to have APCs directly delivered or not (when there are non, or when delivery is suppressed)
2020-10-31 14:23:16 +01:00
Timo Kreuzer
7e6dce6aa1
[ASM:X64] Save GS base MSR in trap frame
2020-10-31 14:23:16 +01:00
Timo Kreuzer
8ec888487a
[ASM:X64] ASSERT that interrupts are enabled, when returning to user mode
2020-10-31 14:23:16 +01:00
Timo Kreuzer
ce5aa24c50
[ASM:X64] Add initial version of kxamd64.inc, macamd64.inc
2020-10-31 14:23:16 +01:00
Timo Kreuzer
fe36f081c7
[COMPILER_APITEST] Add SEH tests from MS ( #2435 )
...
* [COMPILER_APITEST] Import MS EH/SEH tests
Taken from https://github.com/microsoft/compiler-tests
* [CRT] Add missing declaration of _longjmpex
* [COMPILER_APITEST] Add cmake build files for MS SEH test
It is built as a static library
* [COMPILER_APITEST] Fix GCC build of MS SEH tests
There are a number of hacks in there now. Also the volatile hacks should be separated and sent upstream.
* [COMPILER_APITEST] Fix x64 build of MS SEH tests
* [COMPILER_APITEST] Fix clang build of MS SEH tests
* [COMPILER_APITEST] Include MS SEH tests
2020-10-31 11:08:27 +01:00
Timo Kreuzer
0e5a4d5afe
[PSDK] Import some SAL headers from MS
...
Taken from https://github.com/microsoft/ChakraCore/tree/master/pal/inc/rt
* Move _Check_return_opt_ and _Check_return_wat_ to crtdefs.h
* Update sal.h from https://github.com/microsoft/ChakraCore/blob/master/pal/inc/rt/sal.h
* Import no_sal2.h from MS and remove the one in NDK
* Import specstrings.h from MS
* Import specstrings_strict.h from MS
* Add specstrings_undef.h (based on defines in specstrings_strict.h)
* Remove __REACTOS__ hacks from cdfs
2020-10-29 06:51:28 +01:00
Serge Gautherie
a2a6038e56
[CMAKE] MSVC RUNTIME_CHECKS is a 'Debug'-only feature
...
"cl : Command line error D8016 : '/Ox' and '/RTC1' command-line options are incompatible"
Addendum to 92dfec219d
.
2020-10-24 04:28:16 +03:00
Jérôme Gardou
23e04ae1ee
[CMAKE] Use an INTERFACE library to perform the msvcrt <-> msvcrtex binding
2020-10-22 18:07:27 +02:00
Jérôme Gardou
5c25e816bf
[CMAKE] Only link msvcrtex to win32cui, win32gui, win32dll, win32ocx and cpl modules
2020-10-22 18:07:27 +02:00
Jérôme Gardou
840fe4d6ac
[CMAKE] Introduce the REACTOS_MODULE_TYPE target property
...
And set it in set_module_type function
2020-10-22 18:07:27 +02:00
Jérôme Gardou
bbe47e61b1
|CMAKE] Use ExternalProject for host-tools build
2020-10-22 09:31:11 +02:00
Katayama Hirofumi MZ
89bd2d12da
[INCLUDE] Use HeapAlloc/HeapFree in layout.h
...
CORE-17341
2020-10-22 08:07:32 +09:00
Katayama Hirofumi MZ
de8d156e2c
[SHELL32] Resizable for SHBrowseForFolder ( #3299 )
...
Make the dialog box of SHBrowseForFolder function resizable. CORE-17341
2020-10-21 22:25:16 +09:00
Jérôme Gardou
ab825334dd
Apply suggestions from code review
...
Beautification and clarity
Co-authored-by: Victor Perevertkin <victor@perevertkin.ru>
Co-authored-by: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
2020-10-20 21:44:54 +02:00
Jérôme Gardou
00ed72d7e8
[CMAKE] Get rid of add_compile_flags
...
Use add_compile_options and the like instead
2020-10-20 21:44:54 +02:00
Jérôme Gardou
84621b3634
[CMAKE] Get rid of replace_compiler_option macro
...
This is not used anymore
2020-10-20 21:44:54 +02:00
Jérôme Gardou
683489ccf1
[CMAKE] Use -ffile-prefix-map for GCC builds
...
And also simplify the __RELFILE__ macro definition for the other cases
2020-10-20 21:44:54 +02:00
Jérôme Gardou
ed61512236
[CMAKE] Get rid of add_compile_flags_language macro
...
in favor of add_compile_options and the like with generator expressions
Also take this as an opportunity to remove the C++11 standard hack, GCC 8 now defaults to C++14
2020-10-20 21:44:54 +02:00
Jérôme Gardou
7e116f0ef3
[CMAKE] Get rid of replace_compile_flags
...
Introduce a finer-grained remove_target_compile_option instead
2020-10-20 21:44:54 +02:00
Jérôme Gardou
b52fa999eb
[CMAKE] Get rid of replace_compile_flags_language macro
...
It was only used in the set_cpp macro
2020-10-20 21:44:54 +02:00
Jérôme Gardou
907025a018
[CMAKE] Introduce the atl_classes interface library
...
This takes care of adding the relvant include directory and the _ATL_NO_EXCEPTIONS define, if needed
2020-10-20 21:44:54 +02:00
Jérôme Gardou
8b28f8d9ba
[CMAKE] Allow INTERFACE libraries for MSVC IDEs
2020-10-20 21:44:54 +02:00