kernel/eka/memmodel/epoc/moving/mchunk.cpp
changeset 152 657f875b013e
parent 36 538db54a451d
equal deleted inserted replaced
139:95f71bcdcdb7 152:657f875b013e
   465 
   465 
   466 	case DChunk::ECommitContiguous:
   466 	case DChunk::ECommitContiguous:
   467 		{
   467 		{
   468 		// Allocate a block of contiguous RAM from the free pool
   468 		// Allocate a block of contiguous RAM from the free pool
   469 		TInt numPages=(endOffset-offset)>>m.iPageShift;
   469 		TInt numPages=(endOffset-offset)>>m.iPageShift;
   470 		r=m.AllocContiguousRam(numPages<<m.iPageShift, nextPage, GetPageType(), 0);
   470 		__NK_ASSERT_DEBUG(EPageFixed == GetPageType());
       
   471 		r=m.AllocContiguousRam(numPages<<m.iPageShift, nextPage, 0);
   471 		if (r!=KErrNone)
   472 		if (r!=KErrNone)
   472 			return r;
   473 			return r;
   473 		if(clearRam)
   474 		if(clearRam)
   474 			m.ClearPages(numPages, (TPhysAddr*)(nextPage|1), iClearByte);  // clear RAM if required
   475 			m.ClearPages(numPages, (TPhysAddr*)(nextPage|1), iClearByte);  // clear RAM if required
   475 		*aExtraArg = nextPage;	// store physical address of RAM as return argument
   476 		*aExtraArg = nextPage;	// store physical address of RAM as return argument