reactos/sdk
Timo Kreuzer 05456808e8 [NTOS:KE/x64] Fix handling of non-volatiles in trap vs exception frame
The registers that are saved/restored in the trap / exception frame need to be consistent between all entry/exit points as well as the functions that convert between trap/exception frame and context. The trap frame contains only the non-volatile registers and rbp, the rest is saved in the exception frame.
The previous code didn't save rbp in the syscall handler, which led to it being clobbered when exiting though KiServiceExit2 rather than returning back to the syscall exit path. Also KeContextToTrapFrame would use rbx, rsi and rdi from the trap frame, which wouldn't be saved there by the syscall handler.
2024-04-14 16:09:20 +02:00
..
cmake [CMAKE] Update sdk/cmake/baseaddress(,_msvc).cmake (#6627) 2024-03-16 13:46:10 +09:00
include [NTOS:KE/x64] Fix handling of non-volatiles in trap vs exception frame 2024-04-14 16:09:20 +02:00
lib [RTL/x64] Implement RtlRaiseException in asm 2024-04-14 14:12:35 +02:00
tools [RSYM/x64] Sync UNW_FLAG_* values (#6653) 2024-03-23 15:13:23 +01:00