arch/tile: provide PT_FLAGS_COMPAT value in pt_regs
authorChris Metcalf <cmetcalf@tilera.com>
Wed, 12 Dec 2012 22:24:39 +0000 (17:24 -0500)
committerChris Metcalf <cmetcalf@tilera.com>
Thu, 13 Dec 2012 16:34:24 +0000 (11:34 -0500)
commitcb67e161bc947ab467657dda38168c2b2266f5bc
tree289e3905765484e8736a62f1a8a289d833e0960e
parent17a263540cebd4c615755300f34c695b15378a58
arch/tile: provide PT_FLAGS_COMPAT value in pt_regs

This flag is set for ptrace GETREGS or PEEKUSER for processes
that are COMPAT, i.e. 32-bit.  This allows things like strace
to easily discover what personality to use, for example.

Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
arch/tile/include/uapi/asm/ptrace.h
arch/tile/kernel/ptrace.c