From: John Hodge Date: Sat, 15 Mar 2014 08:11:47 +0000 (+0800) Subject: Kernel/x86 - Add IP/SP output to thread dump X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=902813fd2da685f025636a13d9f176b592cc8b33;p=tpg%2Facess2.git Kernel/x86 - Add IP/SP output to thread dump --- diff --git a/KernelLand/Kernel/arch/x86/proc.c b/KernelLand/Kernel/arch/x86/proc.c index 7123eefb..5637985f 100644 --- a/KernelLand/Kernel/arch/x86/proc.c +++ b/KernelLand/Kernel/arch/x86/proc.c @@ -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;