From patchwork Wed Aug 10 15:17:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 73664 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp456094qga; Wed, 10 Aug 2016 08:19:01 -0700 (PDT) X-Received: by 10.66.255.42 with SMTP id an10mr8099037pad.57.1470842341650; Wed, 10 Aug 2016 08:19:01 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id v64si48909546pfk.256.2016.08.10.08.19.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Aug 2016 08:19:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 15EE51A1E61; Wed, 10 Aug 2016 08:18:52 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (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 B9CFF1A1E34 for ; Wed, 10 Aug 2016 08:18:50 -0700 (PDT) Received: by mail-wm0-x22f.google.com with SMTP id o80so111019412wme.1 for ; Wed, 10 Aug 2016 08:18: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:in-reply-to:references; bh=5HETfe330TO4WX6mmc94PxayjXTlQ+io8nL0Tux66HI=; b=AsSmoj+mWP9hWdYZ9SPH/YorYtXmjpva+PQTZizoS/x/J1UWHLfBdrTtMesEc8rGHH TN8h71L5HuDfEJKa78HBye/wTE71DCF1UeWOYzxtj2bG0Y/rEV059fy++3UOJvP72mLm UBptQYcVNe7DUPbpESQ3g9xUIDkqDRc/RfKnk= 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:in-reply-to :references; bh=5HETfe330TO4WX6mmc94PxayjXTlQ+io8nL0Tux66HI=; b=N8MhnP+eQ775syziLq9KLS6vrg8Alyt3Iqnt+jiD2nAx92h9+RzPFH0+JFeQxLrj8h 1TJD2UK9obzZgPGkpYyHGK1IV1Q59bAG0I3YUYqvMcR6KWJqSinQXEXan46YWKb1bhnC czBxdvvYqLIy3WRL5qCzU4Qum2zQKUrREW6P14fpECjcGpfhvfrUkOyHN+DxG/eWnS8Q CYYy6YuUwBAtFprmSsYM5hlohG4ige88LxxqRG3jesnVsmPKg0vWyAdTg0lH4C7gJVAS uGuuGtA7QzrY2KK7n9VdJJMatGUFUE72uXCkFmGOk4U3BdHIC5WQmWh1lSHHwbv1+F/C BZtg== X-Gm-Message-State: AEkoous0GLHQ2D7Q2K+ddGfkfG8VF4UoU57b8z7j38Jni4gLES6fUZBXfOU2+HtF6NJpJs9Z X-Received: by 10.194.40.166 with SMTP id y6mr4468789wjk.171.1470842329245; Wed, 10 Aug 2016 08:18:49 -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 c16sm8908374wme.4.2016.08.10.08.18.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 Aug 2016 08:18:48 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org, eugene@hp.com Date: Wed, 10 Aug 2016 17:17:52 +0200 Message-Id: <1470842282-8415-17-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470842282-8415-1-git-send-email-ard.biesheuvel@linaro.org> References: <1470842282-8415-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 16/26] ArmPkg/BaseMemoryLibVstm: switch to ASM_FUNC() asm macro 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: , Cc: lersek@redhat.com, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Annotate functions with ASM_FUNC() so that they are emitted into separate sections. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel --- ArmPkg/Library/BaseMemoryLibVstm/Arm/CopyMem.S | 8 +++----- ArmPkg/Library/BaseMemoryLibVstm/Arm/SetMem.S | 9 +++------ 2 files changed, 6 insertions(+), 11 deletions(-) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/ArmPkg/Library/BaseMemoryLibVstm/Arm/CopyMem.S b/ArmPkg/Library/BaseMemoryLibVstm/Arm/CopyMem.S index 0a6e039af9dc..69de4c1fd48e 100644 --- a/ArmPkg/Library/BaseMemoryLibVstm/Arm/CopyMem.S +++ b/ArmPkg/Library/BaseMemoryLibVstm/Arm/CopyMem.S @@ -17,6 +17,8 @@ # #------------------------------------------------------------------------------ +#include + /** Copy Length bytes from Source to Destination. Overlap is OK. @@ -37,11 +39,7 @@ InternalMemCopyMem ( IN UINTN Length ) **/ -.text -.align 2 -GCC_ASM_EXPORT(InternalMemCopyMem) - -ASM_PFX(InternalMemCopyMem): +ASM_FUNC(InternalMemCopyMem) stmfd sp!, {r4, r9, lr} tst r0, #3 mov r4, r0 diff --git a/ArmPkg/Library/BaseMemoryLibVstm/Arm/SetMem.S b/ArmPkg/Library/BaseMemoryLibVstm/Arm/SetMem.S index 6a6bb20ec14f..28ba38b79c6a 100644 --- a/ArmPkg/Library/BaseMemoryLibVstm/Arm/SetMem.S +++ b/ArmPkg/Library/BaseMemoryLibVstm/Arm/SetMem.S @@ -17,6 +17,8 @@ # #------------------------------------------------------------------------------ +#include + /** Set Buffer to Value for Size bytes. @@ -34,12 +36,7 @@ InternalMemSetMem ( IN UINT8 Value ) **/ - -.text -.align 2 -GCC_ASM_EXPORT(InternalMemSetMem) - -ASM_PFX(InternalMemSetMem): +ASM_FUNC(InternalMemSetMem) stmfd sp!, {r4-r7, lr} tst r0, #3 movne r3, #0