Messages in this thread | | | Date | Wed, 24 Apr 2013 16:45:31 -0400 | From | Chris Metcalf <> | Subject | Re: [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
| |