lkml.org 
[lkml]   [2013]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] arch/tile: Fix syscall return value passed to tracepoint
On 4/17/2013 11:01 AM, Simon Marchi wrote:
> Currently the syscall number is passed, but it should be the return
> value, which is kept in r0.
>
> Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
> ---
> This patch applies on Chris Metcalf's tree:
> http://git.kernel.org/cgit/linux/kernel/git/cmetcalf/linux-tile.git
>
> arch/tile/include/uapi/arch/abi.h | 2 ++
> arch/tile/kernel/ptrace.c | 2 +-
> 2 files changed, 3 insertions(+), 1 deletions(-)

Accepted into the tile tree, but just using [0] instead of adding a new <arch/abi.h> #define. The reason is that the compiler actually uses r0..r9 inclusive for return values, e.g. returning small structs, so I'm reluctant to call out r0 for a special name.

--
Chris Metcalf, Tilera Corp.
http://www.tilera.com



\
 
 \ /
  Last update: 2013-04-24 23:21    [W:0.042 / U:0.916 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site