MdePkg/Register: RISC-V: Add satp mode bits shift definition

The satp mode bits shift is used cross modules. It should be defined
in one place.

Signed-off-by: Tuan Phan <tphan@ventanamicro.com>
Reviewed-by: Andrei Warkentin <andrei.warkentin@intel.com>
Reviewed-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
Tuan Phan 2023-07-14 12:08:19 -07:00 committed by mergify[bot]
parent 7178047402
commit fbec9aec00
1 changed files with 4 additions and 3 deletions

View File

@ -59,6 +59,7 @@
#define PRV_M 3UL
#define SATP64_MODE 0xF000000000000000ULL
#define SATP64_MODE_SHIFT 60
#define SATP64_ASID 0x0FFFF00000000000ULL
#define SATP64_PPN 0x00000FFFFFFFFFFFULL