]> git.ipfire.org Git - people/ms/linux.git/commit
ARC: Fix KSTK_ESP()
authorVineet Gupta <vgupta@synopsys.com>
Fri, 27 Feb 2015 05:09:17 +0000 (10:39 +0530)
committerJiri Slaby <jslaby@suse.cz>
Thu, 12 Mar 2015 16:31:20 +0000 (17:31 +0100)
commit47746745842f8dab521acf532b9972aaff146666
tree752d739296b2cd0e7e4cc608a6a4b5dce0abd150
parenteeb8704af25a6aed534292510da02bcfefb4bf77
ARC: Fix KSTK_ESP()

commit 13648b0118a24f4fc76c34e6c7b6ccf447e46a2a upstream.

/proc/<pid>/maps currently don't annotate stack vma with "[stack]"
This is because KSTK_ESP ie expected to return usermode SP of tsk while
currently it returns the kernel mode SP of a sleeping tsk.

While the fix is trivial, we also need to adjust the ARC kernel stack
unwinder to not use KSTK_SP and friends any more.

Reported-and-suggested-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arc/include/asm/processor.h
arch/arc/kernel/stacktrace.c