mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[FREELDR]
- Do not declare functions without prototypes - DPRINT fix - Powered by VS11 svn path=/trunk/; revision=55150
This commit is contained in:
parent
cd46fe19a9
commit
50b16668d7
3 changed files with 17 additions and 25 deletions
|
@ -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; )
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue