diff options
author | Jeff Dike <jdike@addtoit.com> | 2008-02-04 22:30:57 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-05 09:44:28 -0800 |
commit | d25f2e1235aab716c9fd6ba36c42503627a3a0e3 (patch) | |
tree | 5eaabe739be50f1417707fb6eef2da75dc567a30 /arch/um/kernel | |
parent | ee3d9bd4de1ed93d2a7ee41c331ed30a1c7b8acd (diff) | |
download | op-kernel-dev-d25f2e1235aab716c9fd6ba36c42503627a3a0e3.zip op-kernel-dev-d25f2e1235aab716c9fd6ba36c42503627a3a0e3.tar.gz |
uml: use ptrace directly in libc code
Some register accessor cleanups -
userspace() was calling restore_registers and save_registers for no
reason, since userspace() is on the libc side of the house, and these
add no value over calling ptrace directly
init_thread_registers and get_safe_registers were the same thing,
so init_thread_registers is gone
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/kernel')
-rw-r--r-- | arch/um/kernel/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index ae1942e..7a29123 100644 --- a/arch/um/kernel/process.c +++ b/arch/um/kernel/process.c @@ -199,7 +199,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long sp, arch_copy_thread(¤t->thread.arch, &p->thread.arch); } else { - init_thread_registers(&p->thread.regs.regs); + get_safe_registers(p->thread.regs.regs.gp); p->thread.request.u.thread = current->thread.request.u.thread; handler = new_thread_handler; } |