kernel/eka/memmodel/epoc/mmubase/mmubase.cpp
branchRCL_3
changeset 22 2f92ad2dc5db
parent 14 5d2844f35677
child 26 c734af59ce98
--- a/kernel/eka/memmodel/epoc/mmubase/mmubase.cpp	Mon Mar 15 12:45:50 2010 +0200
+++ b/kernel/eka/memmodel/epoc/mmubase/mmubase.cpp	Wed Mar 31 23:38:45 2010 +0300
@@ -1263,14 +1263,14 @@
 #endif
 
 #ifdef BTRACE_RAM_ALLOCATOR
-	// Must check for -1 as that is the default value of aCategroy for
+	// Must check for -1 as that is the default value of aCategory for
 	// BTrace::Prime() which is intended to prime all categories that are 
 	// currently enabled via a single invocation of BTrace::Prime().
 	if(aCategory==BTrace::ERamAllocator || (TInt)aCategory == -1)
 		{
 		NKern::ThreadEnterCS();
 		Mmu::Wait();
-		Mmu::Get().iRamPageAllocator->SendInitialBtraceLogs();
+		Mmu::Get().iRamPageAllocator->DoBTracePrime();
 		Mmu::Signal();
 		NKern::ThreadLeaveCS();
 		}
@@ -2683,8 +2683,8 @@
 	SPageInfo::TType type = aPageInfo->Type();
 	if(type==SPageInfo::EChunk)
 		{
-		//Must not donate locked page. An example is DMA trasferred memory.
-		__NK_ASSERT_DEBUG(0 == aPageInfo->LockCount());
+		// Must not donate locked page. An example is DMA transferred memory.
+		__NK_ASSERT_DEBUG(!aPageInfo->LockCount());
 
 		aPageInfo->Change(SPageInfo::EPagedCache,SPageInfo::EStatePagedYoung);
 		iPageList.Add(&aPageInfo->iLink);
@@ -3698,8 +3698,8 @@
 	SPageInfo::TType type = aPageInfo->Type();
 	if(type==SPageInfo::EChunk)
 		{
-		//Must not donate locked page. An example is DMA trasferred memory.
-		__NK_ASSERT_DEBUG(0 == aPageInfo->LockCount());
+		// Must not donate locked page. An example is DMA transferred memory.
+		__NK_ASSERT_DEBUG(!aPageInfo->LockCount());
 		
 		aPageInfo->Change(SPageInfo::EPagedCache,SPageInfo::EStatePagedYoung);