kernel/eka/memmodel/epoc/flexible/mmu/mobject.cpp
changeset 4 56f325a607ea
parent 0 a41df078684a
child 6 0173bcd7697c
--- a/kernel/eka/memmodel/epoc/flexible/mmu/mobject.cpp	Mon Dec 21 16:14:42 2009 +0000
+++ b/kernel/eka/memmodel/epoc/flexible/mmu/mobject.cpp	Wed Dec 23 11:43:31 2009 +0000
@@ -758,6 +758,10 @@
 			TLinAddr linAddrAndOsAsid = mapping->LinAddrAndOsAsid()+start*KPageSize;
 			TPde* pPde = Mmu::PageDirectoryEntry(linAddrAndOsAsid&KPageMask,linAddrAndOsAsid);
 			TPde pde = ptPhys|mapping->BlankPde();
+#ifdef	__USER_MEMORY_GUARDS_ENABLED__
+			if (mapping->IsUserMapping())
+				pde = PDE_IN_DOMAIN(pde, USER_MEMORY_DOMAIN);
+#endif
 			TRACE2(("!PDE %x=%x",pPde,pde));
 			__NK_ASSERT_DEBUG(((*pPde^pde)&~KPdeMatchMask)==0 || *pPde==KPdeUnallocatedEntry);
 			*pPde = pde;