kernel/eka/memmodel/epoc/flexible/mmu/x86/xmmu.cpp
changeset 109 b3a1d9898418
parent 36 538db54a451d
child 257 3e88ff8f41d5
child 279 957c583b417b
equal deleted inserted replaced
102:ef2a444a7410 109:b3a1d9898418
   544 	__NK_ASSERT_DEBUG(!iAliasLinAddr || aProcess == iAliasProcess);
   544 	__NK_ASSERT_DEBUG(!iAliasLinAddr || aProcess == iAliasProcess);
   545 
   545 
   546 	if(TUint(aAddr^KIPCAlias)<TUint(KIPCAliasAreaSize))
   546 	if(TUint(aAddr^KIPCAlias)<TUint(KIPCAliasAreaSize))
   547 		return KErrBadDescriptor; // prevent access to alias region
   547 		return KErrBadDescriptor; // prevent access to alias region
   548 
   548 
       
   549 #ifdef _DEBUG
       
   550 	if (KDebugNum(KFORCEKUPAGEFAULTS))
       
   551 		{
       
   552 		TInt r = ThePager.FlushRegion(aProcess, aAddr, aSize);
       
   553 		if (r != KErrNone)
       
   554 			return r;
       
   555 		}
       
   556 #endif
       
   557 	
   549 	// Grab the mmu lock before opening a reference on os asid so that this thread 
   558 	// Grab the mmu lock before opening a reference on os asid so that this thread 
   550 	// is in an implicit critical section and therefore can't leak the reference by
   559 	// is in an implicit critical section and therefore can't leak the reference by
   551 	// dying before iAliasLinAddr is set.
   560 	// dying before iAliasLinAddr is set.
   552 	MmuLock::Lock();
   561 	MmuLock::Lock();
   553 
   562