From 25e3ce315ed2fb33a8a36b1be86b06a3fa235de8 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 22 Oct 2011 15:25:07 +0800 Subject: [PATCH] Kernel/armv7 - Debug changes, nothing more --- Kernel/arch/armv7/mm_virt.c | 10 ++++++---- Kernel/arch/armv7/proc.S | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Kernel/arch/armv7/mm_virt.c b/Kernel/arch/armv7/mm_virt.c index 53531d37..2c33a6e0 100644 --- a/Kernel/arch/armv7/mm_virt.c +++ b/Kernel/arch/armv7/mm_virt.c @@ -605,6 +605,8 @@ tPAddr MM_Clone(void) sp = __SP & ~(MM_KSTACK_SIZE-1); j = (sp / 0x1000) % 1024; num = MM_KSTACK_SIZE/0x1000; + + Log("num = %i, sp = %p, j = %i", num, sp, j); // Copy stack pages for(; num--; j ++, sp += 0x1000) @@ -809,14 +811,14 @@ void MM_int_DumpTableEnt(tVAddr Start, size_t Len, tMM_PageInfo *Info) { if( giMM_ZeroPage && Info->PhysAddr == giMM_ZeroPage ) { - Log("%p => %8s - 0x%7x %i %x", + Debug("%p => %8s - 0x%7x %i %x", Start, "ZERO", Len, Info->Domain, Info->AP ); } else { - Log("%p => %8x - 0x%7x %i %x", + Debug("%p => %8x - 0x%7x %i %x", Start, Info->PhysAddr-Len, Len, Info->Domain, Info->AP ); @@ -831,7 +833,7 @@ void MM_DumpTables(tVAddr Start, tVAddr End) pi_old.Size = 0; - Log("Page Table Dump:"); + Debug("Page Table Dump:"); range_start = Start; for( addr = Start; i == 0 || (addr && addr < End); i = 1 ) { @@ -859,6 +861,6 @@ void MM_DumpTables(tVAddr Start, tVAddr End) } if(inRange) MM_int_DumpTableEnt(range_start, addr - range_start, &pi); - Log("Done"); + Debug("Done"); } diff --git a/Kernel/arch/armv7/proc.S b/Kernel/arch/armv7/proc.S index 52dcb64a..4acc751f 100644 --- a/Kernel/arch/armv7/proc.S +++ b/Kernel/arch/armv7/proc.S @@ -81,9 +81,9 @@ Proc_CloneInt: Proc_CloneInt_new: @ cps #18 -@ mov r0, #0 -@ mvn r1, #0 -@ bl MM_DumpTables + mov r0, #0 + mvn r1, #0 + bl MM_DumpTables ldr r0, =csProc_CloneInt_NewTaskMessage bl Log -- 2.20.1