This commit is contained in:
Baptiste Wicht 2013-12-08 22:16:47 +01:00
parent dc195067d4
commit c2de9888e5

View File

@ -42,9 +42,10 @@ constexpr bool page_aligned(void* addr){
} //end of anonymous namespace
//TODO Update to support offsets at the end of virt
//TODO Improve to support a status
void* paging::physical_address(void* virt){
if(!page_present(virt)){
//TODO Not a very good value since 0x0 is a valid physical address
return nullptr;
}