mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
ntdll: Set the proper context flags in the signal handlers for x86_64.
This commit is contained in:
parent
5316dd011f
commit
0865c278f2
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user