- Add TEB_SELF to asm.h

- fix loading of TEB in fiber code
This commit is dedicated to Alex

svn path=/trunk/; revision=37008
This commit is contained in:
Timo Kreuzer 2008-10-27 02:48:54 +00:00
parent e28588b48a
commit cb0c6f03f5
2 changed files with 2 additions and 1 deletions

View file

@ -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]

View file

@ -412,6 +412,7 @@ Author:
#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