mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/CpuPageTableLib:Clear PageSize bit(Bit7) for non-leaf
Clear PageSize bit(Bit7) for non-leaf entry in PageTableLibSetPnle. This function is used to set non-leaf entry attributes so it should make sure that the PageSize bit of the entry should be 0. 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
4904a2b1ec
commit
b6b54367c3
|
@ -202,7 +202,8 @@ PageTableLibSetPnle (
|
|||
Pnle->Bits.Nx = Attribute->Bits.Nx;
|
||||
}
|
||||
|
||||
Pnle->Bits.Accessed = 0;
|
||||
Pnle->Bits.Accessed = 0;
|
||||
Pnle->Bits.MustBeZero = 0;
|
||||
|
||||
//
|
||||
// Set the attributes (WT, CD, A) to 0.
|
||||
|
|
Loading…
Reference in New Issue