From 8fbe2b1bf2c5d4756f721c36c09c40e862549159 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 16 Dec 2009 22:06:25 +0000 Subject: [PATCH] Use C_ASSERTS only for X86 and AMD64 svn path=/trunk/; revision=44629 --- reactos/ntoskrnl/include/internal/ntoskrnl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/ntoskrnl/include/internal/ntoskrnl.h b/reactos/ntoskrnl/include/internal/ntoskrnl.h index 659d6329213..d85c8b61b3a 100644 --- a/reactos/ntoskrnl/include/internal/ntoskrnl.h +++ b/reactos/ntoskrnl/include/internal/ntoskrnl.h @@ -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);