diff options
author | Shaohua Li <shaohua.li@intel.com> | 2008-09-18 15:49:14 +0800 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2008-10-06 10:41:37 -0700 |
commit | cfb361f13c8136de78c406745abc4e4456e6d480 (patch) | |
tree | 3edb03ec94ee1f5d45f1e7299c461d397bdcbd5e /arch/ia64/include/asm/ptrace.h | |
parent | fec6ed1d1f9b78a6acb4a3eb2c46c812ac2e96f0 (diff) | |
download | blackbird-op-linux-cfb361f13c8136de78c406745abc4e4456e6d480.tar.gz blackbird-op-linux-cfb361f13c8136de78c406745abc4e4456e6d480.zip |
[IA64] utrace syscall.h support for ia64
Add asm/syscall.h for IA64. Utrace requires this.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/include/asm/ptrace.h')
-rw-r--r-- | arch/ia64/include/asm/ptrace.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/ia64/include/asm/ptrace.h b/arch/ia64/include/asm/ptrace.h index 15f8dcfe6eee..14055c636adf 100644 --- a/arch/ia64/include/asm/ptrace.h +++ b/arch/ia64/include/asm/ptrace.h @@ -240,6 +240,12 @@ struct switch_stack { */ # define instruction_pointer(regs) ((regs)->cr_iip + ia64_psr(regs)->ri) +static inline unsigned long user_stack_pointer(struct pt_regs *regs) +{ + /* FIXME: should this be bspstore + nr_dirty regs? */ + return regs->ar_bspstore; +} + #define regs_return_value(regs) ((regs)->r8) /* Conserve space in histogram by encoding slot bits in address |