summaryrefslogtreecommitdiff
path: root/arch/ia64/kernel/ptrace.c
diff options
context:
space:
mode:
authorShaohua Li <shaohua.li@intel.com>2008-02-28 16:09:33 +0800
committerTony Luck <tony.luck@intel.com>2008-03-12 16:27:03 -0700
commit75529219373e53042fc46c86d991125e616f42dd (patch)
tree72c3e11a53d3ffb4106100b8e0c154fcb21073a3 /arch/ia64/kernel/ptrace.c
parentc70f8f68676866d778564de337bec6b8734c3850 (diff)
[IA64] regset: 32-bit support
This is the 32-bit regset implementation under IA64. Basically register read/write, which is derived from current ptrace register read/write. This version added TLS support. Signed-off-by: Shaohua Li <shaohua.li@intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/ptrace.c')
-rw-r--r--arch/ia64/kernel/ptrace.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/ia64/kernel/ptrace.c b/arch/ia64/kernel/ptrace.c
index 7136c7811efc..4c104170ca4d 100644
--- a/arch/ia64/kernel/ptrace.c
+++ b/arch/ia64/kernel/ptrace.c
@@ -2314,5 +2314,10 @@ static const struct user_regset_view user_ia64_view = {
const struct user_regset_view *task_user_regset_view(struct task_struct *tsk)
{
+#ifdef CONFIG_IA32_SUPPORT
+ extern const struct user_regset_view user_ia32_view;
+ if (IS_IA32_PROCESS(task_pt_regs(tsk)))
+ return &user_ia32_view;
+#endif
return &user_ia64_view;
}