From 8a1f5405964fe6c09e768ae576a023be2e2e7b08 Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Sun, 25 Jun 2023 11:21:55 +0200 Subject: ArmPkg: Drop individual memory permission helpers Now that we have a sane API to set and clear memory permissions that works the same on ARM and AArch64, we no longer have a need for the individual set/clear no-access/read-only/no-exec helpers so let's drop them. Signed-off-by: Ard Biesheuvel Reviewed-by: Leif Lindholm --- ArmPkg/Include/Library/ArmMmuLib.h | 62 -------------------------------------- 1 file changed, 62 deletions(-) (limited to 'ArmPkg/Include/Library/ArmMmuLib.h') diff --git a/ArmPkg/Include/Library/ArmMmuLib.h b/ArmPkg/Include/Library/ArmMmuLib.h index 91d112314f..2ce948e8db 100644 --- a/ArmPkg/Include/Library/ArmMmuLib.h +++ b/ArmPkg/Include/Library/ArmMmuLib.h @@ -21,68 +21,6 @@ ArmConfigureMmu ( OUT UINTN *TranslationTableSize OPTIONAL ); -/** - Convert a region of memory to read-protected, by clearing the access flag. - - @param BaseAddress The start of the region. - @param Length The size of the region. - - @retval EFI_SUCCESS The attributes were set successfully. - @retval EFI_OUT_OF_RESOURCES The operation failed due to insufficient memory. - -**/ -EFI_STATUS -EFIAPI -ArmSetMemoryRegionNoAccess ( - IN EFI_PHYSICAL_ADDRESS BaseAddress, - IN UINT64 Length - ); - -/** - Convert a region of memory to read-enabled, by setting the access flag. - - @param BaseAddress The start of the region. - @param Length The size of the region. - - @retval EFI_SUCCESS The attributes were set successfully. - @retval EFI_OUT_OF_RESOURCES The operation failed due to insufficient memory. - -**/ -EFI_STATUS -EFIAPI -ArmClearMemoryRegionNoAccess ( - IN EFI_PHYSICAL_ADDRESS BaseAddress, - IN UINT64 Length - ); - -EFI_STATUS -EFIAPI -ArmSetMemoryRegionNoExec ( - IN EFI_PHYSICAL_ADDRESS BaseAddress, - IN UINT64 Length - ); - -EFI_STATUS -EFIAPI -ArmClearMemoryRegionNoExec ( - IN EFI_PHYSICAL_ADDRESS BaseAddress, - IN UINT64 Length - ); - -EFI_STATUS -EFIAPI -ArmSetMemoryRegionReadOnly ( - IN EFI_PHYSICAL_ADDRESS BaseAddress, - IN UINT64 Length - ); - -EFI_STATUS -EFIAPI -ArmClearMemoryRegionReadOnly ( - IN EFI_PHYSICAL_ADDRESS BaseAddress, - IN UINT64 Length - ); - VOID EFIAPI ArmReplaceLiveTranslationEntry ( -- cgit v1.2.3