X86VMTranslationMap{32bit,PAE}::UnmapPage(): Added some helpful output to
asserts. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37128 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8a8043dce6
commit
96732e8650
@ -334,7 +334,7 @@ X86VMTranslationMap32Bit::UnmapPage(VMArea* area, addr_t address,
|
||||
// get the page
|
||||
vm_page* page = vm_lookup_page(
|
||||
(oldEntry & X86_PTE_ADDRESS_MASK) / B_PAGE_SIZE);
|
||||
ASSERT(page != NULL);
|
||||
ASSERT_PRINT(page != NULL, "page: %p, pte: %#" B_PRIx32, page, oldEntry);
|
||||
|
||||
// transfer the accessed/dirty flags to the page
|
||||
if ((oldEntry & X86_PTE_ACCESSED) != 0)
|
||||
@ -354,7 +354,8 @@ X86VMTranslationMap32Bit::UnmapPage(VMArea* area, addr_t address,
|
||||
}
|
||||
}
|
||||
|
||||
ASSERT(mapping != NULL);
|
||||
ASSERT_PRINT(mapping != NULL, "page: %p, pte: %#" B_PRIx32, page,
|
||||
oldEntry);
|
||||
} else
|
||||
page->wired_count--;
|
||||
|
||||
|
@ -365,7 +365,7 @@ X86VMTranslationMapPAE::UnmapPage(VMArea* area, addr_t address,
|
||||
// get the page
|
||||
vm_page* page = vm_lookup_page(
|
||||
(oldEntry & X86_PAE_PTE_ADDRESS_MASK) / B_PAGE_SIZE);
|
||||
ASSERT(page != NULL);
|
||||
ASSERT_PRINT(page != NULL, "page: %p, pte: %#" B_PRIx64, page, oldEntry);
|
||||
|
||||
// transfer the accessed/dirty flags to the page
|
||||
if ((oldEntry & X86_PAE_PTE_ACCESSED) != 0)
|
||||
@ -388,7 +388,8 @@ X86VMTranslationMapPAE::UnmapPage(VMArea* area, addr_t address,
|
||||
}
|
||||
}
|
||||
|
||||
ASSERT(mapping != NULL);
|
||||
ASSERT_PRINT(mapping != NULL, "page: %p, pte: %#" B_PRIx64, page,
|
||||
oldEntry);
|
||||
} else
|
||||
page->wired_count--;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user