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;
|
||||
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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user