summaryrefslogtreecommitdiffstats
path: root/EmbeddedPkg/Drivers/VirtualKeyboardDxe
diff options
context:
space:
mode:
authorDun Tan <dun.tan@intel.com>2023-03-22 15:20:20 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-03-27 08:21:58 +0000
commitaad9a301442a81c44333b44e01e39a10174930c1 (patch)
tree2137428aa2db19e10066bc6e940e81bc726763f7 /EmbeddedPkg/Drivers/VirtualKeyboardDxe
parent878cbd871df598cf9ec578ec08ac9ea4c5255f69 (diff)
downloadedk2-aad9a301442a81c44333b44e01e39a10174930c1.tar.gz
edk2-aad9a301442a81c44333b44e01e39a10174930c1.tar.bz2
edk2-aad9a301442a81c44333b44e01e39a10174930c1.zip
UefiCpuPkg/CpuPageTableLib: Enable PAE paging
Modify CpuPageTableLib code to enable PAE paging. In PageTableMap() API: When creating new PAE page table, after creating page table, set all MustBeZero fields of 4 PDPTE to 0. The MustBeZero fields are treated as RW and other attributes by the common map logic. So they might be set to 1. When updating exsiting PAE page table, the special steps are: 1.Prepare 4K-aligned 32bytes memory in stack for 4 temp PDPTE. 2.Copy original 4 PDPTE to the 4 temp PDPTE and set the RW, UserSupervisor to 1 and set Nx of 4 temp PDPTE to 0. 4.After updating the page table, set the MustBeZero fields of 4 temp PDPTE to 0. 5.Copy the temp PDPTE to original PDPTE. In PageTableParse() API, also create 4 temp PDPTE in stack. Copy original 4 PDPTE to the 4 temp PDPTE. Then set the RW, UserSupervisor to 1 and set Nx of 4 temp PDPTE to 0. Finally use the address of temp PDPTE as the page table address. Signed-off-by: Dun Tan <dun.tan@intel.com> Cc: Eric Dong <eric.dong@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Tested-by: Gerd Hoffmann <kraxel@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'EmbeddedPkg/Drivers/VirtualKeyboardDxe')
0 files changed, 0 insertions, 0 deletions