Commit 3959fde8 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Fix sysrq-t on x86-64

From: Andi Kleen <ak@muc.de>

From Badari Pulavarty

Without this sysrq-t shows the same backtrace for all processes on x86-64
parent 2393a309
......@@ -218,8 +218,12 @@ void show_stack(struct task_struct *tsk, unsigned long * rsp)
// debugging aid: "show_stack(NULL, NULL);" prints the
// back trace for this cpu.
if(rsp==NULL)
rsp=(unsigned long*)&rsp;
if (rsp == NULL) {
if (tsk)
rsp = (unsigned long *)tsk->thread.rsp;
else
rsp = (unsigned long *)&rsp;
}
stack = rsp;
for(i=0; i < kstack_depth_to_print; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment