Message ID | 1389946399-4525-3-git-send-email-takahiro.akashi@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBC2PLDH7WAKRBS6M4OLAKGQECRQPCSY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8279D202FA for <linaro@patches.linaro.org>; Fri, 17 Jan 2014 08:14:04 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id x10sf5320751pdj.0 for <linaro@patches.linaro.org>; Fri, 17 Jan 2014 00:14:03 -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=ihzuGTlBXgbhIOLPOmFBOygNWCoVihWlS6oE4Kk1+wI=; b=V0NSOcC5VhdzpeZNEoyTdzAaVN4h0V7TlSug/K5EOL6hprONOxWMJtA+d44zV/sYLM M0jqnLA4iEW5HA8yWABagx4h4kzX7ymy2CMyRl103NkqrnEZPKCNZbn9kKQhwPUU3zF8 nwWzq0PLhwXosduMZ4ITdYZUDHw6Zm1RlHYq+zAgvzmA+C0CMBdXikpzRkndP/s67lMF k+uLaTqD6nVcOoNAo7Ag9Jx1GHgMoJG8UpYby5K1nvTHYmq81yIHB9xUCq5CFTqtKZP+ HeZwoPnJINBUgyUxIkD5Pyqqlg8+zuuOPMI15meh8br0mo4Xy4SDnynT7q3uXj1tggiI 3iUA== X-Gm-Message-State: ALoCoQlOu6ONgoQdo6o2VvrNdJ5gD1OYfgSZSkbi5XbFR3i6tH2x8m63rfxVd4e6phu6qMFIt4+N X-Received: by 10.66.253.9 with SMTP id zw9mr234535pac.38.1389946443627; Fri, 17 Jan 2014 00:14:03 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.40.164 with SMTP id y4ls1154736qek.89.gmail; Fri, 17 Jan 2014 00:14:03 -0800 (PST) X-Received: by 10.52.64.140 with SMTP id o12mr205413vds.40.1389946443482; Fri, 17 Jan 2014 00:14:03 -0800 (PST) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id sz9si4530037vdc.149.2014.01.17.00.14.03 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 00:14:03 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.177 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.177; Received: by mail-vc0-f177.google.com with SMTP id if11so1409819vcb.36 for <patchwork-forward@linaro.org>; Fri, 17 Jan 2014 00:14:03 -0800 (PST) X-Received: by 10.220.97.145 with SMTP id l17mr208192vcn.35.1389946443402; Fri, 17 Jan 2014 00:14:03 -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.59.13.131 with SMTP id ey3csp2333ved; Fri, 17 Jan 2014 00:14:03 -0800 (PST) X-Received: by 10.66.119.172 with SMTP id kv12mr724193pab.34.1389946442639; Fri, 17 Jan 2014 00:14:02 -0800 (PST) Received: from mail-pd0-f178.google.com (mail-pd0-f178.google.com [209.85.192.178]) by mx.google.com with ESMTPS id nu8si9504707pbb.12.2014.01.17.00.14.02 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 00:14:02 -0800 (PST) Received-SPF: neutral (google.com: 209.85.192.178 is neither permitted nor denied by best guess record for domain of takahiro.akashi@linaro.org) client-ip=209.85.192.178; Received: by mail-pd0-f178.google.com with SMTP id y13so3706832pdi.23 for <patches@linaro.org>; Fri, 17 Jan 2014 00:14:02 -0800 (PST) X-Received: by 10.66.51.137 with SMTP id k9mr630820pao.11.1389946442265; Fri, 17 Jan 2014 00:14:02 -0800 (PST) Received: from localhost.localdomain (KD182250177246.au-net.ne.jp. [182.250.177.246]) by mx.google.com with ESMTPSA id jn12sm20572056pbd.37.2014.01.17.00.13.57 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 Jan 2014 00:14:01 -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 v2 2/6] arm64: Add regs_return_value() in syscall.h Date: Fri, 17 Jan 2014 17:13:15 +0900 Message-Id: <1389946399-4525-3-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1389946399-4525-1-git-send-email-takahiro.akashi@linaro.org> References: <1383733546-2846-1-git-send-email-takahiro.akashi@linaro.org> <1389946399-4525-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.220.177 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 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(+)