mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:05:48 +00:00
[NTOS][RTL] Initialize MxCsr where missing
This commit is contained in:
parent
a82e46e521
commit
39f11249ff
5 changed files with 19 additions and 7 deletions
|
@ -23,7 +23,7 @@ NTAPI
|
|||
RtlInitializeContext(
|
||||
_Reserved_ HANDLE ProcessHandle,
|
||||
_Out_ PCONTEXT ThreadContext,
|
||||
_In_ PVOID ThreadStartParam OPTIONAL,
|
||||
_In_opt_ PVOID ThreadStartParam,
|
||||
_In_ PTHREAD_START_ROUTINE ThreadStartAddress,
|
||||
_In_ PINITIAL_TEB StackBase)
|
||||
{
|
||||
|
@ -66,10 +66,13 @@ RtlInitializeContext(
|
|||
ThreadContext->SegSs = KGDT64_R3_DATA | RPL_MASK;
|
||||
}
|
||||
|
||||
ThreadContext->MxCsr = INITIAL_MXCSR;
|
||||
|
||||
/* Only the basic Context is initialized */
|
||||
ThreadContext->ContextFlags = CONTEXT_CONTROL |
|
||||
CONTEXT_INTEGER |
|
||||
CONTEXT_SEGMENTS;
|
||||
CONTEXT_SEGMENTS |
|
||||
CONTEXT_FLOATING_POINT;
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue