audk/UefiPayloadPkg/UefiPayloadEntry/X64
Ni, Ray ca78281c25 UefiPayloadPkg/PayloadEntry: Inherit 4/5-level paging from bootloader
The patch removes the dep on PcdUse5LevelPageTable.
Now the payload inherits the 5-level paging setting from
bootloader in IA-32e mode and uses 4-level paging in
legacy protected mode.

This fix the potential issue when bootloader enables 5-level paging
but 64bit payload sets 4-level page table to CR3 resulting CPU
exception because PcdUse5LevelPageTable is FALSE.

Signed-off-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Guo Dong <guo.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
Cc: Benjamin You <benjamin.you@intel.com>
2021-12-08 04:08:21 +00:00
..
DxeLoadFunc.c UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
VirtualMemory.c UefiPayloadPkg/PayloadEntry: Inherit 4/5-level paging from bootloader 2021-12-08 04:08:21 +00:00
VirtualMemory.h UefiPayloadPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00