* Removed debug check.

* "iospace p" should only print the entries for actually existing
  memory.
* Fixed output of "iospace v".


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28222 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-10-17 16:59:24 +00:00
parent 78c90d44ca
commit b7b7ca0fc3

View File

@ -158,8 +158,6 @@ generic_put_physical_page(addr_t va)
release_sem_etc(sChunkAvailableSem, 1, B_DO_NOT_RESCHEDULE);
}
}
if (desc->ref_count < 0)
panic("generic_put_physical_page(): ref count < 0: %ld\n", desc->ref_count);
mutex_unlock(&sMutex);
@ -182,7 +180,7 @@ dump_iospace(int argc, char** argv)
// physical address descriptors
kprintf("I/O space physical descriptors (%p)\n", paddr_desc);
int32 max = 1024;
int32 max = vm_page_num_pages() / (sIOSpaceChunkSize / B_PAGE_SIZE);
if (argc == 3)
max = strtol(argv[2], NULL, 0);
@ -202,8 +200,7 @@ dump_iospace(int argc, char** argv)
virtual_pmappings, first_free_vmapping);
for (i = 0; i < num_virtual_chunks; i++) {
kprintf("[%2ld. %03lx] ", i,
(virtual_pmappings[i] - paddr_desc) / sizeof(paddr_desc[0]));
kprintf("[%2ld. %03lx] ", i, virtual_pmappings[i] - paddr_desc);
if (i % 8 == 7)
kprintf("\n");
}