Author: tkreuzer
Date: Sun Oct 26 21:48:54 2008
New Revision: 37008
URL:
http://svn.reactos.org/svn/reactos?rev=37008&view=rev
Log:
- Add TEB_SELF to asm.h
- fix loading of TEB in fiber code
This commit is dedicated to Alex
Modified:
trunk/reactos/dll/win32/kernel32/thread/i386/fiber.S
trunk/reactos/include/ndk/asm.h
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 Oct 26 21:48:54
2008
@@ -17,7 +17,7 @@
_SwitchToFiber@4:
/* Get the TEB */
- mov edx, fs:[KGDT_R3_TEB]
+ mov edx, fs:[TEB_SELF]
/* Get the Fiber */
mov eax, [edx+TEB_FIBER_DATA]
Modified: trunk/reactos/include/ndk/asm.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/asm.h?rev=3700…
==============================================================================
--- trunk/reactos/include/ndk/asm.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/asm.h [iso-8859-1] Sun Oct 26 21:48:54 2008
@@ -412,6 +412,7 @@
#define TEB_STACK_BASE 0x4
#define TEB_STACK_LIMIT 0x8
#define TEB_FIBER_DATA 0x10
+#define TEB_SELF 0x18
#define TEB_PEB 0x30
#define TEB_EXCEPTION_CODE 0x1A4
#define TEB_ACTIVATION_CONTEXT_STACK_POINTER 0x1A8