Move some ntoskrnl compiletime configuration defines into ntoskrnl/include/config.h (new file)

svn path=/trunk/; revision=11857
This commit is contained in:
Gregor Anich
2004-11-28 22:06:25 +00:00
parent 90a424deea
commit 7be720f8ec
3 changed files with 23 additions and 14 deletions

View File

@@ -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 */

View File

@@ -3,6 +3,8 @@
#define __NO_CTYPE_INLINES
/* include the ntoskrnl config.h file */
#include "config.h"
#include <roscfg.h>
#include <reactos/version.h>

View File

@@ -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 <internal/debug.h>
/* 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