reactos/sdk/lib/rtl
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
..
amd64 [RTL/x64] Implement RtlpCaptureNonVolatileContextPointers and RtlSetUnwindContext 2021-06-02 18:25:36 +02:00
arm
i386
powerpc
access.c
acl.c
actctx.c [RTL] Add code to SxS manifest parser to parse XML namespaces (#2512) 2020-09-20 22:56:42 +02:00
appverifier.c
assert.c
atom.c
avlsupp.c
avltable.c
bitmap.c
bitmap64.c
bootdata.c
byteswap.c
CMakeLists.txt [REACTOS] Explicitly link against pseh & include pseh headers in a few places 2021-04-28 13:10:23 +02:00
compress.c
condvar.c [KERNEL32_VISTA][NTDLL_VISTA][RTL_VISTA] Move Vista Rtl functions from kernel32_vista and ntdll_vista to rtl_vista (#3149) 2020-09-12 15:04:02 +02:00
crc32.c
critical.c [SDK:RTL] Statically initialize RtlCriticalSectionList 2021-03-03 14:10:47 +01:00
dbgbuffer.c
debug.c
dos8dot3.c [RTL] Properly truncate 8dot3 names when using a MultiByte OEM code page 2021-05-19 22:50:29 +02:00
encode.c
env.c
error.c
exception.c [RTL][KERNEL32] Move the STUB printing code to a place where it's actually called 2021-05-22 16:33:19 +02:00
generictable.c
handle.c
heap.c [RTL] Improve performance by introducing a hint array for free entries 2021-03-16 13:23:21 +01:00
heap.h [RTL] Improve performance by introducing a hint array for free entries 2021-03-16 13:23:21 +01:00
heapdbg.c
heappage.c
heapuser.c
image.c [RTL] Fix RtlImageDirectoryEntryToData to support both 32 and 64 bit images 2020-12-06 16:37:57 +01:00
interlck.c
largeint.c
luid.c
mem.c
memstream.c
message.c
network.c
nls.c [RTL] Properly implement RtlUnicodeToOemN 2021-05-19 22:50:29 +02:00
path.c [RTL] Implement RtlGetLengthWithoutLastFullDorOrNtPathElement 2021-05-08 19:24:23 +02:00
ppb.c
prefix.c
priv.c
process.c [NTOS:PS] On x64 don't fail in NtSetInformationProcess with ProcessUserModeIOPL information class, instead just don't do anything. 2020-09-20 23:08:17 +02:00
propvar.c
random.c
rangelist.c
readme.txt
registry.c
res.c
resource.c
rtl.h
rtl_vista.h [KERNEL32_VISTA][NTDLL_VISTA][RTL_VISTA] Move Vista Rtl functions from kernel32_vista and ntdll_vista to rtl_vista (#3149) 2020-09-12 15:04:02 +02:00
rtlavl.h
rtlp.h
runonce.c [KERNEL32_VISTA][NTDLL_VISTA][RTL_VISTA] Move Vista Rtl functions from kernel32_vista and ntdll_vista to rtl_vista (#3149) 2020-09-12 15:04:02 +02:00
rxact.c
sd.c
security.c
sid.c
slist.c
splaytree.c
srw.c [RTL] Fix a typo & remove useless cast 2021-02-01 09:09:19 +01:00
sysvol.c
thread.c
time.c
timerqueue.c
timezone.c
trace.c
unicode.c [RTL] SAL-annotate RtlUnicodeStringToCountedOemString 2021-05-19 22:50:29 +02:00
unicodeprefix.c
vectoreh.c
version.c
wait.c
workitem.c

RTL restrictions:

ExAllocatePool (and friends) must be used exclusively. RtlAllocateHeap (and friends) must NOT be used! ExAllocatePool (and friends) translate to RtlAllocateHeap (and friends) in ntdll\rtl\libsupp.c.

RtlEnterCriticalSection (and friends) must be used exclusively. ExAcquireFastMutex (and friends) must NOT be used! RtlEnterCriticalSection (and friends) translate to ExAcquireFastMutex (and friends) in ntoskrnl\rtl\libsupp.c. This means that RtlEnterCriticalSection (and friends) can NOT be used recursively in RTL. The reason for choosing RtlEnterCriticalSection (and friends) over ExAcquireFastMutex (and friends) is that the FAST_MUTEX struct is smaller than the RTL_CRITICAL_SECTION struct.