equal
deleted
inserted
replaced
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 |