diff options
author | Maxim Kuvyrkov <maxim@codesourcery.com> | 2009-12-07 03:24:27 -0500 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2010-02-27 12:31:19 -0500 |
commit | 9674cdc74d63f346870943ef966a034f8c71ee57 (patch) | |
tree | c590640335983c5b1a7f5c9589478bf90fb68d03 /arch/m68k/kernel/ptrace.c | |
parent | f54bcdc2b81558a2b7e624cfeb4992422d9265f9 (diff) |
m68k: Add NPTL support
This patch adds several syscalls, that provide necessary
functionality to support NPTL on m68k/ColdFire.
The syscalls are get_thread_area, set_thread_area, atomic_cmpxchg_32 and
atomic_barrier.
The cmpxchg syscall is required for ColdFire as it doesn't support 'cas'
instruction.
Also a ptrace call PTRACE_GET_THREAD_AREA is added to allow debugger to
inspect the TLS storage.
Signed-off-by: Maxim Kuvyrkov <maxim@codesourcery.com>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/kernel/ptrace.c')
-rw-r--r-- | arch/m68k/kernel/ptrace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/m68k/kernel/ptrace.c b/arch/m68k/kernel/ptrace.c index 1fc217e5f06b..616e59752c29 100644 --- a/arch/m68k/kernel/ptrace.c +++ b/arch/m68k/kernel/ptrace.c | |||
@@ -245,6 +245,11 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
245 | ret = -EFAULT; | 245 | ret = -EFAULT; |
246 | break; | 246 | break; |
247 | 247 | ||
248 | case PTRACE_GET_THREAD_AREA: | ||
249 | ret = put_user(task_thread_info(child)->tp_value, | ||
250 | (unsigned long __user *)data); | ||
251 | break; | ||
252 | |||
248 | default: | 253 | default: |
249 | ret = ptrace_request(child, request, addr, data); | 254 | ret = ptrace_request(child, request, addr, data); |
250 | break; | 255 | break; |