mirror of https://github.com/acidanthera/audk.git
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:
parent
7178047402
commit
fbec9aec00
|
@ -58,9 +58,10 @@
|
|||
#define PRV_S 1UL
|
||||
#define PRV_M 3UL
|
||||
|
||||
#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
|
||||
|
||||
#define SATP_MODE_OFF 0UL
|
||||
#define SATP_MODE_SV32 1UL
|
||||
|
|
Loading…
Reference in New Issue