Optionalize memory and vm verbose prints
This commit is contained in:
parent
bbcecf5e6d
commit
7104974cb5
|
@ -235,8 +235,6 @@ phys_clicks *free; /* memory size summaries */
|
|||
*free = 0;
|
||||
for (i=NR_MEMS-1; i>=0; i--) {
|
||||
if (chunks[i].size > 0) {
|
||||
printf("mem_init: adding (clicks) 0x%x @ 0x%x\n",
|
||||
chunks[i].size, chunks[i].base);
|
||||
free_mem(chunks[i].base, chunks[i].size);
|
||||
*free += chunks[i].size;
|
||||
#if ENABLE_SWAP
|
||||
|
|
|
@ -418,7 +418,9 @@ struct memory mem_chunks[NR_MEMS];
|
|||
}
|
||||
|
||||
high <<= CLICK_SHIFT;
|
||||
#if VERBOSE_VM
|
||||
printf("do_x86_vm: found high 0x%x\n", high);
|
||||
#endif
|
||||
|
||||
/* The number of pages we need is one for the page directory, enough
|
||||
* page tables to cover the memory, and one page for alignement.
|
||||
|
@ -427,9 +429,11 @@ struct memory mem_chunks[NR_MEMS];
|
|||
bytes= pages*PAGE_SIZE;
|
||||
clicks= (bytes + CLICK_SIZE-1) >> CLICK_SHIFT;
|
||||
|
||||
#if VERBOSE_VM
|
||||
printf("do_x86_vm: need %d pages\n", pages);
|
||||
printf("do_x86_vm: need %d bytes\n", bytes);
|
||||
printf("do_x86_vm: need %d clicks\n", clicks);
|
||||
#endif
|
||||
|
||||
for (i= 0; i<NR_MEMS; i++)
|
||||
{
|
||||
|
@ -443,7 +447,9 @@ struct memory mem_chunks[NR_MEMS];
|
|||
mem_chunks[i].base += clicks;
|
||||
mem_chunks[i].size -= clicks;
|
||||
|
||||
#if VERBOSE_VM
|
||||
printf("do_x86_vm: using 0x%x clicks @ 0x%x\n", clicks, base_click);
|
||||
#endif
|
||||
r= sys_vm_setbuf(base_click << CLICK_SHIFT, clicks << CLICK_SHIFT,
|
||||
high);
|
||||
if (r != 0)
|
||||
|
|
Loading…
Reference in a new issue