From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 1F4611A1DF5 for ; Thu, 11 Aug 2016 03:08:50 -0700 (PDT) Received: by mail-wm0-x233.google.com with SMTP id q128so20212598wma.1 for ; Thu, 11 Aug 2016 03:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=HFeyUWke78qLSa5D+tzmuD0tcY1jVkHFnQQgMl7twS8=; b=S4cH9E/8YkYjyhqAZ/V4GfqxLZ78DDH56GihRsgSNGWtUCwDSIn++qa+i2VbkVxkS5 NZSZNd0Orho0bAsJJdsNs9qhNr5SyQsTDnPReJPqvNGbUtyqVhna2iztvd/bsUeU9OsA qUWKaueNvpw+PEYObNrFLXs3Qf/ISkSjE706U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HFeyUWke78qLSa5D+tzmuD0tcY1jVkHFnQQgMl7twS8=; b=PKuAs2qdfSNRZP+KzFByIaWZ06CV7E0KyhsgmohrRXtOw5X0tljW+nH0/rn0pXHZbS wtEnDtwQr9oABPOQqDouu+5zliMLEcgoYM8fNeP+AEAl88ynmXOBZCZqe7YPC6cUTkeW IntollfBxQM9FhPAZ3xaHeLLzkpCnZsspTdgphrNlEcdfgND7zYun6bteZYfIT/p6p+W Ex6xQZ7AW3oAt0HPLCJyLBMDjp+A1doU7GdEKIcQwu1B0YxVzcKHZIn91LyC8Xbkhx9V lqbf31CuxRnJN9L+hV9IEt8D5m4uh0dlXQOfUWuLHNQwbbFn8YnJeS1/HoglFd5R0DSA ihIQ== X-Gm-Message-State: AEkoousQEC8/J5QBb2CqJYvNy/FYdDgXqm5GMckPglsKzCoVfxTz6jeK6aJvRo3YFXgq4PuU X-Received: by 10.194.178.193 with SMTP id da1mr10587561wjc.66.1470910128642; Thu, 11 Aug 2016 03:08:48 -0700 (PDT) Received: from localhost.localdomain (46.red-81-37-107.dynamicip.rima-tde.net. [81.37.107.46]) by smtp.gmail.com with ESMTPSA id p83sm2402873wma.18.2016.08.11.03.08.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 Aug 2016 03:08:47 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Cc: Ard Biesheuvel Date: Thu, 11 Aug 2016 12:08:15 +0200 Message-Id: <1470910101-20322-1-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 Subject: [PATCH 0/6] Move to ASM_FUNC() macro, and clean up some asm as well X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Aug 2016 10:08:50 -0000 This moves the asm files in OpenPlatformPkg to the new ASM_FUNC() macro, which annotates functions in a way that allows the linker to drop code that is not actually used anywhere. It is analogous to -ffunction-sections for GCC. Since there are some cargo culted asm patterns that are very clunky and inefficient, clean those up as well (i.e., LoadConstantToReg()) Ard Biesheuvel (6): Platforms/BeagleBoard: remove unreferenced Sec.inf module Platforms/BeagleBoard/BeagleBoardLib: switch to ASM_FUNC() asm macro Platforms/Styx: remove unused AmdStyxSecLib Platforms/Styx: switch to ASM_FUNC() asm macro Platforms/Hisilicon/ArmPlatformLibPv660: switch to ASM_FUNC() asm macro Platforms/Marvell/Armada70x0Lib: switch to ASM_FUNC() asm macro Chips/Hisilicon/Library/ArmPlatformLibPv660/AArch64/Helper.S | 44 +-- Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc | 1 - Platforms/AMD/Styx/Library/AmdStyxLib/AArch64/Helper.S | 58 ++-- Platforms/AMD/Styx/Library/AmdStyxLib/AmdStyxLib.inf | 7 +- Platforms/AMD/Styx/Library/AmdStyxLib/AmdStyxLibSec.inf | 1 + Platforms/AMD/Styx/Library/AmdStyxSecLib/AArch64/GicV3.S | 73 ----- Platforms/AMD/Styx/Library/AmdStyxSecLib/AArch64/StyxBoot.S | 182 ------------- Platforms/AMD/Styx/Library/AmdStyxSecLib/AmdStyxSecLib.inf | 50 ---- Platforms/AMD/Styx/Library/AmdStyxSecLib/StyxSec.c | 96 ------- Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc | 1 - Platforms/Marvell/Armada/Library/Armada70x0Lib/AArch64/ArmPlatformHelper.S | 32 +-- Platforms/TexasInstruments/BeagleBoard/Library/BeagleBoardLib/BeagleBoardHelper.S | 16 +- Platforms/TexasInstruments/BeagleBoard/Sec/Arm/ModuleEntryPoint.S | 85 ------ Platforms/TexasInstruments/BeagleBoard/Sec/Arm/ModuleEntryPoint.asm | 89 ------ Platforms/TexasInstruments/BeagleBoard/Sec/Cache.c | 80 ------ Platforms/TexasInstruments/BeagleBoard/Sec/Clock.c | 70 ----- Platforms/TexasInstruments/BeagleBoard/Sec/LzmaDecompress.h | 103 ------- Platforms/TexasInstruments/BeagleBoard/Sec/PadConfiguration.c | 282 -------------------- Platforms/TexasInstruments/BeagleBoard/Sec/Sec.c | 186 ------------- Platforms/TexasInstruments/BeagleBoard/Sec/Sec.inf | 74 ----- 20 files changed, 42 insertions(+), 1488 deletions(-) delete mode 100644 Platforms/AMD/Styx/Library/AmdStyxSecLib/AArch64/GicV3.S delete mode 100644 Platforms/AMD/Styx/Library/AmdStyxSecLib/AArch64/StyxBoot.S delete mode 100644 Platforms/AMD/Styx/Library/AmdStyxSecLib/AmdStyxSecLib.inf delete mode 100644 Platforms/AMD/Styx/Library/AmdStyxSecLib/StyxSec.c delete mode 100644 Platforms/TexasInstruments/BeagleBoard/Sec/Arm/ModuleEntryPoint.S delete mode 100644 Platforms/TexasInstruments/BeagleBoard/Sec/Arm/ModuleEntryPoint.asm delete mode 100644 Platforms/TexasInstruments/BeagleBoard/Sec/Cache.c delete mode 100644 Platforms/TexasInstruments/BeagleBoard/Sec/Clock.c delete mode 100644 Platforms/TexasInstruments/BeagleBoard/Sec/LzmaDecompress.h delete mode 100644 Platforms/TexasInstruments/BeagleBoard/Sec/PadConfiguration.c delete mode 100644 Platforms/TexasInstruments/BeagleBoard/Sec/Sec.c delete mode 100644 Platforms/TexasInstruments/BeagleBoard/Sec/Sec.inf -- 2.7.4