linux-mips
[Top] [All Lists]

Re: [PATCH 1/5] MIPS: Define regs_return_value()

To: David Daney <ddaney@caviumnetworks.com>
Subject: Re: [PATCH 1/5] MIPS: Define regs_return_value()
From: Ralf Baechle <ralf@linux-mips.org>
Date: Tue, 3 Aug 2010 21:26:07 +0100
Cc: linux-mips@linux-mips.org, ananth@in.ibm.com, anil.s.keshavamurthy@intel.com, davem@davemloft.net, masami.hiramatsu.pt@hitachi.com, linux-kernel@vger.kernel.org, hschauhan@nulltrace.org
In-reply-to: <1280859742-26364-2-git-send-email-ddaney@caviumnetworks.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1280859742-26364-1-git-send-email-ddaney@caviumnetworks.com> <1280859742-26364-2-git-send-email-ddaney@caviumnetworks.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.20 (2009-12-10)
On Tue, Aug 03, 2010 at 11:22:18AM -0700, David Daney wrote:

> +#define regs_return_value(regs) ((regs)->regs[2])

This will probably only work if the argument happens to be "regs" otherwise
the things will likely go splat.

  Ralf

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