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>
This commit is contained in:
Dun Tan 2024-02-05 11:35:00 +08:00 committed by mergify[bot]
parent 30a25f2778
commit 397a084b9b
1 changed files with 7 additions and 1 deletions

View File

@ -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,