Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3526634pxf; Mon, 15 Mar 2021 11:31:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoHtn1JDTYCg3NnTRyhFty8hsSqY5njvTXkH5eLT7GnwkRQEPiKdGq0vB2aZ0ZDZHUYWwL X-Received: by 2002:a17:906:ecaa:: with SMTP id qh10mr25269807ejb.425.1615833097788; Mon, 15 Mar 2021 11:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615833097; cv=none; d=google.com; s=arc-20160816; b=uqjdxjLV/L1aF58e2ygtzMPojO9NlduP7+8MXCNXEXxhoo6NxPM5ZQJLq52VamAeqh J6XiQOWdk0EA2XcvTKI+xD2k47suRUTNbcXwCDqg7PY3dv006VVtjmKR72atd36X0fXA fYrQAcBBG9UWsuvDTS4WwtM+b9TE8O2/3ZqT+DJYCEpRcWfZlH/iVvNKuKKggVMEU328 Nxscsr/K03drlQoAEic07S8EZYbbUJ2COlhyJkDJFpS7QSxDpBNVx+GjqKdjETmGl7oQ EFMw5BHwBJ/CRzGa2gkrCUAuQe7zqa+kiekfhAugiP0iGrIRRnQiQDFc75Md7CVeSY8N rsSw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9yjHTdm9aO0KI0vExoiiQf05k5ohTX5jF0hX9dLcHic=; b=AjTeuEICFXGY2CxYfLneULokQAIKAGcmKvcH/IQhgAny8mFAm1IiPNaBNx31hxYJsS pDlKIzRU7OaN9SAzSjCaHV342YnGzDh8lwD3WEalBit5ulFzs4x0DnNcw8jDIREcGTnN 5RcL5JJuac8ldk56J7WfmXVbiyd2rk19jvJWyYrXRX1vNPcBkUDPzZdp1s0zSp/EfaU4 fHi8Y8IPpaeZiNOA+yQwzxiMTFCePHwQowh4IVSRXWpW44CXAVhA3NBhlaAOgH5fvkuR kplQrUo9vOemu2UCjCPWQnFySsoIglneg++9Mvl+Ewd/ouJ0CEF4DfIpzrvPIH8IhaPX ATMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=miGSEnfP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i5si11855615ejh.313.2021.03.15.11.31.15; Mon, 15 Mar 2021 11:31:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=miGSEnfP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236406AbhCOOfj (ORCPT + 99 others); Mon, 15 Mar 2021 10:35:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:35610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229634AbhCOOBl (ORCPT ); Mon, 15 Mar 2021 10:01:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D4D8664F23; Mon, 15 Mar 2021 14:01:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816889; bh=oNeT7UkvqxRBX3Bnap7SLnaoOLWYYGHGMOLeeypXxAs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=miGSEnfPzZ2VorAvbOUwfsHM2vgu74TrZQX9+LoxVsgoBdEoZTqX+Ap1OKz1NdH7o pVq1u8AppUU/lLPFqPpCn8EDY7gZqwLFbATSZTRxkChdv5bu4VkDCMcPXGC9DFfFog 0OFAt9PGmdkd0C87llQoDzqLuMWcpaCUBKhOZcGI= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nicolas Pitre , Ard Biesheuvel , Nick Desaulniers , Sasha Levin Subject: [PATCH 5.10 170/290] ARM: efistub: replace adrl pseudo-op with adr_l macro invocation Date: Mon, 15 Mar 2021 14:54:23 +0100 Message-Id: <20210315135547.643891667@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135541.921894249@linuxfoundation.org> References: <20210315135541.921894249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Ard Biesheuvel commit 67e3f828bd4bf5e4eb4214dc4eb227d8f1c8a877 upstream. The ARM 'adrl' pseudo instruction is a bit problematic, as it does not exist in Thumb mode, and it is not implemented by Clang either. Since the Thumb variant has a slightly bigger range, it is sometimes necessary to emit the 'adrl' variant in ARM mode where Thumb mode can use adr just fine. However, that still leaves the Clang issue, which does not appear to be supporting this any time soon. So let's switch to the adr_l macro, which works for both ARM and Thumb, and has unlimited range. Reviewed-by: Nicolas Pitre Signed-off-by: Ard Biesheuvel Signed-off-by: Nick Desaulniers Signed-off-by: Sasha Levin --- arch/arm/boot/compressed/head.S | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S index a0de09f994d8..247ce9055990 100644 --- a/arch/arm/boot/compressed/head.S +++ b/arch/arm/boot/compressed/head.S @@ -1440,8 +1440,7 @@ ENTRY(efi_enter_kernel) mov r4, r0 @ preserve image base mov r8, r1 @ preserve DT pointer - ARM( adrl r0, call_cache_fn ) - THUMB( adr r0, call_cache_fn ) + adr_l r0, call_cache_fn adr r1, 0f @ clean the region of code we bl cache_clean_flush @ may run with the MMU off -- 2.30.1