From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Cc: lersek@redhat.com, Ard Biesheuvel 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: [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: , X-List-Received-Date: Wed, 10 Aug 2016 15:18:51 -0000 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(-) 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 -- 2.7.4