Commit 0865c278 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Set the proper context flags in the signal handlers for x86_64.

parent 5316dd01
......@@ -189,6 +189,7 @@ static inline int dispatch_signal(unsigned int sig)
*/
static void save_context( CONTEXT *context, const SIGCONTEXT *sigcontext )
{
context->ContextFlags = CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_SEGMENTS;
context->Rax = RAX_sig(sigcontext);
context->Rcx = RCX_sig(sigcontext);
context->Rdx = RDX_sig(sigcontext);
......@@ -214,7 +215,11 @@ static void save_context( CONTEXT *context, const SIGCONTEXT *sigcontext )
context->SegEs = 0; /* FIXME */
context->SegSs = 0; /* FIXME */
context->MxCsr = 0; /* FIXME */
if (FPU_sig(sigcontext)) context->u.FltSave = *FPU_sig(sigcontext);
if (FPU_sig(sigcontext))
{
context->ContextFlags |= CONTEXT_FLOATING_POINT;
context->u.FltSave = *FPU_sig(sigcontext);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment