Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6897481iob; Wed, 11 May 2022 07:38:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycyxJBHIbHAVbbGf9V7nu7uzHH93zdq01g0860Hwv99p90wuhzGSp+X6nfvn162R1HpvEm X-Received: by 2002:a63:5746:0:b0:3c2:363b:a88d with SMTP id h6-20020a635746000000b003c2363ba88dmr20928236pgm.17.1652279930843; Wed, 11 May 2022 07:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652279930; cv=none; d=google.com; s=arc-20160816; b=UusrNaxv6wKMwc97IHwK6qL6YMoB7ApuZozeOs6QSEMhJZT/hpV3pBBl9C9rJAnKtl G4PIo6eAGeEYqzzpamYwR6Kd8vmcaFn41vvwY+z4sDKW6UJq8bz+s2rbi5GNMw9uy8Ip Z8WBQTKpXF0qI+zOicpDPIrNV4EUscCP2MotW0G3Y75VHad4JTwPZDJc7SxaBXWaRBIo NS00H/kmM3EwPsBVDWDySSNtDJNYwOVzxK6gTI6KGrCuzuhMHFy0p6NqMnaVIyfleC88 g09MVEAAEqJB5kkWG4bAKOHQ6EvrbbyXH5CwnEQp+TZgLDqwmIF4ZPWksAzJbHpnvJI6 DKRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HiLzp9mTtQlRMnKWdDARu4/aHyFBZRPusvmlM18vIqs=; b=PZH5NNYJLVch/HsedyOSjly5BQJLG4D1+N3qtUJBB3HdlL9PI2/0u5sftIb0D7D5jN JrcMVDgzS9FUKS+Bv+W1bFg0pHv5SFRiG/BajBnyQbpFh2KZ+7mLhMNC6bqRizPZyPO2 ZlfeLZxuWNK8mYa1sp9UZg2DdrM9lSTi5QCU1NrMX2qqogNficgkqtZZtWugl77YKAbd lxKfMfSg8hbTGyLDpMDFw8e8ysOx0FUU1XA9DOVD0+jRcwWS3DB7UnEeMjNjXDH+gLFV 53gpQgwqBTse7P0pptK9xIj1G2WmKJbIuzbGckg3SY/dsdhjxbC5Ju6rEAAIvUkhn+/e WNLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=srlPbDGi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k7-20020aa788c7000000b005109510bbb6si2774558pff.198.2022.05.11.07.38.38; Wed, 11 May 2022 07:38:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=srlPbDGi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241807AbiEKMIL (ORCPT + 99 others); Wed, 11 May 2022 08:08:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241605AbiEKMFz (ORCPT ); Wed, 11 May 2022 08:05:55 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EDE36547; Wed, 11 May 2022 05:05:44 -0700 (PDT) Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24BB1gOe016246; Wed, 11 May 2022 12:05:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=HiLzp9mTtQlRMnKWdDARu4/aHyFBZRPusvmlM18vIqs=; b=srlPbDGiFcVLP5kegA704w2x/PdGYEuz1bAnUBQgQ3KG8o0C5Kc7nFBtUnkepwHHGWnp xcOHnAujzl0HI3clLuY8NEHgZ32gjEcB5T3EdcwSRP7im7uULI/CkVfKzMfzTq7FRmoS /A/hR6TilSnIpz75yIHAyRc8cH6Qaq6k0VANDa7ZMTkMpdJ6DiE6SspIXID+FHF+Shq7 aRvsz3rzIFHJidiQen0sZNVVH9SGWHkLoRP6Z1q1uZX/oBNzz/u+/1RwoAJcGXDLk/7N hGaPat4Cb2Eq+XEYdkvOrlxnaKUPcWjB+1Hd9ZnJ4WdvR6DKI+3VXiQ79TLWkMcl0bjb pg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g08t24sat-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 May 2022 12:05:41 +0000 Received: from m0098416.ppops.net (m0098416.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24BBFlIN023108; Wed, 11 May 2022 12:05:41 GMT Received: from ppma06fra.de.ibm.com (48.49.7a9f.ip4.static.sl-reverse.com [159.122.73.72]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3g08t24sa9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 May 2022 12:05:41 +0000 Received: from pps.filterd (ppma06fra.de.ibm.com [127.0.0.1]) by ppma06fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 24BC3B7v023247; Wed, 11 May 2022 12:05:39 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma06fra.de.ibm.com with ESMTP id 3fwg1hv7f5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 11 May 2022 12:05:39 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24BC5YC744695868 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 11 May 2022 12:05:34 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A1B30A4040; Wed, 11 May 2022 12:05:34 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 40947A4053; Wed, 11 May 2022 12:05:34 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 11 May 2022 12:05:34 +0000 (GMT) From: Heiko Carstens To: Vasily Gorbik , Alexander Gordeev , Jonas Paulsson , Ulrich Weigand , Masahiro Yamada , Alexander Egorenkov Cc: Sven Schnelle , Andreas Krebbel , Nathan Chancellor , Nick Desaulniers , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org Subject: [PATCH 3/8] s390/entry: shorten OUTSIDE macro Date: Wed, 11 May 2022 14:05:27 +0200 Message-Id: <20220511120532.2228616-4-hca@linux.ibm.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220511120532.2228616-1-hca@linux.ibm.com> References: <20220511120532.2228616-1-hca@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: cHxKUrY4oQYI6hFekcUcE5k-Yt7j62zS X-Proofpoint-GUID: ccDwgFvQBgT-sOqyXHrZQEq-e9SHc5mE X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-11_03,2022-05-11_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 adultscore=0 spamscore=0 impostorscore=0 mlxlogscore=810 mlxscore=0 phishscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205110056 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the minimum architecture level has been raised to z10 a shorter instruction sequence can be used to implement the OUTSIDE macro. This also reduces the number of used registers within that macro to one. Signed-off-by: Heiko Carstens --- arch/s390/kernel/entry.S | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/s390/kernel/entry.S b/arch/s390/kernel/entry.S index a6b45eaa3450..e1664b45090f 100644 --- a/arch/s390/kernel/entry.S +++ b/arch/s390/kernel/entry.S @@ -169,11 +169,9 @@ _LPP_OFFSET = __LC_LPP * @outside_label: jump here if @reg is outside of [@start..@end) */ .macro OUTSIDE reg,start,end,outside_label - lgr %r14,\reg - larl %r13,\start - slgr %r14,%r13 - lghi %r13,\end - \start - clgr %r14,%r13 + larl %r14,\start + slgrk %r14,\reg,%r14 + clgfi %r14,\end - \start jhe \outside_label .endm -- 2.32.0