Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp716354yba; Wed, 24 Apr 2019 08:28:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPUYlvEETY87ck9/ZEtCJyQqADJ/i3ZMAtTw5G84mcr732DFyT30aVXxk5upgy4z6JgKTs X-Received: by 2002:a17:902:9a4c:: with SMTP id x12mr33011171plv.90.1556119723917; Wed, 24 Apr 2019 08:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556119723; cv=none; d=google.com; s=arc-20160816; b=aGcwO+0QIzA7qYT9M9EdzVwxQfNoN94F7o5z8s3doC7pOojLEXFiAm5JxOQYZ1Mt4W cQts0wmiocxMiohT/+FGC1j93Roer6KZtvL+4aoEn8o93Ho7vgiKv8Bqt+UUzxIdC3kc IFOexxfpRMRdOPx6yD7dpdby3nuCAQJOTrAOX+zN81xEb9y6SYm6kwubiKAx5pOfI8um 79hE1UqF/FKIqxGnlC3wkFZYBZV1nY/ge7FFPURv32hw2+6oeZNlWIUEWM0Dx9q7yz/K q6uDHVs65oef7MLBttLlvrq2ZoJqtgeTai9aTzyglb8ESO5eKs4t/hDr65UhBkKWDkOE rvpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=ywHZBM285Oi7ZNY1INp8Fr4OzMaiucwZoNO/gC6Rwc8=; b=AELwHEubaC5iV5qlwArU/Bo0N/vIxHAA8hEu9MJ1wtySIdFVO4LXDrwEWR2TbA7wmg OySJ/B8AAi5TqOPBpaan8qNhyLaGIQIm0QFZG2nPyZxxnMbKbrMJZq+yTCzruWZcrTZH IymXiETm/QPu5bRLAgNsyodEKCfeUkph76HvPSGrcigS4VGXjmPWwovHPdqiWqRtt+VK ld66k8Agx+4rNzsWLMEHo6bSArJyxlqSvYHcPFMQKKdXcriaqs312LYJhoGEXSedeui3 F0kzaATipY8c4z+/676hYKYey1UB89EL4ewzfayb7DSlAUifG+8e5ev04dOsDr3Y10qJ p/Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=oLENeaLg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 15si20680174pfz.73.2019.04.24.08.28.28; Wed, 24 Apr 2019 08:28:43 -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; Authentication-Results: mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=oLENeaLg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731567AbfDXP0f (ORCPT + 99 others); Wed, 24 Apr 2019 11:26:35 -0400 Received: from mail.efficios.com ([167.114.142.138]:57984 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727995AbfDXPZj (ORCPT ); Wed, 24 Apr 2019 11:25:39 -0400 Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id E33141D9193; Wed, 24 Apr 2019 11:25:37 -0400 (EDT) Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id 8-uXNksQ2cPx; Wed, 24 Apr 2019 11:25:37 -0400 (EDT) Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id CA4071D9180; Wed, 24 Apr 2019 11:25:36 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com CA4071D9180 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1556119536; bh=ywHZBM285Oi7ZNY1INp8Fr4OzMaiucwZoNO/gC6Rwc8=; h=From:To:Date:Message-Id; b=oLENeaLgea+9Ht7cVcbI9V1L1dZ3Top+barXfwZ+Jb6cVo2JeNayyOhUOStqovNUh weKpk82jixeMIL6Cj3tuf5Rqwu5vTB+H2aCxM8SvUDfeIKWh2k+aCYTD06C7saOBbB 0wD02SvwqR1MEaTJolUrrg0IOSjz4nTj6ivW22t3WigukW4Dnf5FZRCnVOvLLQbM+p MVrKd/5d4sUiSVa4kwRCM+EKX/4ZEOTjhaMxVsKi5CgrOxhKf5m1fQGU2+EvDN1hSr Yp1/7oZ/xVMmp1kBfXwvLOyEFiNXc69HW7ncL3E5dgaA/xSmtRVsSYtZHJv+OKDsdI 4+ctRkrhq0K3A== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id eC6GLKTZuzNr; Wed, 24 Apr 2019 11:25:36 -0400 (EDT) Received: from thinkos.internal.efficios.com (192-222-157-41.qc.cable.ebox.net [192.222.157.41]) by mail.efficios.com (Postfix) with ESMTPSA id 3F7F51D9163; Wed, 24 Apr 2019 11:25:36 -0400 (EDT) From: Mathieu Desnoyers To: Peter Zijlstra , "Paul E . McKenney" , Boqun Feng Cc: linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Thomas Gleixner , Andy Lutomirski , Dave Watson , Paul Turner , Andrew Morton , Russell King , Ingo Molnar , "H . Peter Anvin" , Andi Kleen , Chris Lameter , Ben Maurer , Steven Rostedt , Josh Triplett , Linus Torvalds , Catalin Marinas , Will Deacon , Michael Kerrisk , Joel Fernandes , Shuah Khan , Mathieu Desnoyers , linux-kselftest@vger.kernel.org Subject: [RFC PATCH for 5.2 04/10] rseq/selftests: s390: use jg instruction for jumps outside of the asm Date: Wed, 24 Apr 2019 11:24:56 -0400 Message-Id: <20190424152502.14246-5-mathieu.desnoyers@efficios.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20190424152502.14246-1-mathieu.desnoyers@efficios.com> References: <20190424152502.14246-1-mathieu.desnoyers@efficios.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The branch target range of the "j" instruction is 64K, which is not enough for the general case. Suggested-by: Martin Schwidefsky Signed-off-by: Mathieu Desnoyers CC: Thomas Gleixner CC: Joel Fernandes CC: Peter Zijlstra CC: Catalin Marinas CC: Dave Watson CC: Will Deacon CC: Shuah Khan CC: Andi Kleen CC: linux-kselftest@vger.kernel.org CC: "H . Peter Anvin" CC: Chris Lameter CC: Russell King CC: Michael Kerrisk CC: "Paul E . McKenney" CC: Paul Turner CC: Boqun Feng CC: Josh Triplett CC: Steven Rostedt CC: Ben Maurer CC: linux-api@vger.kernel.org CC: Andy Lutomirski CC: Andrew Morton CC: Linus Torvalds --- tools/testing/selftests/rseq/rseq-s390.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/rseq/rseq-s390.h b/tools/testing/selftests/rseq/rseq-s390.h index fbb97815d71c..7c4f3a70b6c7 100644 --- a/tools/testing/selftests/rseq/rseq-s390.h +++ b/tools/testing/selftests/rseq/rseq-s390.h @@ -117,14 +117,14 @@ do { \ ".long " __rseq_str(RSEQ_SIG) "\n\t" \ __rseq_str(label) ":\n\t" \ teardown \ - "j %l[" __rseq_str(abort_label) "]\n\t" \ + "jg %l[" __rseq_str(abort_label) "]\n\t" \ ".popsection\n\t" #define RSEQ_ASM_DEFINE_CMPFAIL(label, teardown, cmpfail_label) \ ".pushsection __rseq_failure, \"ax\"\n\t" \ __rseq_str(label) ":\n\t" \ teardown \ - "j %l[" __rseq_str(cmpfail_label) "]\n\t" \ + "jg %l[" __rseq_str(cmpfail_label) "]\n\t" \ ".popsection\n\t" static inline __attribute__((always_inline)) -- 2.11.0