Message ID | 1393564465-3862-3-git-send-email-takahiro.akashi@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBC2PLDH7WAKRBLFXYCMAKGQEBBXY7KY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4E7912055D for <linaro@patches.linaro.org>; Fri, 28 Feb 2014 05:16:28 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i11sf12599603oag.4 for <linaro@patches.linaro.org>; Thu, 27 Feb 2014 21:16:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=YLuyN9C9lhOFcduBv/8oVISayPOIrcMgLir191s+UdY=; b=WOCIxnb3JT03o7b8XPTnHDpAUPF3qRtYbjF9UYbqMkLbRQWagCUWAhXSKQVOCHznie HugrFXycCLqpEO9AsOh5AOOy1PMsNMKsIlVNdSHiZ3bx8dNlES/kWmz23JmR41f3ZXXW OO7ns0Fyb5/UGvHZ9NsCKiNzOZQb9i8Uhi+oj3o0uaBzrurstyAV2PtQvkkVbkIq4KmA zsk5SwqqRK89eH6/vLacGvWsMUh3NYC8x7/CYnEzW54g7EuIcHS9sQ0Po4C1CeWRWWWZ v8m4/uE3j7HwTLjyUic2SOUUeXME+yqDzqoD0jrX9TjieHuFi9/Aa9OZ5CHz5qWgU+HT WTfw== X-Gm-Message-State: ALoCoQkCQIhS35/Bg2i+DDEkmhMD0UjSzibohr2zGQ43wTOQk8rzV/2RHtE1NWKVTyfKC79YODZD X-Received: by 10.50.87.65 with SMTP id v1mr907777igz.0.1393564588201; Thu, 27 Feb 2014 21:16:28 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.85.133 with SMTP id n5ls940179qgd.64.gmail; Thu, 27 Feb 2014 21:16:28 -0800 (PST) X-Received: by 10.58.172.132 with SMTP id bc4mr736627vec.45.1393564588053; Thu, 27 Feb 2014 21:16:28 -0800 (PST) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id se3si508712vcb.130.2014.02.27.21.16.28 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Feb 2014 21:16:28 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id la4so232297vcb.35 for <patchwork-forward@linaro.org>; Thu, 27 Feb 2014 21:16:28 -0800 (PST) X-Received: by 10.221.37.1 with SMTP id tc1mr826857vcb.32.1393564587938; Thu, 27 Feb 2014 21:16:27 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.130.193 with SMTP id u1csp28776vcs; Thu, 27 Feb 2014 21:16:27 -0800 (PST) X-Received: by 10.68.228.138 with SMTP id si10mr1188304pbc.13.1393564586763; Thu, 27 Feb 2014 21:16:26 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xn1si599693pbc.248.2014.02.27.21.16.26; Thu, 27 Feb 2014 21:16:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751522AbaB1FQX (ORCPT <rfc822;linus.walleij@linaro.org> + 26 others); Fri, 28 Feb 2014 00:16:23 -0500 Received: from mail-pb0-f45.google.com ([209.85.160.45]:42148 "EHLO mail-pb0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751400AbaB1FQU (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 28 Feb 2014 00:16:20 -0500 Received: by mail-pb0-f45.google.com with SMTP id un15so269600pbc.4 for <linux-kernel@vger.kernel.org>; Thu, 27 Feb 2014 21:16:20 -0800 (PST) X-Received: by 10.67.4.169 with SMTP id cf9mr1144178pad.45.1393564580195; Thu, 27 Feb 2014 21:16:20 -0800 (PST) Received: from localhost.localdomain (KD182249084248.au-net.ne.jp. [182.249.84.248]) by mx.google.com with ESMTPSA id y9sm4507579pas.10.2014.02.27.21.16.14 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Feb 2014 21:16:19 -0800 (PST) From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: will.deacon@arm.com Cc: viro@zeniv.linux.org.uk, eparis@redhat.com, rgb@redhat.com, catalin.marinas@arm.com, dsaxena@linaro.org, arndb@arndb.de, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, linux-audit@redhat.com, AKASHI Takahiro <takahiro.akashi@linaro.org> Subject: [PATCH v3 2/2] arm64: Add regs_return_value() in syscall.h Date: Fri, 28 Feb 2014 14:14:25 +0900 Message-Id: <1393564465-3862-3-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1393564465-3862-1-git-send-email-takahiro.akashi@linaro.org> References: <1393319683-2707-1-git-send-email-takahiro.akashi@linaro.org> <1393564465-3862-1-git-send-email-takahiro.akashi@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: takahiro.akashi@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.176 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
diff --git a/arch/arm64/include/asm/ptrace.h b/arch/arm64/include/asm/ptrace.h index 0e7fa49..5800ec1 100644 --- a/arch/arm64/include/asm/ptrace.h +++ b/arch/arm64/include/asm/ptrace.h @@ -134,6 +134,11 @@ struct pt_regs { #define user_stack_pointer(regs) \ ((regs)->sp) +static inline unsigned long regs_return_value(struct pt_regs *regs) +{ + return regs->regs[0]; +} + /* * Are the current registers suitable for user mode? (used to maintain * security in signal handlers)