Timo Kreuzer
0520c75aaf
[CRT] Implement __C_specific_handler
2021-06-05 13:52:42 +02:00
Timo Kreuzer
f1ed97d6cc
[NTOS:KE/x64] Implement KiSetTrapContext
...
KiSetTrapContext is an asm wrapper around RtlSetUnwindContext, which first stores an exception frame to assure that all non-volatile registers were put on the stack, then calls RtlSetUnwindContext to update their first saving positions on the stack and finally restore the exception frame to potentially load any updated registers, that haven't been saved elsewhere on the stack.
2021-06-02 18:25:36 +02:00
Timo Kreuzer
e801b7dda2
[RTL/x64] Implement RtlpCaptureNonVolatileContextPointers and RtlSetUnwindContext
...
RtlpCaptureNonVolatileContextPointers walks the stack and captures the addresses of all non-volatile registers on the stack, when they have been saved first. This is needed to be able to fix up the non-volatile on a system call, which doesn't capture non-volatiles, but relies on them to be restored by the callees.
Instead of only checking for the TargetFrame, also check for a mode change, i.e. RIP went from kernel to user, in which case the target frame was not reached yet, because it was too large, but processing can't continue here.
RtlSetUnwindContext uses RtlpCaptureNonVolatileContextPointers to set the non-volatile registers in the the stack. They will be picked up, when returning back or unwinding, e.g. to the system call handler.
2021-06-02 18:25:36 +02:00
Stanislav Motylkov
11687e9e43
[CRT][ARM] Fix uninitialized variables caught by RTC
...
CORE-17613
2021-06-02 13:18:40 +03:00
Timo Kreuzer
0c3812eb7e
[RTL/x64] Implement RtlRestoreContext
2021-05-29 21:20:48 +02:00
Timo Kreuzer
abb338b13d
[RTL/x64] Improve RtlCaptureContext
...
Use movaps instead of movdqa, it does the same thing, but is one byte shorter.
Shuffle instructions around a bit to maximize parallel execution.
2021-05-29 21:20:48 +02:00
Timo Kreuzer
3831c0ca31
[RTL/x64] Improve RtlInitializeContext
2021-05-29 21:20:48 +02:00
Timo Kreuzer
db0c59cbd4
[CRT] Use the asm version of sqrt on amd64
2021-05-28 11:52:42 +02:00
Timo Kreuzer
90a0e426ed
[NTOS:KE] Add IRQL checks and fix KiInitiateUserApc
2021-05-28 11:52:42 +02:00
Timo Kreuzer
42e1fefcc6
[ASM] Clear interrupt flag in ExitTrap before returning
2021-05-28 11:52:42 +02:00
Hermès Bélusca-Maïto
7c3aabc088
[CONUTILS] Implement ConSetThreadUILanguage() as a wrapper for kernel32!SetThreadUILanguage().
...
CORE-17601
Dynamically load SetThreadUILanguage(), so as to support systems where this API is not present.
Hopefully implemented in a thread-safe manner.
2021-05-26 01:42:10 +02:00
Hermès Bélusca-Maïto
35f499e52f
[CONUTILS][CMD] Add and use a helper ConStdStreamsSetCacheCodePage() macro instead of repeatedly calling ConStreamSetCacheCodePage() on the standard streams.
2021-05-26 01:42:09 +02:00
Hermès Bélusca-Maïto
f268430c05
[CONUTILS] Update some documentation.
2021-05-26 01:42:09 +02:00
Hervé Poussineau
1a1dac04c7
[SMLIB] Implement SmStartCsr and SmStopCsr
2021-05-25 19:02:16 +02:00
Mark Jansen
5f94b23d2b
[HOST-TOOLS] Configure environment for MSVC cross-compiling
...
This makes ARM builds on a non-arm host work again.
CORE-17542
CORE-17517
2021-05-24 17:34:49 +02:00
Mark Jansen
a555892027
[SDK] Remove duplicate definition
2021-05-24 17:34:49 +02:00
Mark Jansen
0911e8f457
[CMAKE] Add some arm/arm64 specific paths
...
CORE-17517 CORE-17518
2021-05-24 17:34:28 +02:00
Eric Kohl
894cc4ac0c
[dnsapi][dnsrslvr] Implement DnsFlushResolverCacheEntry_A/_UTF8/_W
2021-05-24 14:43:30 +02:00
Mark Jansen
18e95f5a4e
[CMAKE] Store and re-use M4 and BISON_PKGDATADIR env variables
...
ROSBE-174
2021-05-22 16:38:17 +02:00
Mark Jansen
b58c3d73ca
[RTL][KERNEL32] Move the STUB printing code to a place where it's actually called
2021-05-22 16:33:19 +02:00
Jérôme Gardou
a3629ab08b
[RTL] SAL-annotate RtlUnicodeStringToCountedOemString
...
Brought to you by Hermès
2021-05-19 22:50:29 +02:00
Jérôme Gardou
8d1e01be0e
[NLS] Use files provided by Microsoft to generate most of our NLS files
...
Instead of binary blobs coming from who-knows-where
CORE-17571
2021-05-19 22:50:29 +02:00
Jérôme Gardou
79b2d9c2ff
[TXT2NLS] Rewrite the tool
...
With support for multibyte codepages & glyph tables
CORE-17571
2021-05-19 22:50:29 +02:00
Jérôme Gardou
1549f0837f
[SDK] Turn txt2nls into a host tool
2021-05-19 22:50:29 +02:00
Jérôme Gardou
30f2ad7949
[RTL] Properly truncate 8dot3 names when using a MultiByte OEM code page
...
CORE-17571
2021-05-19 22:50:29 +02:00
Jérôme Gardou
49fcbe7cd8
[RTL] Fix RtlIsValidOemCharacter implementation for Multibyte code pages
...
CORE-17571
2021-05-19 22:50:29 +02:00
Jérôme Gardou
1b08836338
[RTL] Properly implement RtlUnicodeToOemN
...
CORE-17571
2021-05-19 22:50:29 +02:00
Jérôme Gardou
53a6c44f74
[NTDLL_APITEST] Add some tests for RtlUnicodeStringToCountedOemString
...
CORE-17571
2021-05-19 22:50:29 +02:00
Dmitry Borisov
999345a4fe
[XDK] Update the prototype of IO_COMPLETION_ROUTINE
2021-05-19 20:14:29 +02:00
Jérôme Gardou
0f723105c6
[CMAKE] Allow compiling amd64 port with GCC on Windows
...
Dedicated to Daniel
2021-05-19 14:13:51 +02:00
Jérôme Gardou
3adf450867
[REACTOS] Addendum to 5c7ce4475e
- Fix MSVC 2015 build
...
Put data into PAGEDATA or INITDATA sections
Keep section declaration for prototypes
CORE-17540
2021-05-12 11:04:29 +02:00
Dmitry Borisov
6e33c8ffd3
[PEFIXUP] Fixup of resource sections in GCC builds. ( #3594 )
...
Make resource sections discardable for kernel-mode drivers and DLLs.
2021-05-10 00:36:38 +02:00
George Bișoc
0fe7fdbdea
[NDK][NTOS:SE] Fix the member offsets in TOKEN, again...
...
The member offsets in comments were wrong again, whoops....
2021-05-09 18:17:53 +02:00
George Bișoc
f5dc1c77b5
[NDK][NTOS:SE] Add the missing "LogonSession" member to TOKEN structure
...
And also fix the wrong member offsets in comments. The said offset values are based upon the ones retrieved with WinDBG.
2021-05-09 17:34:02 +02:00
Hermès Bélusca-Maïto
9e0a3cdf6c
[PEFIXUP] Add support for overriding the attributes of specific PE sections. ( #3598 )
...
Use a syntax identical to the one from the EDITBIN tool:
--section:name[=newname][,[[!]{CDEIKOMPRSUW}][A{1248PTSX}]]
https://docs.microsoft.com/en-us/cpp/build/reference/section-editbin?view=msvc-160
2021-05-09 01:39:21 +02:00
Mark Jansen
264aaa9e05
[RTL] Implement RtlGetLengthWithoutLastFullDorOrNtPathElement
...
CORE-17248
2021-05-08 19:24:23 +02:00
Mark Jansen
3e7e4ee360
[RTL] Implement RtlpApplyLengthFunction
...
CORE-17248
2021-05-08 19:24:23 +02:00
Katayama Hirofumi MZ
941dfd2dee
[INCLUDE][XDK] Add FILE_ATTRIBUTE_VIRTUAL macro into winnt_old.h ( #3649 )
...
PR #3642 needs it. CORE-17443
2021-05-08 21:08:34 +09:00
Serge Gautherie
2b52f3bb56
[SDK] wine/typeof.h: Remove duplicate ImeGetRegisterWordStyle line
...
Fix msbuild amd64
'...\sdk\include\reactos\wine/typeof.h(50,64): error C2059: syntax error: '<parameter-list>' [D:\a\reactos\reactos\build\dll\win32\msxml3\msxml3.vcxproj]'
Addendum to 32072cf
(r42469).
2021-05-06 22:09:03 +03:00
Hermès Bélusca-Maïto
eb29a33169
[PEFIXUP] Section names are case-sensitive, so we can just use strncmp() instead of the non-standard strncasecmp() for names comparisons. ( #3598 )
2021-05-05 19:15:02 +02:00
Hermès Bélusca-Maïto
ea26767353
[PEFIXUP] Avoid multi-level nesting of code with the error handling done at the very end. Use size_t variables for file sizes. ( #3598 )
2021-05-05 19:15:01 +02:00
Hermès Bélusca-Maïto
88b933330d
[PEFIXUP] Only recalculate the PE checksum if the image is not from a reproducible build (original checksum == 0). ( #3598 )
2021-05-05 19:15:01 +02:00
Hermès Bélusca-Maïto
7ad33940c2
[PEFIXUP] Use vfprintf() with the va_args list. ( #3598 )
2021-05-05 19:14:57 +02:00
Hermès Bélusca-Maïto
db089c517e
[PSDK] Remove a buggy GNU-specific "PACKED" attribute in KEY_EVENT_RECORD structure declaration. ( #3619 )
...
CORE-17545
No other public header out there (in MS PSDK, MinGW, Wine, etc...) does have
this hack (that was introduced back in the days in r15141 / commit 01df92bc
).
Add static assert on KEY_EVENT_RECORD's uChar member to ensure it's properly aligned.
May fix Clang warning:
win32ss/user/winsrv/consrv/lineinput.c:457:62: warning: taking address of packed member 'uChar' of class or structure '_KEY_EVENT_RECORD' may result in an unaligned pointer value [-Waddress-of-packed-member]
LineInputEdit(Console, (Overstrike ? 1 : 0), 1, &KeyEvent->uChar.UnicodeChar);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
and whatnot...
2021-05-05 17:24:12 +02:00
Jérôme Gardou
f421bccbcc
[NTOS:MM] First shot for Working Set list support
...
- Initialize
- Add private page (no shared page support yet)
- Remove pages
- Trim
Yes, this is C++ in the kernel.
2021-05-04 12:02:41 +02:00
Jérôme Gardou
5466fc13a3
[NDK] Make kefuncs.h C++ aware
2021-05-04 12:02:41 +02:00
Jérôme Gardou
d312ef234b
[PSEH] Fix use of dummy implementation in C++
2021-05-03 22:00:57 +02:00
Jérôme Gardou
07dcec0325
[PSEH] Use dummy PSEH for clang(-cl) amd64 build
2021-05-03 22:00:57 +02:00
Jérôme Gardou
aa51bcfbcb
[CMAKE] Do not use a flag which clang doesn't know
2021-05-03 22:00:57 +02:00
Jérôme Gardou
523912536e
[KERNEL32] Sync NLS RC files with wine 6.7
...
Mostly for having them UTF-8 encoded
2021-05-03 22:00:57 +02:00