diff options
author | Dun Tan <dun.tan@intel.com> | 2024-02-05 11:35:00 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-02-06 08:51:48 +0000 |
commit | 397a084b9ba159050825447db2b6a1177195d0be (patch) | |
tree | 9dd5455970525996194f200e6c6381a01f566c7a /UefiCpuPkg/Include | |
parent | 30a25f277821a1c8a168f6f3050721aa13f44b8d (diff) | |
download | edk2-397a084b9ba159050825447db2b6a1177195d0be.tar.gz edk2-397a084b9ba159050825447db2b6a1177195d0be.tar.bz2 edk2-397a084b9ba159050825447db2b6a1177195d0be.zip |
UefiCpuPkg: Add more Paging mode enumeration
Add more Paging mode enumeration in CpuPageTableLib
to support forced mapping a range in 4K page
granularity.
Signed-off-by: Dun Tan <dun.tan@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'UefiCpuPkg/Include')
-rw-r--r-- | UefiCpuPkg/Include/Library/CpuPageTableLib.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/UefiCpuPkg/Include/Library/CpuPageTableLib.h b/UefiCpuPkg/Include/Library/CpuPageTableLib.h index 78aa83b8de..6225a1d8e9 100644 --- a/UefiCpuPkg/Include/Library/CpuPageTableLib.h +++ b/UefiCpuPkg/Include/Library/CpuPageTableLib.h @@ -46,11 +46,17 @@ typedef enum { // High byte in paging mode indicates the max levels of the page table.
// Low byte in paging mode indicates the max level that can be a leaf entry.
//
- PagingPae = 0x0302,
+ PagingPae4KB = 0x0301,
+ PagingPae2MB = 0x0302,
+ PagingPae = 0x0302,
+ Paging4Level4KB = 0x0401,
+ Paging4Level2MB = 0x0402,
Paging4Level = 0x0402,
Paging4Level1GB = 0x0403,
+ Paging5Level4KB = 0x0501,
+ Paging5Level2MB = 0x0502,
Paging5Level = 0x0502,
Paging5Level1GB = 0x0503,
|