kernel/eka/memmodel/epoc/flexible/mmu/mpagearray.cpp
branchRCL_3
changeset 22 2f92ad2dc5db
parent 0 a41df078684a
child 41 0ffb4e86fcc9
equal deleted inserted replaced
21:e7d2d738d3c2 22:2f92ad2dc5db
   256 	TRACE2(("RPageArray::TIter::AddFind returns 0x%x+0x%x",startIndex,n));
   256 	TRACE2(("RPageArray::TIter::AddFind returns 0x%x+0x%x",startIndex,n));
   257 	return n;
   257 	return n;
   258 	}
   258 	}
   259 
   259 
   260 
   260 
   261 void RPageArray::TIter::Add(TUint aCount, TPhysAddr* aPages)
   261 void RPageArray::TIter::Add(TUint aCount, const TPhysAddr* aPages)
   262 	{
   262 	{
   263 	// MmuLock NOT required because...
   263 	// MmuLock NOT required because...
   264 	// 1. AddStart has ensured all segments are allocated and locked (so they can't be deleted)
   264 	// 1. AddStart has ensured all segments are allocated and locked (so they can't be deleted)
   265 	// 2. AddFind returns an unallocated region. This can only be changed by Adding pages
   265 	// 2. AddFind returns an unallocated region. This can only be changed by Adding pages
   266 	//    and we only allow one thread to do this at a time (i.e. the thread calling this function.)
   266 	//    and we only allow one thread to do this at a time (i.e. the thread calling this function.)