diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2010-10-14 16:48:00 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2010-10-15 15:39:44 -0400 |
commit | ce7f2a39675ea5e8e27b3f3bb03e5041c7d10412 (patch) | |
tree | 5552e14b279cac5acc56c2b9cd3114d8e612a078 /arch/tile/kernel/compat.c | |
parent | c569cac8b69397d8bc80f95bc6edf13ed902e28b (diff) | |
download | linux-ce7f2a39675ea5e8e27b3f3bb03e5041c7d10412.tar.bz2 |
arch/tile: make ptrace() work properly for TILE-Gx COMPAT mode
Previously, we tried to pass 64-bit arguments through the
"COMPAT" mode 32-bit syscall API, which turned out not to work
well. Now we just use straight 32-bit arguments in COMPAT mode,
thus requiring individual registers to be read/written with
two syscalls. Of course this is uncommon, since usually all
the registers are read or written at once.
The restructuring applies to all the tile platforms, but is
plausibly better than the original code in any case.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/kernel/compat.c')
-rw-r--r-- | arch/tile/kernel/compat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/tile/kernel/compat.c b/arch/tile/kernel/compat.c index 5f24e54bf3c5..77739cdd9462 100644 --- a/arch/tile/kernel/compat.c +++ b/arch/tile/kernel/compat.c @@ -154,8 +154,8 @@ long tile_compat_sys_msgrcv(int msqid, #define compat_sys_fstat64 sys_newfstat #define compat_sys_fstatat64 sys_newfstatat -/* Pass full 64-bit values through ptrace. */ -#define compat_sys_ptrace tile_compat_sys_ptrace +/* The native sys_ptrace dynamically handles compat binaries. */ +#define compat_sys_ptrace sys_ptrace /* Call the trampolines to manage pt_regs where necessary. */ #define compat_sys_execve _compat_sys_execve |