Paul Mundt 10c5e4e137 sh: kgdb: Fill out sleeping_thread_to_gdb_regs() state.
Presently we're using a pretty dumbed-down implementation that copies
over register state visible from the thread info, leaving the bulk of the
switch_to state uncopied.

Given that we're also depending on register bank toggling for switch_to
optimization we ought to also explicitly zero out the GP regs that reside
in an alternate bank in order to prevent handing back garbage.

There are a few extra registers that we have state for in switch_to, so
copy those over while we're at it.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2012-04-10 14:00:30 +09:00
..
2012-04-07 09:52:46 -07:00
2012-03-28 16:36:37 +02:00
2010-09-30 09:43:32 +09:00
2010-01-12 15:22:26 +09:00
2012-03-28 18:30:03 +01:00
2010-06-02 16:31:42 +09:00
2010-11-01 09:49:04 -04:00
2010-11-01 09:49:04 -04:00
2010-10-07 14:08:55 +01:00
2010-06-14 17:06:10 +09:00
2010-04-26 19:08:55 +09:00
2010-11-01 09:49:04 -04:00
2009-09-01 17:38:32 +09:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2010-06-14 15:16:53 +09:00
2012-03-28 18:30:03 +01:00
2009-03-18 18:57:43 +09:00
2011-12-08 10:22:08 -08:00
2010-01-12 18:42:52 +09:00
2009-03-10 12:55:40 +09:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2011-07-26 16:49:47 -07:00
2011-10-28 15:03:43 +09:00