kernel/eka/memmodel/epoc/flexible/mmu/mobject.cpp
changeset 4 56f325a607ea
parent 0 a41df078684a
child 6 0173bcd7697c
equal deleted inserted replaced
2:4122176ea935 4:56f325a607ea
   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