Use C_ASSERTS only for X86 and AMD64

svn path=/trunk/; revision=44629
This commit is contained in:
Timo Kreuzer 2009-12-16 22:06:25 +00:00
parent 440decaae9
commit 8fbe2b1bf2

View file

@ -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);