kernel/eka/memmodel/epoc/multiple/arm/xmmu.cpp
branchGCC_SURGE
changeset 221 39b39e1a406e
parent 152 657f875b013e
child 286 48e57fb1237e
equal deleted inserted replaced
219:0ff03867bdb6 221:39b39e1a406e
  1615 	aNumPages=aSeparateGlobal ? KPageDirectorySize/KPageSize : nlocal;
  1615 	aNumPages=aSeparateGlobal ? KPageDirectorySize/KPageSize : nlocal;
  1616 	__KTRACE_OPT(KMMU,Kern::Printf("nlocal=%d, aNumPages=%d",nlocal,aNumPages));
  1616 	__KTRACE_OPT(KMMU,Kern::Printf("nlocal=%d, aNumPages=%d",nlocal,aNumPages));
  1617 	if (aNumPages>1)
  1617 	if (aNumPages>1)
  1618 		{
  1618 		{
  1619 		TInt align=aSeparateGlobal ? KPageDirectoryShift : KPageDirectoryShift-1;
  1619 		TInt align=aSeparateGlobal ? KPageDirectoryShift : KPageDirectoryShift-1;
  1620 		r=AllocContiguousRam(aNumPages<<KPageShift, aPhysAddr, EPageFixed, align);
  1620 		r=AllocContiguousRam(aNumPages<<KPageShift, aPhysAddr, align);
  1621 		}
  1621 		}
  1622 	else
  1622 	else
  1623 		r=AllocRamPages(&aPhysAddr,1, EPageFixed);
  1623 		r=AllocRamPages(&aPhysAddr,1, EPageFixed);
  1624 	__KTRACE_OPT(KMMU,Kern::Printf("r=%d, phys=%08x",r,aPhysAddr));
  1624 	__KTRACE_OPT(KMMU,Kern::Printf("r=%d, phys=%08x",r,aPhysAddr));
  1625 	if (r!=KErrNone)
  1625 	if (r!=KErrNone)