From mboxrd@z Thu Jan 1 00:00:00 1970 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 Authentication-Results: mx.groups.io; dkim=fail reason="signature has expired" header.i=@ventanamicro.com header.s=google header.b=ByaKjHDq; spf=pass (domain: ventanamicro.com, ip: 209.85.214.175, mailfrom: tphan@ventanamicro.com) Received: by mail-pl1-f175.google.com with SMTP id n17so3275988pln.8 for ; Fri, 14 Apr 2023 11:58:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1681498717; x=1684090717; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Xk67JZnVtpdY0kCgXs5S6dFQmxjHLt10okfM/CyOcrU=; b=ByaKjHDqxQxKYIoab8tbzZLeNuhK3Kvc3oFb/8JJAn7drOw+mndcBh96GpImNB9w6j tOJ3C5qnGb1RoxzgKju7hO1YViz39tI4IscAfq4B7j/1ilbMXD5oOjGZi5QWmJXA13wY Q/hZPDfpSc7qcWDVKeKezy/7B6kC0heKMksovVBmBJ5sBhFTIn6umTKLv9Om24Y3phbv IcGd/6nFvsLiCaMmJasDVmg08RZADyzbCo9GFcPl1FNDBT2RQ3qreIV+a9uUL/TB24e7 zugcUxdFsOVNx5yKIkT61kghvI8/cRJIpjTtT+JxjFZCa6+SdgwY03V+6k1iHNCzwLWn ffIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681498717; x=1684090717; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Xk67JZnVtpdY0kCgXs5S6dFQmxjHLt10okfM/CyOcrU=; b=RGrjLv4+Ful1nBnIYAsTjvmrwiG7Fk1tZ5rF1y/opD+XmoQnZgrwozpoCZX/oXufdR 5irAYlEGcUEf7PrwNkoE8CfZAt55tKuRvehNuneRLogHeQICYsk9u3mnqc7MU5XffeHz Wz85siK3/YHMSgBUEi7f23G8DPlaVldBi0SwnTqrA2Tui6sZRh3MpsIfdTTHd79+rzIh 8/VWQI6YEpQKzDa4zRl2JaCoVXWUbMIUNtgPcaOEg33KT55xnJRPY7hhUTXvfAirbsrI q4ip4k3ivAwj7PKYWyIouc2VZ4Tz8uVpYU5aG5k3Dj+H7JEgT8R7mHxADAyTBdwTAJOS rTkg== X-Gm-Message-State: AAQBX9ennDT9DjQxjE9hDOePGulB6oAN/lxeIOURN8SHKgyqszpswZek QMOliQQ/faVkAmYF7KGrKQMFgQtTmJqFg2y2W9GtCw== 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) Return-Path: 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: [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> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230414185815.2994-1-tphan@ventanamicro.com> References: <20230414185815.2994-1-tphan@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable The satp mode bits shift is used cross modules. It should be defined in one place. Signed-off-by: Tuan Phan --- 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=0D #define PRV_M 3UL=0D =0D -#define SATP64_MODE 0xF000000000000000ULL=0D -#define SATP64_ASID 0x0FFFF00000000000ULL=0D -#define SATP64_PPN 0x00000FFFFFFFFFFFULL=0D +#define SATP64_MODE 0xF000000000000000ULL=0D +#define SATP64_MODE_SHIFT 60=0D +#define SATP64_ASID 0x0FFFF00000000000ULL=0D +#define SATP64_PPN 0x00000FFFFFFFFFFFULL=0D =0D #define SATP_MODE_OFF 0UL=0D #define SATP_MODE_SV32 1UL=0D --=20 2.25.1