[XTENSA] Allow debugger to modify the WINDOWBASE register.
authorChris Zankel <chris@zankel.net>
Mon, 28 Jan 2008 23:55:01 +0000 (15:55 -0800)
committerChris Zankel <chris@zankel.net>
Thu, 14 Feb 2008 01:45:36 +0000 (17:45 -0800)
commit42086cec3263b8c015ca3faa01e8190f0e3ff445
treec28564042c13ee09e652dc176b6f8cd87ce10359
parentbdd362ff4ff8dc0c697ce87dbb337f3b7341fc46
[XTENSA] Allow debugger to modify the WINDOWBASE register.

For the 'return' command, GDB needs to adjust WINDOWBASE.
In case WB is different from 0, we need to rotate the
window register file and update WINDOWSTART and WMASK.
This patch also removes some ret|= statements for
__get_user/__put_user as the address range was alrady
checked a couple of lines earlier.

Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/kernel/ptrace.c
include/asm-xtensa/elf.h