mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 08:34:07 +02:00
ArmPkg: Fixed compilation.
This commit is contained in:
parent
75c5b9e27e
commit
645a92be16
@ -795,14 +795,11 @@ ArmMakeUserPageTableTemplate (
|
|||||||
{
|
{
|
||||||
VOID *TranslationTable;
|
VOID *TranslationTable;
|
||||||
UINTN MaxAddressBits;
|
UINTN MaxAddressBits;
|
||||||
UINT64 MaxAddress;
|
|
||||||
UINTN T0SZ;
|
UINTN T0SZ;
|
||||||
UINTN RootTableEntryCount;
|
UINTN RootTableEntryCount;
|
||||||
EFI_STATUS Status;
|
EFI_STATUS Status;
|
||||||
|
|
||||||
MaxAddressBits = MIN (ArmGetPhysicalAddressBits (), MAX_VA_BITS);
|
MaxAddressBits = MIN (ArmGetPhysicalAddressBits (), MAX_VA_BITS);
|
||||||
MaxAddress = LShiftU64 (1ULL, MaxAddressBits) - 1;
|
|
||||||
|
|
||||||
T0SZ = 64 - MaxAddressBits;
|
T0SZ = 64 - MaxAddressBits;
|
||||||
RootTableEntryCount = GetRootTableEntryCount (T0SZ);
|
RootTableEntryCount = GetRootTableEntryCount (T0SZ);
|
||||||
|
|
||||||
|
@ -240,7 +240,8 @@ CpuGetMemoryAttributes (
|
|||||||
Status = GetMemoryRegion (&RegionBaseAddress, &RegionLength, &RegionArmAttributes, 0);
|
Status = GetMemoryRegion (&RegionBaseAddress, &RegionLength, &RegionArmAttributes, 0);
|
||||||
|
|
||||||
if (EFI_ERROR (Status)) {
|
if (EFI_ERROR (Status)) {
|
||||||
return EFI_NOT_FOUND;
|
*Attributes = 0;
|
||||||
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
*Attributes = RegionAttributeToGcdAttribute (RegionArmAttributes);
|
*Attributes = RegionAttributeToGcdAttribute (RegionArmAttributes);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user