]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitafc3d80a1432806b0bd4f38e4ebdd059216c810c
treef23ae90f1d3861c7f2d0dc8fb7a8c6b0c39c1948
parent4f97147d89b66bb63d40b1c609a844a0248c1790
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