X86PagingMethodPAE::PutPageTableEntryInTable(): Incorrectly used 32 bit type,

which caused the upper 32 bit of the address to be ignored, thus mapping to
the wrong page.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37130 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2010-06-13 19:58:43 +00:00
parent 9e93cc9ab7
commit 8d2572165b
1 changed files with 1 additions and 1 deletions

View File

@ -766,7 +766,7 @@ X86PagingMethodPAE::PutPageTableEntryInTable(pae_page_table_entry* entry,
phys_addr_t physicalAddress, uint32 attributes, uint32 memoryType,
bool globalPage)
{
page_table_entry page = (physicalAddress & X86_PAE_PTE_ADDRESS_MASK)
pae_page_table_entry page = (physicalAddress & X86_PAE_PTE_ADDRESS_MASK)
| X86_PAE_PTE_PRESENT | (globalPage ? X86_PAE_PTE_GLOBAL : 0)
| MemoryTypeToPageTableEntryFlags(memoryType);