Author: dgorbachev
Date: Sun Jan 3 21:12:56 2010
New Revision: 44920
URL:
http://svn.reactos.org/svn/reactos?rev=44920&view=rev
Log:
- Remove duplicate definitions of context flags (which are already present in NDK);
- combine them using bitwise or (as in CreateFiberEx and ConvertThreadToFiberEx).
Modified:
trunk/reactos/dll/win32/kernel32/thread/i386/fiber.S
Modified: trunk/reactos/dll/win32/kernel32/thread/i386/fiber.S
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/thread/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/thread/i386/fiber.S [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/thread/i386/fiber.S [iso-8859-1] Sun Jan 3 21:12:56
2010
@@ -8,9 +8,6 @@
*/
#include <ndk/asm.h>
-
-#define CONTEXT_FULL 0x10007
-#define CONTEXT_FLOATING_POINT 0xF
.globl _SwitchToFiber@4
.intel_syntax noprefix
@@ -29,7 +26,7 @@
mov [eax+FIBER_CONTEXT_EBP], ebp
/* Check if we're to save FPU State */
- cmp dword ptr [eax+FIBER_CONTEXT_FLAGS], CONTEXT_FULL + CONTEXT_FLOATING_POINT
+ cmp dword ptr [eax+FIBER_CONTEXT_FLAGS], CONTEXT_FULL | CONTEXT_FLOATING_POINT
jnz NoFpuStateSave
/* Save the FPU State (Status and Control)*/
@@ -79,7 +76,7 @@
mov [edx+TEB_ACTIVATION_CONTEXT_STACK_POINTER], esi
/* Restore FPU State */
- cmp dword ptr [eax+FIBER_CONTEXT_FLAGS], CONTEXT_FULL + CONTEXT_FLOATING_POINT
+ cmp dword ptr [eax+FIBER_CONTEXT_FLAGS], CONTEXT_FULL | CONTEXT_FLOATING_POINT
jnz NoFpuStateRestore
/* Check if the Status Word Changed */