ARC: Fix thread_saved_pc()
authorVineet Gupta <vgupta@synopsys.com>
Fri, 27 Feb 2015 05:29:31 +0000 (10:59 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 27 Feb 2015 05:29:34 +0000 (10:59 +0530)
commit3240dd57e533da94998029af6e17008a1806c665
treef23ae90f1d3861c7f2d0dc8fb7a8c6b0c39c1948
parent13648b0118a24f4fc76c34e6c7b6ccf447e46a2a
ARC: Fix thread_saved_pc()

The old implementation assumed that SP at the time of __switch_to() is
right above pt_regs which is almost certainly not the case as there will
be some stack build up between entry into kernel and leading up to
__switch_to

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/processor.h
arch/arc/kernel/process.c