[FREELDR]

- Do not declare functions without prototypes
- DPRINT fix
- Powered by VS11

svn path=/trunk/; revision=55150
This commit is contained in:
Thomas Faber 2012-01-24 20:57:03 +00:00
parent cd46fe19a9
commit 50b16668d7
3 changed files with 17 additions and 25 deletions

View file

@ -188,7 +188,7 @@ DebugDumpBuffer(ULONG Mask, PVOID Buffer, ULONG Length)
}
DebugStartOfLine = FALSE; // We don't want line headers
DbgPrint("Dumping buffer at 0x%x with length of %d bytes:\n", Buffer, Length);
DbgPrint("Dumping buffer at %p with length of %lu bytes:\n", Buffer, Length);
for (Idx=0; Idx<Length; )
{

View file

@ -4,27 +4,19 @@
*/
#ifndef _
#ifdef PROTOTYPES
#define _(x) x /* If compiler knows prototypes */
#else
#define _(x) () /* It it doesn't */
#endif /* PROTOTYPES */
#endif
typedef long bufsize;
void bpool _((void *buffer, bufsize len));
void *bget _((bufsize size));
void *bgetz _((bufsize size));
void *bgetr _((void *buffer, bufsize newsize));
void brel _((void *buf));
void bectl _((int (*compact)(bufsize sizereq, int sequence),
void bpool (void *buffer, bufsize len);
void *bget (bufsize size);
void *bgetz (bufsize size);
void *bgetr (void *buffer, bufsize newsize);
void brel (void *buf);
void bectl (int (*compact)(bufsize sizereq, int sequence),
void *(*acquire)(bufsize size),
void (*release)(void *buf), bufsize pool_incr));
void bstats _((bufsize *curalloc, bufsize *totfree, bufsize *maxfree,
long *nget, long *nrel));
void bstatse _((bufsize *pool_incr, long *npool, long *npget,
long *nprel, long *ndget, long *ndrel));
void bufdump _((void *buf));
void bpoold _((void *pool, int dumpalloc, int dumpfree));
int bpoolv _((void *pool));
void (*release)(void *buf), bufsize pool_incr);
void bstats (bufsize *curalloc, bufsize *totfree, bufsize *maxfree,
long *nget, long *nrel);
void bstatse (bufsize *pool_incr, long *npool, long *npget,
long *nprel, long *ndget, long *ndrel);
void bufdump (void *buf);
void bpoold (void *pool, int dumpalloc, int dumpfree);
int bpoolv (void *pool);

View file

@ -42,7 +42,7 @@ VOID MmInitializeHeap(PVOID PageLookupTable)
}
// Initialize BGET
bpool(HeapStart << MM_PAGE_SHIFT, PagesNeeded << MM_PAGE_SHIFT);
bpool((PVOID)(HeapStart << MM_PAGE_SHIFT), PagesNeeded << MM_PAGE_SHIFT);
// Mark those pages as used
MmMarkPagesInLookupTable(PageLookupTableAddress, HeapStart, PagesNeeded, LoaderOsloaderHeap);