diff --git a/reactos/ntoskrnl/include/config.h b/reactos/ntoskrnl/include/config.h new file mode 100644 index 00000000000..89ebff9ac33 --- /dev/null +++ b/reactos/ntoskrnl/include/config.h @@ -0,0 +1,20 @@ +/* $$$ Modified by ReactOS config tool on Sun Nov 28 18:18:50 2004 + */ +#ifndef __INCLUDE_NTOSKRNL_CONFIG_H +#define __INCLUDE_NTOSKRNL_CONFIG_H + +/* Enable strict checking of the nonpaged pool on every allocation */ +#undef ENABLE_VALIDATE_POOL + +/* Enable tracking of statistics about the tagged blocks in the pool */ +#undef TAG_STATISTICS_TRACKING + +/* + * Put each block in its own range of pages and position the block at the + * end of the range so any accesses beyond the end of block are to invalid + * memory locations. + */ +#undef WHOLE_PAGE_ALLOCATIONS + +#endif /* __INCLUDE_NTOSKRNL_CONFIG_H */ + diff --git a/reactos/ntoskrnl/include/ntoskrnl.h b/reactos/ntoskrnl/include/ntoskrnl.h index d0d9511dd18..e49245a77e8 100755 --- a/reactos/ntoskrnl/include/ntoskrnl.h +++ b/reactos/ntoskrnl/include/ntoskrnl.h @@ -3,6 +3,8 @@ #define __NO_CTYPE_INLINES +/* include the ntoskrnl config.h file */ +#include "config.h" #include #include diff --git a/reactos/ntoskrnl/mm/npool.c b/reactos/ntoskrnl/mm/npool.c index db181e4e6e9..1d6bc795618 100644 --- a/reactos/ntoskrnl/mm/npool.c +++ b/reactos/ntoskrnl/mm/npool.c @@ -1,4 +1,4 @@ -/* $Id: npool.c,v 1.92 2004/10/22 20:38:22 ekohl Exp $ +/* $Id: npool.c,v 1.93 2004/11/28 22:06:25 blight Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -20,19 +20,6 @@ #define NDEBUG #include -/* Enable strict checking of the nonpaged pool on every allocation */ -/*#define ENABLE_VALIDATE_POOL*/ - -/* Enable tracking of statistics about the tagged blocks in the pool */ -/*#define TAG_STATISTICS_TRACKING*/ - -/* - * Put each block in its own range of pages and position the block at the - * end of the range so any accesses beyond the end of block are to invalid - * memory locations. - */ -/*#define WHOLE_PAGE_ALLOCATIONS*/ - #ifdef ENABLE_VALIDATE_POOL #define VALIDATE_POOL validate_kernel_pool() #else