Kernel/x86 - Add IP/SP output to thread dump
authorJohn Hodge <[email protected]>
Sat, 15 Mar 2014 08:11:47 +0000 (16:11 +0800)
committerJohn Hodge <[email protected]>
Sat, 15 Mar 2014 08:11:47 +0000 (16:11 +0800)
KernelLand/Kernel/arch/x86/proc.c

index 7123eef..5637985 100644 (file)
@@ -729,7 +729,9 @@ void Proc_DumpThreadCPUState(tThread *Thread)
                Error_Backtrace(regs->eip, regs->ebp);
                return ;
        }
-       
+
+       Log(" Saved = %p (SP=%p)", Thread->SavedState.EIP, Thread->SavedState.ESP);     
+
        tVAddr  diffFromScheduler = Thread->SavedState.EIP - (tVAddr)SwitchTasks;
        tVAddr  diffFromClone = Thread->SavedState.EIP - (tVAddr)Proc_CloneInt;
        tVAddr  diffFromSpawn = Thread->SavedState.EIP - (tVAddr)NewTaskHeader;

UCC git Repository :: git.ucc.asn.au