From 2ede1ac0cc746d17251361176657b5c8a91e3b7e Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Mon, 5 Sep 2016 11:13:19 +0100 Subject: [PATCH] ArmPkg/ArmLib: remove NullArmLib Remove the NULL instance of ArmLib: it is not currently used, and its usefulness its dubious. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel Reviewed-by: Leif Lindholm --- ArmPkg/ArmPkg.dsc | 1 - ArmPkg/Library/ArmLib/Null/NullArmLib.c | 117 ---------------------- ArmPkg/Library/ArmLib/Null/NullArmLib.inf | 41 -------- 3 files changed, 159 deletions(-) delete mode 100644 ArmPkg/Library/ArmLib/Null/NullArmLib.c delete mode 100644 ArmPkg/Library/ArmLib/Null/NullArmLib.inf diff --git a/ArmPkg/ArmPkg.dsc b/ArmPkg/ArmPkg.dsc index 6f9fc661fb..e26ca035f5 100644 --- a/ArmPkg/ArmPkg.dsc +++ b/ArmPkg/ArmPkg.dsc @@ -111,7 +111,6 @@ ArmPkg/Library/ArmCacheMaintenanceLib/ArmCacheMaintenanceLib.inf ArmPkg/Library/ArmDisassemblerLib/ArmDisassemblerLib.inf ArmPkg/Library/ArmDmaLib/ArmDmaLib.inf - ArmPkg/Library/ArmLib/Null/NullArmLib.inf ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm.inf ArmPkg/Library/BdsLib/BdsLib.inf ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf diff --git a/ArmPkg/Library/ArmLib/Null/NullArmLib.c b/ArmPkg/Library/ArmLib/Null/NullArmLib.c deleted file mode 100644 index e7e9c52547..0000000000 --- a/ArmPkg/Library/ArmLib/Null/NullArmLib.c +++ /dev/null @@ -1,117 +0,0 @@ -/** @file - - Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
- - This program and the accompanying materials - are licensed and made available under the terms and conditions of the BSD License - which accompanies this distribution. The full text of the license may be found at - http://opensource.org/licenses/bsd-license.php - - THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, - WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. - -**/ - -#include -#include -#include - -VOID -EFIAPI -ArmCleanInvalidateDataCache ( - VOID - ) -{ - // Do not run code using the Null cache library. - ASSERT(FALSE); -} - -VOID -EFIAPI -ArmCleanDataCache ( - VOID - ) -{ - // Do not run code using the Null cache library. - ASSERT(FALSE); -} - -VOID -EFIAPI -ArmInvalidateInstructionCache ( - VOID - ) -{ - // Do not run code using the Null cache library. - ASSERT(FALSE); -} - -VOID -EFIAPI -ArmInvalidateDataCacheEntryByMVA ( - IN UINTN Address - ) -{ - // Do not run code using the Null cache library. - ASSERT(FALSE); -} - -VOID -EFIAPI -ArmCleanDataCacheEntryByMVA ( - IN UINTN Address - ) -{ - // Do not run code using the Null cache library. - ASSERT(FALSE); -} - -VOID -EFIAPI -ArmCleanInvalidateDataCacheEntryByMVA ( - IN UINTN Address - ) -{ - // Do not run code using the Null cache library. - ASSERT(FALSE); -} - -VOID -EFIAPI -ArmEnableDataCache ( - VOID - ) -{ - // Do not run code using the Null cache library. - ASSERT(FALSE); -} - -VOID -EFIAPI -ArmDisableDataCache ( - VOID - ) -{ - // Do not run code using the Null cache library. - ASSERT(FALSE); -} - -VOID -EFIAPI -ArmEnableInstructionCache ( - VOID - ) -{ - // Do not run code using the Null cache library. - ASSERT(FALSE); -} - -VOID -EFIAPI -ArmDisableInstructionCache ( - VOID - ) -{ - // Do not run code using the Null cache library. - ASSERT(FALSE); -} diff --git a/ArmPkg/Library/ArmLib/Null/NullArmLib.inf b/ArmPkg/Library/ArmLib/Null/NullArmLib.inf deleted file mode 100644 index 6cfb2c4eac..0000000000 --- a/ArmPkg/Library/ArmLib/Null/NullArmLib.inf +++ /dev/null @@ -1,41 +0,0 @@ -#/** @file -# Semihosting serail port lib -# -# Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.
-# -# This program and the accompanying materials -# are licensed and made available under the terms and conditions of the BSD License -# which accompanies this distribution. The full text of the license may be found at -# http://opensource.org/licenses/bsd-license.php -# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -# -# -#**/ - -[Defines] - INF_VERSION = 0x00010005 - BASE_NAME = NullArmLib - FILE_GUID = 00586300-0E06-4790-AC44-86C56ACBB942 - MODULE_TYPE = DXE_DRIVER - VERSION_STRING = 1.0 - LIBRARY_CLASS = ArmLib - -[Sources.common] - ../Common/ArmLib.c - - NullArmLib.c - -[Sources.ARM] - ../Common/Arm/ArmLibSupport.S | GCC - ../Common/Arm/ArmLibSupport.asm | RVCT - -[Sources.AARCH64] - ../Common/AArch64/ArmLibSupport.S - -[Packages] - ArmPkg/ArmPkg.dec - MdePkg/MdePkg.dec - -[Protocols] - gEfiCpuArchProtocolGuid -- 2.39.2