summaryrefslogtreecommitdiffstats
path: root/arch/frv/kernel/gdb-stub.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-11-02 14:20:43 +0100
committerDavid Howells <dhowells@redhat.com>2012-11-02 14:20:43 +0100
commite7aa51b2e52274b13be3209e2787d1b2ce9624fd (patch)
tree43498c88cd786e17c7545a574152c986ab756c12 /arch/frv/kernel/gdb-stub.c
parentFRV: Fix the preemption handling (diff)
downloadlinux-e7aa51b2e52274b13be3209e2787d1b2ce9624fd.tar.xz
linux-e7aa51b2e52274b13be3209e2787d1b2ce9624fd.zip
FRV: Fix the new-style kernel_thread() stuff
The kernel_thread() changes for FRV don't work, and FRV fails to boot, starting with: commit 02ce496f152df87be081a64796498942c433a2fd Author: Al Viro <viro@zeniv.linux.org.uk> Date: Tue Sep 18 22:18:51 2012 -0400 Subject: frv: split ret_from_fork, simplify kernel_thread() a lot The problem is that the userspace registers are completely cleared when a kernel thread is created and all subsequent user threads are then copied from that. Unfortunately, however, the TBR and PSR registers are restored from the pt_regs and the values they should be set to are clobbered by the memset. Instead, copy across the old user registers as normal, and then merely alter GR8 and GR9 in it if we're going to execute a kernel thread. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'arch/frv/kernel/gdb-stub.c')
0 files changed, 0 insertions, 0 deletions