From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CFDAFC433ED for ; Mon, 10 May 2021 12:13:09 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 86DA0613DE for ; Mon, 10 May 2021 12:13:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 86DA0613DE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=jCkM5HLLMhT1lwjkmyjDCFcV0D1idpgAZI7/sMs4cWY=; b=ZJmSOk30c77VwQRcpNULrPf6TQ PH/qW/MuApFjZoC9mxPnGVVl80tFc3BFQDevmrqOcXYuyoRjicB4F47nf91fwbXahFRwWqAU3SyM/ aM29ZmfU95ByfzJRjbgG6pAxXH05eXZy/7TdrZssm4WaRaved6UruZuKSYb13pSHgYfs4ttrBV3e1 Df31S0nNCSh34OL2+/E0TOxXKIxOgrgh2RVlfS4ubz4Isb/P1g5CLucGNR3NyvQC+uaCmIoPUyfQh 7uoSdKPtDFQTCX+V2mTMQpE/jmksBMdfnO8HQOp1bFdh5BYChDL3oBeXyy/L3dtf22Gjb/ZA1CVU6 186rkVnA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lg4l5-00ECyS-D4; Mon, 10 May 2021 12:11:35 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg4hw-00ECOw-2f for linux-arm-kernel@desiato.infradead.org; Mon, 10 May 2021 12:08:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=xdT08IkFJdyTBJjEFC43eltDp8ETKVPG6meT9Pt1iHY=; b=upy9fiyorSu8mC00TBArEVGtIv C2MzGfXx0zfSDnA0YSnvpVxAcMxrPRyNTf4A33vcikh0Tt+CpGI1a/ieR+XAkoKNfVcdvWgfL1NbV wi1/PMOmZ4GaLaaOiANBv32TSo6b0AdVutfqrhCZE9yK1Xzg9eSn0CjTUc+o/Z/xECRRXtl8nCTvH 3VhEuZj3SxvSG/R0IuPfZmOLBYInbQZ4mR96oQPF/ZgI5NdKV7zudF6poEGDJedrUnJlskhCnDMVt +1/PfEQE9ykWsFAg/sGsh3EtNpa2/avEmJVRXUQdUO42xfYtgHA5B9ibNHZhiFmJVh20woevKmw8e zXue2O6A==; Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lg4ht-008fh2-DR for linux-arm-kernel@lists.infradead.org; Mon, 10 May 2021 12:08:18 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B9C65169C; Mon, 10 May 2021 05:08:16 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 006AB3F73B; Mon, 10 May 2021 05:08:15 -0700 (PDT) From: Andre Przywara To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, Jaxson Han Subject: [aarch64 boot-wrapper PATCH 5/6] pointer auth: Document CPU feature bit mask Date: Mon, 10 May 2021 13:07:25 +0100 Message-Id: <20210510120726.5242-6-andre.przywara@arm.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20210510120726.5242-1-andre.przywara@arm.com> References: <20210510120726.5242-1-andre.przywara@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_050817_513986_818D4296 X-CRM114-Status: GOOD ( 10.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When checking for the pointer authentication feature, we actually look for *four* different CPUID feature sets. Add a comment to make it more obvious that the 0xff is not a typo. Signed-off-by: Andre Przywara --- arch/aarch64/boot.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/aarch64/boot.S b/arch/aarch64/boot.S index a9264de..663f9fc 100644 --- a/arch/aarch64/boot.S +++ b/arch/aarch64/boot.S @@ -41,7 +41,8 @@ _start: /* Enable pointer authentication if present */ mrs x1, id_aa64isar1_el1 - ldr x2, =(((0xff) << 24) | (0xff << 4)) + /* We check for APA+API and GPA+GPI */ + ldr x2, =((0xff << 24) | (0xff << 4)) and x1, x1, x2 cbz x1, 1f -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel