linux-mips
[Top] [All Lists]

[PATCH] MIPS: Define regs_return_value()

To: linux-mips@linux-mips.org, ralf@linux-mips.org, ananth@in.ibm.com, anil.s.keshavamurthy@intel.com, davem@davemloft.net, masami.hiramatsu.pt@hitachi.com
Subject: [PATCH] MIPS: Define regs_return_value()
From: David Daney <ddaney@caviumnetworks.com>
Date: Tue, 3 Aug 2010 13:53:24 -0700
Cc: linux-kernel@vger.kernel.org, hschauhan@nulltrace.org, David Daney <ddaney@caviumnetworks.com>
In-reply-to: <20100803202607.GA25233@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20100803202607.GA25233@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
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


<Prev in Thread] Current Thread [Next in Thread>