Message ID | 1394705491-12343-4-git-send-email-takahiro.akashi@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBC2PLDH7WAKRBSMJQ2MQKGQETDTTGPY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5F68B206A0 for <linaro@patches.linaro.org>; Thu, 13 Mar 2014 10:13:29 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id lg15sf1802427vcb.11 for <linaro@patches.linaro.org>; Thu, 13 Mar 2014 03:13:29 -0700 (PDT) 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=P8YPK+ILhlsGKCgyoTDz4IMt7HeeL0g3757xm04N2YRb6PhUL5Q4R6mL3rg4dcGuD5 3xORaYOU7nLaVlwhBruLKYIjB3kn4fc5ICpJR7QsiKqEzleP9XP09rxg26tX3mWtJBzX lMIgNyafUsA7nGb3dnMP/x2+NkjdEzk8/cwvvPvSVifSY4cPsgRusmtlvFMFjl2qcz3m junlp7SYtiAZIWndj1XNALzxf7DYL4pz9JwGFrH+1/rOs0pUVJNyD1jTM5wnmg8upvR2 hIgyfFhVb/NtiPA5Rml17FOeL4vh2GTw8drQltIC3CgtYr0EIaI5r6oauJkO8cn2Gg6/ Fafw== X-Gm-Message-State: ALoCoQnJnHp4/1Us+IyoctfslpG9bFng8s74FxhnL6IGeR6SgqqBoczzcxuNQUeVHBaVu1DO3+Q4 X-Received: by 10.58.218.40 with SMTP id pd8mr373842vec.39.1394705609121; Thu, 13 Mar 2014 03:13:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.98.169 with SMTP id o38ls207862qge.37.gmail; Thu, 13 Mar 2014 03:13:28 -0700 (PDT) X-Received: by 10.52.248.138 with SMTP id ym10mr617344vdc.18.1394705608934; Thu, 13 Mar 2014 03:13:28 -0700 (PDT) Received: from mail-ve0-f171.google.com (mail-ve0-f171.google.com [209.85.128.171]) by mx.google.com with ESMTPS id yb7si643886vec.39.2014.03.13.03.13.28 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Mar 2014 03:13:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.171; Received: by mail-ve0-f171.google.com with SMTP id cz12so832938veb.30 for <patchwork-forward@linaro.org>; Thu, 13 Mar 2014 03:13:28 -0700 (PDT) X-Received: by 10.220.161.8 with SMTP id p8mr729013vcx.4.1394705608867; Thu, 13 Mar 2014 03:13:28 -0700 (PDT) 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.78.9 with SMTP id i9csp355836vck; Thu, 13 Mar 2014 03:13:28 -0700 (PDT) X-Received: by 10.68.191.39 with SMTP id gv7mr1300737pbc.90.1394705607892; Thu, 13 Mar 2014 03:13:27 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ra2si1051956pab.336.2014.03.13.03.13.27; Thu, 13 Mar 2014 03:13:27 -0700 (PDT) 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 S1753923AbaCMKNO (ORCPT <rfc822;linus.walleij@linaro.org> + 26 others); Thu, 13 Mar 2014 06:13:14 -0400 Received: from mail-pb0-f53.google.com ([209.85.160.53]:54846 "EHLO mail-pb0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753861AbaCMKNJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Mar 2014 06:13:09 -0400 Received: by mail-pb0-f53.google.com with SMTP id rp16so883168pbb.26 for <linux-kernel@vger.kernel.org>; Thu, 13 Mar 2014 03:13:08 -0700 (PDT) X-Received: by 10.66.121.195 with SMTP id lm3mr1254593pab.154.1394705588494; Thu, 13 Mar 2014 03:13:08 -0700 (PDT) Received: from localhost.localdomain (KD182249091179.au-net.ne.jp. [182.249.91.179]) by mx.google.com with ESMTPSA id fn2sm7487532pab.38.2014.03.13.03.13.03 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Mar 2014 03:13:07 -0700 (PDT) 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 v4 3/3] arm64: Add regs_return_value() in syscall.h Date: Thu, 13 Mar 2014 19:11:31 +0900 Message-Id: <1394705491-12343-4-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1394705491-12343-1-git-send-email-takahiro.akashi@linaro.org> References: <1393564465-3862-1-git-send-email-takahiro.akashi@linaro.org> <1394705491-12343-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.128.171 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)