mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
Use C_ASSERTS only for X86 and AMD64
svn path=/trunk/; revision=44629
This commit is contained in:
parent
440decaae9
commit
8fbe2b1bf2
1 changed files with 2 additions and 0 deletions
|
@ -145,6 +145,7 @@ typedef struct _INFORMATION_CLASS_INFO
|
|||
|
||||
#endif
|
||||
|
||||
#if defined (_M_IX86) || defined(_M_AMD64)
|
||||
C_ASSERT(FIELD_OFFSET(KUSER_SHARED_DATA, SystemCall) == 0x300);
|
||||
C_ASSERT(FIELD_OFFSET(KTHREAD, InitialStack) == KTHREAD_INITIAL_STACK);
|
||||
C_ASSERT(FIELD_OFFSET(KTHREAD, Teb) == KTHREAD_TEB);
|
||||
|
@ -156,6 +157,7 @@ C_ASSERT(FIELD_OFFSET(KTHREAD, TrapFrame) == KTHREAD_TRAP_FRAME);
|
|||
C_ASSERT(FIELD_OFFSET(KTHREAD, CallbackStack) == KTHREAD_CALLBACK_STACK);
|
||||
C_ASSERT(FIELD_OFFSET(KTHREAD, ApcState.Process) == KTHREAD_APCSTATE_PROCESS);
|
||||
C_ASSERT(FIELD_OFFSET(KPROCESS, DirectoryTableBase) == KPROCESS_DIRECTORY_TABLE_BASE);
|
||||
#endif
|
||||
|
||||
#ifdef _M_IX86
|
||||
C_ASSERT(FIELD_OFFSET(KPCR, Tib.ExceptionList) == KPCR_EXCEPTION_LIST);
|
||||
|
|
Loading…
Reference in a new issue