mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/MpInitLib: Add code to initialize MapMask
In function CreatePageTable(), add code to initialize MapMask to MAX_UINT64. When creating new page table or map non-present range to present, all attributes should be provided. 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>
This commit is contained in:
parent
c90cb726f8
commit
96e8676577
|
@ -36,10 +36,7 @@ CreatePageTable (
|
|||
MapAttribute.Uint64 = Address;
|
||||
MapAttribute.Bits.Present = 1;
|
||||
MapAttribute.Bits.ReadWrite = 1;
|
||||
|
||||
MapMask.Bits.PageTableBaseAddress = 1;
|
||||
MapMask.Bits.Present = 1;
|
||||
MapMask.Bits.ReadWrite = 1;
|
||||
MapMask.Uint64 = MAX_UINT64;
|
||||
|
||||
PageTable = 0;
|
||||
PageTableBufferSize = 0;
|
||||
|
|
Loading…
Reference in New Issue