[NTOS]: Add a _64K macro definition so we can stop typing out 65536 all the time.

svn path=/trunk/; revision=48991
This commit is contained in:
Sir Richard 2010-10-05 05:01:15 +00:00
parent 46b0236d75
commit 4499f604f5

View file

@ -56,6 +56,9 @@
#define _1MB (1024 * _1KB) #define _1MB (1024 * _1KB)
#define _1GB (1024 * _1MB) #define _1GB (1024 * _1MB)
/* Everyone loves 64K */
#define _64K (64 * _1KB)
/* Area mapped by a PDE */ /* Area mapped by a PDE */
#define PDE_MAPPED_VA (PTE_COUNT * PAGE_SIZE) #define PDE_MAPPED_VA (PTE_COUNT * PAGE_SIZE)
@ -248,7 +251,7 @@ extern const ULONG MmProtectToPteMask[32];
// //
// System views are binned into 64K chunks // System views are binned into 64K chunks
// //
#define MI_SYSTEM_VIEW_BUCKET_SIZE 65536 #define MI_SYSTEM_VIEW_BUCKET_SIZE _64K
// //
// FIXFIX: These should go in ex.h after the pool merge // FIXFIX: These should go in ex.h after the pool merge
@ -1140,6 +1143,23 @@ MiFindEmptyAddressRangeDownTree(
OUT PMMADDRESS_NODE *Parent OUT PMMADDRESS_NODE *Parent
); );
NTSTATUS
NTAPI
MiFindEmptyAddressRangeInTree(
IN SIZE_T Length,
IN ULONG_PTR Alignment,
IN PMM_AVL_TABLE Table,
OUT PMMADDRESS_NODE *PreviousVad,
OUT PULONG_PTR Base
);
VOID
NTAPI
MiInsertVad(
IN PMMVAD Vad,
IN PEPROCESS Process
);
VOID VOID
NTAPI NTAPI
MiInsertNode( MiInsertNode(