29 ContextFlags &= ~CONTEXT_AMD64;
48 ExceptionFrame->Rbx =
Context->Rbx;
49 ExceptionFrame->Rsi =
Context->Rsi;
50 ExceptionFrame->Rdi =
Context->Rdi;
51 ExceptionFrame->R12 =
Context->R12;
52 ExceptionFrame->R13 =
Context->R13;
53 ExceptionFrame->R14 =
Context->R14;
54 ExceptionFrame->R15 =
Context->R15;
61 TrapFrame->MxCsr =
Context->MxCsr;
62 TrapFrame->Xmm0 =
Context->Xmm0;
63 TrapFrame->Xmm1 =
Context->Xmm1;
64 TrapFrame->Xmm2 =
Context->Xmm2;
65 TrapFrame->Xmm3 =
Context->Xmm3;
66 TrapFrame->Xmm4 =
Context->Xmm4;
67 TrapFrame->Xmm5 =
Context->Xmm5;
70 ExceptionFrame->Xmm6 =
Context->Xmm6;
71 ExceptionFrame->Xmm7 =
Context->Xmm7;
72 ExceptionFrame->Xmm8 =
Context->Xmm8;
73 ExceptionFrame->Xmm9 =
Context->Xmm9;
74 ExceptionFrame->Xmm10 =
Context->Xmm10;
75 ExceptionFrame->Xmm11 =
Context->Xmm11;
76 ExceptionFrame->Xmm12 =
Context->Xmm12;
77 ExceptionFrame->Xmm13 =
Context->Xmm13;
78 ExceptionFrame->Xmm14 =
Context->Xmm14;
79 ExceptionFrame->Xmm15 =
Context->Xmm15;
89 TrapFrame->EFlags =
Context->EFlags;
103 TrapFrame->SegCs =
Context->SegCs;
109 TrapFrame->SegSs =
Context->SegSs;
132 TrapFrame->SegDs =
Context->SegDs;
133 TrapFrame->SegEs =
Context->SegEs;
134 TrapFrame->SegFs =
Context->SegFs;
135 TrapFrame->SegGs =
Context->SegGs;
181 ContextFlags =
Context->ContextFlags;
183 ContextFlags &= ~CONTEXT_AMD64;
199 Context->Rbx = ExceptionFrame->Rbx;
200 Context->Rsi = ExceptionFrame->Rsi;
201 Context->Rdi = ExceptionFrame->Rdi;
202 Context->R12 = ExceptionFrame->R12;
203 Context->R13 = ExceptionFrame->R13;
204 Context->R14 = ExceptionFrame->R14;
205 Context->R15 = ExceptionFrame->R15;
212 Context->MxCsr = TrapFrame->MxCsr;
213 Context->Xmm0 = TrapFrame->Xmm0;
214 Context->Xmm1 = TrapFrame->Xmm1;
215 Context->Xmm2 = TrapFrame->Xmm2;
216 Context->Xmm3 = TrapFrame->Xmm3;
217 Context->Xmm4 = TrapFrame->Xmm4;
218 Context->Xmm5 = TrapFrame->Xmm5;
221 Context->Xmm6 = ExceptionFrame->Xmm6;
222 Context->Xmm7 = ExceptionFrame->Xmm7;
223 Context->Xmm8 = ExceptionFrame->Xmm8;
224 Context->Xmm9 = ExceptionFrame->Xmm9;
225 Context->Xmm10 = ExceptionFrame->Xmm10;
226 Context->Xmm11 = ExceptionFrame->Xmm11;
227 Context->Xmm12 = ExceptionFrame->Xmm12;
228 Context->Xmm13 = ExceptionFrame->Xmm13;
229 Context->Xmm14 = ExceptionFrame->Xmm14;
230 Context->Xmm15 = ExceptionFrame->Xmm15;
247 Context->SegCs = TrapFrame->SegCs;
248 Context->SegSs = TrapFrame->SegSs;
254 Context->EFlags = TrapFrame->EFlags;
272 Context->SegDs = TrapFrame->SegDs;
273 Context->SegEs = TrapFrame->SegEs;
274 Context->SegFs = TrapFrame->SegFs;
275 Context->SegGs = TrapFrame->SegGs;
#define EFLAGS_INTERRUPT_MASK
#define KeRaiseIrql(irql, oldIrql)
#define KeLowerIrql(oldIrql)
#define KeGetCurrentIrql()
#define MAX_SYSCALL_PARAM_SIZE
#define EFLAGS_USER_SANITIZE
#define CONTEXT_DEBUG_REGISTERS
#define CONTEXT_FLOATING_POINT
VOID NTAPI KeTrapFrameToContext(IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFrame, IN OUT PCONTEXT Context)
VOID KiSetTrapContextInternal(_Out_ PKTRAP_FRAME TrapFrame, _In_ PCONTEXT Context, _In_ KPROCESSOR_MODE RequestorMode)
VOID NTAPI KeContextToTrapFrame(IN PCONTEXT Context, IN OUT PKEXCEPTION_FRAME ExceptionFrame, IN OUT PKTRAP_FRAME TrapFrame, IN ULONG ContextFlags, IN KPROCESSOR_MODE PreviousMode)
VOID RtlSetUnwindContext(_In_ PCONTEXT Context, _In_ DWORD64 TargetFrame)
PVOID MmHighestUserAddress
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql
_In_ KPROCESSOR_MODE PreviousMode