Message ID | 1391410590-4884-2-git-send-email-takahiro.akashi@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBC2PLDH7WAKRBPP3XSLQKGQE4PKT7QY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 249BB20675 for <linaro@patches.linaro.org>; Mon, 3 Feb 2014 06:57:01 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id wo20sf26749567obc.3 for <linaro@patches.linaro.org>; Sun, 02 Feb 2014 22:57:01 -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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=gEhilywjyGkLsd//pmSv7DiK1xBRYsf/qnrijx/5Ohg=; b=GLa4TpRDt8E8BxW8lGHGAzq1FdxJtnUSW9vrvXAAqlL08niaog9+TLCPAHT9edMXNY yr1AzxMnBNq/zbd3dYJLpgTG9uTs9D0UK6HlUs1RgylQuWBL6RgInrmZ0Vv4ZPfBfBsp jyz5Kh8YXaXTupbbmwbhr9OLMy/q7V9rT1LG4SChXYGKd4j4O4d3I3OpRFlkyiaOSNVn JObsIy8AYjuxLMZ+2TwcBsrM6FylI6RDFtA4oKfRZ2paFvhP8Gl8qatQBR0X6TDUh5kZ 1crnr5+/DwVuKx7hzUdh+w7x50tO4TkgxfVJoXNocsOT8Q0hxTDeu1OvYDppKPjkYukC 7/zw== X-Gm-Message-State: ALoCoQmzB8O9yogXqhynH7slcgz6PqPJcsphBagRtqDVf5hxyUR1ri9qNOCafdTvdmczxMwunkcu X-Received: by 10.182.24.5 with SMTP id q5mr13117517obf.23.1391410621137; Sun, 02 Feb 2014 22:57:01 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.149 with SMTP id c21ls1871200qgd.52.gmail; Sun, 02 Feb 2014 22:57:01 -0800 (PST) X-Received: by 10.58.119.161 with SMTP id kv1mr3615098veb.21.1391410621039; Sun, 02 Feb 2014 22:57:01 -0800 (PST) Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48]) by mx.google.com with ESMTPS id dc20si6550170vec.4.2014.02.02.22.57.01 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Feb 2014 22:57:01 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.48 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.48; Received: by mail-vb0-f48.google.com with SMTP id q16so4337873vbe.21 for <patchwork-forward@linaro.org>; Sun, 02 Feb 2014 22:57:01 -0800 (PST) X-Received: by 10.52.156.232 with SMTP id wh8mr3497190vdb.23.1391410620972; Sun, 02 Feb 2014 22:57:00 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp136206vcz; Sun, 2 Feb 2014 22:57:00 -0800 (PST) X-Received: by 10.66.139.196 with SMTP id ra4mr35905124pab.103.1391410619948; Sun, 02 Feb 2014 22:56:59 -0800 (PST) Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by mx.google.com with ESMTPS id bf5si19393960pad.59.2014.02.02.22.56.59 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Feb 2014 22:56:59 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.45 is neither permitted nor denied by best guess record for domain of takahiro.akashi@linaro.org) client-ip=209.85.220.45; Received: by mail-pa0-f45.google.com with SMTP id lf10so6699213pab.18 for <patches@linaro.org>; Sun, 02 Feb 2014 22:56:59 -0800 (PST) X-Received: by 10.68.125.164 with SMTP id mr4mr35378292pbb.27.1391410619506; Sun, 02 Feb 2014 22:56:59 -0800 (PST) Received: from localhost.localdomain (KD182249091062.au-net.ne.jp. [182.249.91.62]) by mx.google.com with ESMTPSA id hb10sm52674868pbd.1.2014.02.02.22.56.55 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Feb 2014 22:56:58 -0800 (PST) From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: viro@zeniv.linux.org.uk, eparis@redhat.com, rgb@redhat.com, catalin.marinas@arm.com, will.deacon@arm.com Cc: arndb@arndb.de, linux-arm-kernel@lists.infradead.org, linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, linux-audit@redhat.com, patches@linaro.org, AKASHI Takahiro <takahiro.akashi@linaro.org> Subject: [PATCH v3 1/3] arm64: Add regs_return_value() in syscall.h Date: Mon, 3 Feb 2014 15:56:28 +0900 Message-Id: <1391410590-4884-2-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1391410590-4884-1-git-send-email-takahiro.akashi@linaro.org> References: <1389946399-4525-1-git-send-email-takahiro.akashi@linaro.org> <1391410590-4884-1-git-send-email-takahiro.akashi@linaro.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.212.48 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.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)
This macro, regs_return_value, is used mainly for audit to record system call's results, but may also be used in test_kprobes.c. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- arch/arm64/include/asm/ptrace.h | 5 +++++ 1 file changed, 5 insertions(+)