UefiCpuPkg/CpuPageTableLib: Add OUTPUT IsModified parameter.
Add OUTPUT IsModified parameter in PageTableMap() to indicate if page table has been modified. With this parameter, caller can know if need to call FlushTlb when the page table is in CR3. 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:
@ -699,7 +699,8 @@ SingleMapEntryTest (
|
||||
LastMapEntry->LinearAddress,
|
||||
LastMapEntry->Length,
|
||||
&LastMapEntry->Attribute,
|
||||
&LastMapEntry->Mask
|
||||
&LastMapEntry->Mask,
|
||||
NULL
|
||||
);
|
||||
|
||||
Attribute = &LastMapEntry->Attribute;
|
||||
@ -759,7 +760,8 @@ SingleMapEntryTest (
|
||||
LastMapEntry->LinearAddress,
|
||||
LastMapEntry->Length,
|
||||
&LastMapEntry->Attribute,
|
||||
&LastMapEntry->Mask
|
||||
&LastMapEntry->Mask,
|
||||
NULL
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user