equal
deleted
inserted
replaced
415 |
415 |
416 case DChunk::ECommitContiguous: |
416 case DChunk::ECommitContiguous: |
417 { |
417 { |
418 // Allocate a block of contiguous RAM from the free pool |
418 // Allocate a block of contiguous RAM from the free pool |
419 TInt numPages=(endOffset-offset)>>m.iPageShift; |
419 TInt numPages=(endOffset-offset)>>m.iPageShift; |
420 r=m.AllocContiguousRam(numPages<<m.iPageShift, nextPage, GetPageType(), 0); |
420 __NK_ASSERT_DEBUG(EPageFixed == GetPageType()); |
|
421 r=m.AllocContiguousRam(numPages<<m.iPageShift, nextPage, 0); |
421 if (r!=KErrNone) |
422 if (r!=KErrNone) |
422 return r; |
423 return r; |
423 if(clearRam) |
424 if(clearRam) |
424 m.ClearPages(numPages, (TPhysAddr*)(nextPage|1), iClearByte); // clear RAM if required |
425 m.ClearPages(numPages, (TPhysAddr*)(nextPage|1), iClearByte); // clear RAM if required |
425 *aExtraArg = nextPage; // store physical address of RAM as return argument |
426 *aExtraArg = nextPage; // store physical address of RAM as return argument |