mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 15:24:07 +00:00
- 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:
parent
e28588b48a
commit
cb0c6f03f5
2 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
_SwitchToFiber@4:
|
_SwitchToFiber@4:
|
||||||
/* Get the TEB */
|
/* Get the TEB */
|
||||||
mov edx, fs:[KGDT_R3_TEB]
|
mov edx, fs:[TEB_SELF]
|
||||||
|
|
||||||
/* Get the Fiber */
|
/* Get the Fiber */
|
||||||
mov eax, [edx+TEB_FIBER_DATA]
|
mov eax, [edx+TEB_FIBER_DATA]
|
||||||
|
|
|
@ -412,6 +412,7 @@ Author:
|
||||||
#define TEB_STACK_BASE 0x4
|
#define TEB_STACK_BASE 0x4
|
||||||
#define TEB_STACK_LIMIT 0x8
|
#define TEB_STACK_LIMIT 0x8
|
||||||
#define TEB_FIBER_DATA 0x10
|
#define TEB_FIBER_DATA 0x10
|
||||||
|
#define TEB_SELF 0x18
|
||||||
#define TEB_PEB 0x30
|
#define TEB_PEB 0x30
|
||||||
#define TEB_EXCEPTION_CODE 0x1A4
|
#define TEB_EXCEPTION_CODE 0x1A4
|
||||||
#define TEB_ACTIVATION_CONTEXT_STACK_POINTER 0x1A8
|
#define TEB_ACTIVATION_CONTEXT_STACK_POINTER 0x1A8
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue