mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 23:25:45 +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
|
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; )
|
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;
|
typedef long bufsize;
|
||||||
void bpool _((void *buffer, bufsize len));
|
void bpool (void *buffer, bufsize len);
|
||||||
void *bget _((bufsize size));
|
void *bget (bufsize size);
|
||||||
void *bgetz _((bufsize size));
|
void *bgetz (bufsize size);
|
||||||
void *bgetr _((void *buffer, bufsize newsize));
|
void *bgetr (void *buffer, bufsize newsize);
|
||||||
void brel _((void *buf));
|
void brel (void *buf);
|
||||||
void bectl _((int (*compact)(bufsize sizereq, int sequence),
|
void bectl (int (*compact)(bufsize sizereq, int sequence),
|
||||||
void *(*acquire)(bufsize size),
|
void *(*acquire)(bufsize size),
|
||||||
void (*release)(void *buf), bufsize pool_incr));
|
void (*release)(void *buf), bufsize pool_incr);
|
||||||
void bstats _((bufsize *curalloc, bufsize *totfree, bufsize *maxfree,
|
void bstats (bufsize *curalloc, bufsize *totfree, bufsize *maxfree,
|
||||||
long *nget, long *nrel));
|
long *nget, long *nrel);
|
||||||
void bstatse _((bufsize *pool_incr, long *npool, long *npget,
|
void bstatse (bufsize *pool_incr, long *npool, long *npget,
|
||||||
long *nprel, long *ndget, long *ndrel));
|
long *nprel, long *ndget, long *ndrel);
|
||||||
void bufdump _((void *buf));
|
void bufdump (void *buf);
|
||||||
void bpoold _((void *pool, int dumpalloc, int dumpfree));
|
void bpoold (void *pool, int dumpalloc, int dumpfree);
|
||||||
int bpoolv _((void *pool));
|
int bpoolv (void *pool);
|
||||||
|
|
|
@ -42,7 +42,7 @@ VOID MmInitializeHeap(PVOID PageLookupTable)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize BGET
|
// 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
|
// Mark those pages as used
|
||||||
MmMarkPagesInLookupTable(PageLookupTableAddress, HeapStart, PagesNeeded, LoaderOsloaderHeap);
|
MmMarkPagesInLookupTable(PageLookupTableAddress, HeapStart, PagesNeeded, LoaderOsloaderHeap);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue