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