Fixed nasty cast that breaks with sizeof(phys_addr_t) == 64.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37001 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1d578e15fe
commit
23aa437d66
@ -336,9 +336,11 @@ X86VMTranslationMap::Init(bool kernel)
|
||||
fArchData->page_mapper->Delete();
|
||||
return B_NO_MEMORY;
|
||||
}
|
||||
phys_addr_t physicalPageDir;
|
||||
vm_get_page_mapping(VMAddressSpace::KernelID(),
|
||||
(addr_t)fArchData->pgdir_virt,
|
||||
(phys_addr_t*)&fArchData->pgdir_phys);
|
||||
&physicalPageDir);
|
||||
fArchData->pgdir_phys = (page_directory_entry*)(addr_t)physicalPageDir;
|
||||
} else {
|
||||
// kernel
|
||||
// get the physical page mapper
|
||||
|
Loading…
Reference in New Issue
Block a user