Ticket #8345: Haiku_8345_Ticket.patch

File Haiku_8345_Ticket.patch, 619 bytes (added by haxworx, 12 years ago)
  • X86VMTranslationMapPAE.cpp

    old new  
    223223    pae_page_table_entry* pageTable
    224224        = (pae_page_table_entry*)fPageMapper->GetPageTableAt(
    225225            *pageDirEntry & X86_PAE_PDE_ADDRESS_MASK);
    226     pae_page_table_entry* entry = pageTable
    227         + virtualAddress / B_PAGE_SIZE % kPAEPageTableEntryCount;
     226    pae_page_table_entry* entry = pageTable[virtualAddress / B_PAGE_SIZE % kPAEPageTableEntryCount];
    228227
    229228    ASSERT_PRINT((*entry & X86_PAE_PTE_PRESENT) == 0,
    230229        "virtual address: %#" B_PRIxADDR ", existing pte: %#" B_PRIx64,