]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kgdb: Restore current_thread_info properly
authorTiejun Chen <tiejun.chen@windriver.com>
Wed, 22 Aug 2012 16:10:20 +0000 (16:10 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 24 Aug 2012 10:26:06 +0000 (20:26 +1000)
commit41200a8523b2e81fdf0eb5be7777bd0091f0a2d2
tree4d4d1d6fe382982119028473a14f9021d931684b
parent0bccc47c933658a1fd766acaf221b12bcd39cd0d
powerpc/kgdb: Restore current_thread_info properly

For powerpc BooKE and e200, singlestep is handled on the critical/dbg
exception stack. This causes current_thread_info() to fail for kgdb
internal, so previously We work around this issue by copying
the thread_info from the kernel stack before calling kgdb_handle_exception,
and copying it back afterwards.

But actually we don't do this properly. We should backup current_thread_info
then restore that when exit.

Signed-off-by: Tiejun Chen <tiejun.chen@windriver.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/kgdb.c