kernel/eka/memmodel/epoc/multiple/arm/xmmu.cpp
changeset 132 e4a7b1cbe40c
parent 121 661475905584
child 286 48e57fb1237e
equal deleted inserted replaced
131:e880629062dd 132:e4a7b1cbe40c
  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)