From nobody Sun Feb 8 07:07:19 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+103017+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+103017+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1681498718; cv=none; d=zohomail.com; s=zohoarc; b=ZPSgPaauw/XU8VQ2HXhxgB/zLObh++epJz3SAeiWbz04PiW+aywUvdCZUpFSEhM3Ga7hpQRM5bDUXs0aq6fQHN3pT9PlVOSlWEaUEakQa2RAZp49WH/viUyWmKJ7qY+SksAJmEu5cVJgZR03fh+UD2tyMIbY6NYT/uS3LEetpZg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1681498718; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=UITJuAcB9qDnrdblM0DDho3wdXUigjB8mDGDTjAH3K8=; b=JSIFQDxjioxVbAuoL2O8/2q+sTT7cO5Dz+wcedx2oVwRDr33yhWZwcF+P5t5fDtaf+895NRhHNLj/cq+D2GMYDUS1l7KFrfRmjn3Q+g4wuORUta2a8Yz09PuVf8dFLAJZ7pPBCyefnNAlIJ4kRUxOdlwXouVwt8bBrbn1B3fiwc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+103017+1787277+3901457@groups.io Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1681498718963280.74221963734476; Fri, 14 Apr 2023 11:58:38 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id cYoLYY1788612xpyfkg4qyKe; Fri, 14 Apr 2023 11:58:38 -0700 X-Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mx.groups.io with SMTP id smtpd.web11.19129.1681498718183543419 for ; Fri, 14 Apr 2023 11:58:38 -0700 X-Received: by mail-pl1-f175.google.com with SMTP id n17so3275988pln.8 for ; Fri, 14 Apr 2023 11:58:38 -0700 (PDT) X-Gm-Message-State: D7ikhGAIAH7vGisasBQ0z5OMx1787277AA= X-Google-Smtp-Source: AKy350b/HmZb0iY9XBBLkCNPmqoiMJFrPyO37VCDD7kfh7SD6eHewZUqgy5e+l7HLv030eLlBifxkw== X-Received: by 2002:a17:902:d507:b0:1a6:275b:9374 with SMTP id b7-20020a170902d50700b001a6275b9374mr4473930plg.67.1681498717299; Fri, 14 Apr 2023 11:58:37 -0700 (PDT) X-Received: from localhost.localdomain (c-174-50-177-95.hsd1.ca.comcast.net. [174.50.177.95]) by smtp.gmail.com with ESMTPSA id g20-20020a170902869400b001a681d123a0sm3329760plo.297.2023.04.14.11.58.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Apr 2023 11:58:36 -0700 (PDT) From: "Tuan Phan" To: devel@edk2.groups.io Cc: michael.d.kinney@intel.com, gaoliming@byosoft.com.cn, zhiguang.liu@intel.com, sunilvl@ventanamicro.com, git@danielschaefer.me, andrei.warkentin@intel.com, Tuan Phan Subject: [edk2-devel] [PATCH v2 2/6] MdePkg/Register: RISC-V: Add satp mode bits shift definition Date: Fri, 14 Apr 2023 11:58:11 -0700 Message-Id: <20230414185815.2994-3-tphan@ventanamicro.com> In-Reply-To: <20230414185815.2994-1-tphan@ventanamicro.com> References: <20230414185815.2994-1-tphan@ventanamicro.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,tphan@ventanamicro.com Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1681498718; bh=5M55J0XDRXhKCsQN4hJdyeiH/BdqLZCBmZkcdGu5vgM=; h=Cc:Date:From:Reply-To:Subject:To; b=thxXNCNmsDQ9IaEryDcBOMh6Zp9ImjxJ84bCOEU9hsUrGrmC+75V+AotFkswFyay6cM ZY7sps811u867k3Tf+ocjtSiwlFJKcdwUY7jwCqgb8K9x4BXBf+3O0bvetabRWOrmX3Kh gOzbDD4b6r17oaTTWWYnjFlVR94ws7jvVJ4= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1681498719381100011 Content-Type: text/plain; charset="utf-8" The satp mode bits shift is used cross modules. It should be defined in one place. Signed-off-by: Tuan Phan Reviewed-by: Andrei Warkentin --- MdePkg/Include/Register/RiscV64/RiscVEncoding.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/MdePkg/Include/Register/RiscV64/RiscVEncoding.h b/MdePkg/Inclu= de/Register/RiscV64/RiscVEncoding.h index 5c2989b797bf..2bde8db478ff 100644 --- a/MdePkg/Include/Register/RiscV64/RiscVEncoding.h +++ b/MdePkg/Include/Register/RiscV64/RiscVEncoding.h @@ -58,9 +58,10 @@ #define PRV_S 1UL #define PRV_M 3UL =20 -#define SATP64_MODE 0xF000000000000000ULL -#define SATP64_ASID 0x0FFFF00000000000ULL -#define SATP64_PPN 0x00000FFFFFFFFFFFULL +#define SATP64_MODE 0xF000000000000000ULL +#define SATP64_MODE_SHIFT 60 +#define SATP64_ASID 0x0FFFF00000000000ULL +#define SATP64_PPN 0x00000FFFFFFFFFFFULL =20 #define SATP_MODE_OFF 0UL #define SATP_MODE_SV32 1UL --=20 2.25.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#103017): https://edk2.groups.io/g/devel/message/103017 Mute This Topic: https://groups.io/mt/98269075/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-