ArmPkg: Fixed compilation.

This commit is contained in:
Mikhail Krichanov 2024-12-23 11:47:33 +03:00
parent 75c5b9e27e
commit 645a92be16
2 changed files with 3 additions and 5 deletions

View File

@ -795,14 +795,11 @@ ArmMakeUserPageTableTemplate (
{
VOID *TranslationTable;
UINTN MaxAddressBits;
UINT64 MaxAddress;
UINTN T0SZ;
UINTN RootTableEntryCount;
EFI_STATUS Status;
MaxAddressBits = MIN (ArmGetPhysicalAddressBits (), MAX_VA_BITS);
MaxAddress = LShiftU64 (1ULL, MaxAddressBits) - 1;
T0SZ = 64 - MaxAddressBits;
RootTableEntryCount = GetRootTableEntryCount (T0SZ);

View File

@ -240,7 +240,8 @@ CpuGetMemoryAttributes (
Status = GetMemoryRegion (&RegionBaseAddress, &RegionLength, &RegionArmAttributes, 0);
if (EFI_ERROR (Status)) {
return EFI_NOT_FOUND;
*Attributes = 0;
return Status;
}
*Attributes = RegionAttributeToGcdAttribute (RegionArmAttributes);