86 IN UINT64 AttributeMask
90 (AttributeMask == 0) ||
91 ((AttributeMask & (EFI_MEMORY_RP | EFI_MEMORY_RO | EFI_MEMORY_XP)) == 0) ||
92 ((Attributes & ~AttributeMask) != 0) ||
93 (((BaseAddress | Length) & EFI_PAGE_MASK) != 0))
95 return EFI_INVALID_PARAMETER;
106 (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
107 &gEdkiiMemoryAttributePpiGuid,
108 (VOID *)&mMemoryAttributePpi
138 ArmEnableBranchPrediction ();
145 if (!EFI_ERROR (Status)) {
148 Status = ArmMpCoreInfoPpi->GetMpCoreInfo (&ArmCoreCount, &ArmCoreInfoTable);
149 if (!EFI_ERROR (Status) && (ArmCoreCount > 0)) {
EFI_STATUS ArmSetMemoryAttributes(IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length, IN UINT64 Attributes, IN UINT64 AttributeMask)
VOID *EFIAPI BuildGuidDataHob(IN CONST EFI_GUID *Guid, IN VOID *Data, IN UINTN DataLength)
VOID EFIAPI BuildCpuHob(IN UINT8 SizeOfMemorySpace, IN UINT8 SizeOfIoSpace)
STATIC EFI_STATUS EFIAPI SetMemoryPermissions(IN EDKII_MEMORY_ATTRIBUTE_PPI *This, IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length, IN UINT64 Attributes, IN UINT64 AttributeMask)
EFI_STATUS EFIAPI PeiServicesLocatePpi(IN CONST EFI_GUID *Guid, IN UINTN Instance, IN OUT EFI_PEI_PPI_DESCRIPTOR **PpiDescriptor, IN OUT VOID **Ppi)
EFI_STATUS EFIAPI PeiServicesInstallPpi(IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList)
#define ASSERT_EFI_ERROR(StatusParameter)
#define PcdGet8(TokenName)
VOID * EFI_PEI_FILE_HANDLE
UINT64 EFI_PHYSICAL_ADDRESS