Message ID | 1393319934-2810-2-git-send-email-takahiro.akashi@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBC2PLDH7WAKRBMGAWGMAKGQE5F7MZ7Y@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f69.google.com (mail-qa0-f69.google.com [209.85.216.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B50A420558 for <linaro@patches.linaro.org>; Tue, 25 Feb 2014 09:19:44 +0000 (UTC) Received: by mail-qa0-f69.google.com with SMTP id w8sf186459qac.0 for <linaro@patches.linaro.org>; Tue, 25 Feb 2014 01:19:44 -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=9W6PcHjvOvo9TbMJJ6+um1zdmmfFgGBJvdzmfxLoQao=; b=Vhm9DQd+OPbvPNN9UkKcEKw2Pd2sRDGJ5XRHOeA8SH20jzutjhgN+JqABEY2SGMoZq cmYZr6pVHioOyPF8Eu2FBwIfHFYn8Zapr8IMJpoTXmjAN/9HEUsFLHXoxPlJuaKTNAJa K8btgOLLr7+Y8oS+H8EMKwiOFgBwBsqqEnBOXptKfvh/4w9rOLwUb43Sf7yEvtHTmnWo 5qzgaC9P2gYn0iNvJim4RgmKLYzsDSsTN9Fj4Hwag4VNImPJyfEbFp8d9oNIbM4d6OgJ xcjE2aJ2bpXp1M/LlYptMDD4pqbYX8xxFIB9+k2oe1Ci9V9RNwxGDcxF8xSzNpTgMAGf 2Wqw== X-Gm-Message-State: ALoCoQmWF0gAl9yqy9uLi0sbh2iKXecTmj1vI80aqkpKoc+UMVUgwvaCQPh4Eov9dyAGAwHgYxM+ X-Received: by 10.58.132.210 with SMTP id ow18mr146242veb.8.1393319984388; Tue, 25 Feb 2014 01:19:44 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.26.35 with SMTP id 32ls562360qgu.80.gmail; Tue, 25 Feb 2014 01:19:44 -0800 (PST) X-Received: by 10.58.178.238 with SMTP id db14mr144036vec.25.1393319984252; Tue, 25 Feb 2014 01:19:44 -0800 (PST) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id fb12si6655132veb.128.2014.02.25.01.19.44 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Feb 2014 01:19:44 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.180 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.180; Received: by mail-vc0-f180.google.com with SMTP id ks9so6775191vcb.25 for <patchwork-forward@linaro.org>; Tue, 25 Feb 2014 01:19:44 -0800 (PST) X-Received: by 10.52.94.77 with SMTP id da13mr40827vdb.55.1393319984163; Tue, 25 Feb 2014 01:19:44 -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.174.196 with SMTP id u4csp123674vcz; Tue, 25 Feb 2014 01:19:43 -0800 (PST) X-Received: by 10.68.134.98 with SMTP id pj2mr5366459pbb.110.1393319982504; Tue, 25 Feb 2014 01:19:42 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id on3si2943739pbb.215.2014.02.25.01.19.41; Tue, 25 Feb 2014 01:19:41 -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 S1752903AbaBYJTc (ORCPT <rfc822;linus.walleij@linaro.org> + 26 others); Tue, 25 Feb 2014 04:19:32 -0500 Received: from mail-pd0-f169.google.com ([209.85.192.169]:60600 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752873AbaBYJT3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 25 Feb 2014 04:19:29 -0500 Received: by mail-pd0-f169.google.com with SMTP id v10so7589861pde.28 for <linux-kernel@vger.kernel.org>; Tue, 25 Feb 2014 01:19:29 -0800 (PST) X-Received: by 10.68.2.99 with SMTP id 3mr5298108pbt.49.1393319969405; Tue, 25 Feb 2014 01:19:29 -0800 (PST) Received: from localhost.localdomain (KD182249093189.au-net.ne.jp. [182.249.93.189]) by mx.google.com with ESMTPSA id ix2sm8351685pbc.45.2014.02.25.01.19.24 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Feb 2014 01:19:28 -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: 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 v5 1/3] arm64: Add regs_return_value() in syscall.h Date: Tue, 25 Feb 2014 18:18:52 +0900 Message-Id: <1393319934-2810-2-git-send-email-takahiro.akashi@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1393319934-2810-1-git-send-email-takahiro.akashi@linaro.org> References: <1391767803-5350-1-git-send-email-takahiro.akashi@linaro.org> <1393319934-2810-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.180 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)