[PATCH] MIPS: Define regs_return_value()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Daney
Date: Tuesday, August 3, 2010 - 1:53 pm

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
---

Use this version instead of the original 1/5

 arch/mips/include/asm/ptrace.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/mips/include/asm/ptrace.h b/arch/mips/include/asm/ptrace.h
index cdc6a46..9f1b8db 100644
--- a/arch/mips/include/asm/ptrace.h
+++ b/arch/mips/include/asm/ptrace.h
@@ -137,6 +137,7 @@ extern int ptrace_set_watch_regs(struct task_struct *child,
  */
 #define user_mode(regs) (((regs)->cp0_status & KU_MASK) == KU_USER)
 
+#define regs_return_value(_regs) ((_regs)->regs[2])
 #define instruction_pointer(regs) ((regs)->cp0_epc)
 #define profile_pc(regs) instruction_pointer(regs)
 
-- 
1.7.1.1

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/5] KProbes support for MIPS, David Daney, (Tue Aug 3, 11:22 am)
[PATCH 1/5] MIPS: Define regs_return_value(), David Daney, (Tue Aug 3, 11:22 am)
[PATCH 3/5] MIPS: Add KProbe support., David Daney, (Tue Aug 3, 11:22 am)
Re: [PATCH 1/5] MIPS: Define regs_return_value(), Ralf Baechle, (Tue Aug 3, 1:26 pm)
[PATCH] MIPS: Define regs_return_value(), David Daney, (Tue Aug 3, 1:53 pm)
Re: [PATCH 0/5] KProbes support for MIPS, Ananth N Mavinakayan ..., (Tue Aug 3, 9:43 pm)
Re: [PATCH] MIPS: Define regs_return_value(), Ralf Baechle, (Wed Aug 4, 4:46 pm)
Re: [PATCH 3/5] MIPS: Add KProbe support., Ralf Baechle, (Wed Aug 4, 4:59 pm)