equal
deleted
inserted
replaced
756 { |
756 { |
757 // page table is used by this mapping, so set PDE... |
757 // page table is used by this mapping, so set PDE... |
758 TLinAddr linAddrAndOsAsid = mapping->LinAddrAndOsAsid()+start*KPageSize; |
758 TLinAddr linAddrAndOsAsid = mapping->LinAddrAndOsAsid()+start*KPageSize; |
759 TPde* pPde = Mmu::PageDirectoryEntry(linAddrAndOsAsid&KPageMask,linAddrAndOsAsid); |
759 TPde* pPde = Mmu::PageDirectoryEntry(linAddrAndOsAsid&KPageMask,linAddrAndOsAsid); |
760 TPde pde = ptPhys|mapping->BlankPde(); |
760 TPde pde = ptPhys|mapping->BlankPde(); |
|
761 #ifdef __USER_MEMORY_GUARDS_ENABLED__ |
|
762 if (mapping->IsUserMapping()) |
|
763 pde = PDE_IN_DOMAIN(pde, USER_MEMORY_DOMAIN); |
|
764 #endif |
761 TRACE2(("!PDE %x=%x",pPde,pde)); |
765 TRACE2(("!PDE %x=%x",pPde,pde)); |
762 __NK_ASSERT_DEBUG(((*pPde^pde)&~KPdeMatchMask)==0 || *pPde==KPdeUnallocatedEntry); |
766 __NK_ASSERT_DEBUG(((*pPde^pde)&~KPdeMatchMask)==0 || *pPde==KPdeUnallocatedEntry); |
763 *pPde = pde; |
767 *pPde = pde; |
764 SinglePdeUpdated(pPde); |
768 SinglePdeUpdated(pPde); |
765 |
769 |