From patchwork Thu Aug 11 10:08:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 73728 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp27392qga; Thu, 11 Aug 2016 03:09:07 -0700 (PDT) X-Received: by 10.98.13.84 with SMTP id v81mr15750104pfi.108.1470910141110; Thu, 11 Aug 2016 03:09:01 -0700 (PDT) Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id i29si2551585pfa.172.2016.08.11.03.09.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Aug 2016 03:09:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; 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 198.145.21.10 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 3B5721A1E2E; Thu, 11 Aug 2016 03:09:00 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received: from mail-wm0-x232.google.com (mail-wm0-x232.google.com [IPv6:2a00:1450:400c:c09::232]) (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 835041A1DF5 for ; Thu, 11 Aug 2016 03:08:58 -0700 (PDT) Received: by mail-wm0-x232.google.com with SMTP id i5so5105926wmg.0 for ; Thu, 11 Aug 2016 03:08:58 -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=MAKOUkekj8jFpqmag97fZd+gjB+0icyeoHvCwJFdZ/w=; b=cXDqipjbaxKAT5Qfvl1qW5HwEpm6IQiblASrYGF/To7MlOTSqVKi+JJ9iXrb0WS/b4 o82d1MkajBdDEKo6ir4MPfcY0X90H7uO9twse/+fcui5bVNvyOUz+OExEk1HKjBP8Tga kjfE0EkhLK4eca8tHByS1QWcOAE2r/5fNzgCM= 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=MAKOUkekj8jFpqmag97fZd+gjB+0icyeoHvCwJFdZ/w=; b=NXdGb+nL6iNmlBLIT7G6c34Ua1gq8sjfEycnqcuwjzy65Ct9sxi4aBNEsTE1CTdHjY x4Il6/IyctRpPrc6/uJdHYO2y2J5HkX48PE43/MWyvig4cCc/vhVg3iaJkrcPfEbEbas fuLqQIGSve8AhGPZaqZWcwhfsbdtHcKitGZdn6L9EUR4b6+JbHY3fxkvD/NEotdZXfP4 0/bbhQ7eO9TuPHxGHskdAnKkvOLh2usZjFmUURRp7He5fzzg+JVV7rMUuMetnDlKoGHU G/6BYw52o34rkYEm6SBJSCOVYlXC1q6VIwQc78mCbQGHaS0miXPguexhwuqw9bzYwP4T OgFA== X-Gm-Message-State: AEkooutRJQZNeOFHD6ZXswkshF3qpfvzShm5xunhBAAg0MTqFuW0AxyaI3N3ilrHnSOrCHMl X-Received: by 10.194.221.232 with SMTP id qh8mr8616632wjc.117.1470910137130; Thu, 11 Aug 2016 03:08:57 -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.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 11 Aug 2016 03:08:56 -0700 (PDT) From: Ard Biesheuvel To: edk2-devel@lists.01.org, leif.lindholm@linaro.org Date: Thu, 11 Aug 2016 12:08:17 +0200 Message-Id: <1470910101-20322-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470910101-20322-1-git-send-email-ard.biesheuvel@linaro.org> References: <1470910101-20322-1-git-send-email-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 2/6] Platforms/BeagleBoard/BeagleBoardLib: 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: 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 --- Platforms/TexasInstruments/BeagleBoard/Library/BeagleBoardLib/BeagleBoardHelper.S | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Platforms/TexasInstruments/BeagleBoard/Library/BeagleBoardLib/BeagleBoardHelper.S b/Platforms/TexasInstruments/BeagleBoard/Library/BeagleBoardLib/BeagleBoardHelper.S index f15792546448..958f0029935c 100644 --- a/Platforms/TexasInstruments/BeagleBoard/Library/BeagleBoardLib/BeagleBoardHelper.S +++ b/Platforms/TexasInstruments/BeagleBoard/Library/BeagleBoardLib/BeagleBoardHelper.S @@ -12,34 +12,24 @@ # #include -#include - -.text -.align 2 - -GCC_ASM_EXPORT(ArmPlatformIsPrimaryCore) -GCC_ASM_EXPORT(ArmPlatformGetPrimaryCoreMpId) -GCC_ASM_EXPORT(ArmPlatformPeiBootAction) - -GCC_ASM_IMPORT(ArmReadMpidr) //UINTN //ArmPlatformIsPrimaryCore ( // IN UINTN MpId // ); -ASM_PFX(ArmPlatformIsPrimaryCore): +ASM_FUNC(ArmPlatformIsPrimaryCore) // BeagleBoard has a single core. We must always return 1. mov r0, #1 bx lr -ASM_PFX(ArmPlatformPeiBootAction): +ASM_FUNC(ArmPlatformPeiBootAction) bx lr //UINTN //ArmPlatformGetPrimaryCoreMpId ( // VOID // ); -ASM_PFX(ArmPlatformGetPrimaryCoreMpId): +ASM_FUNC(ArmPlatformGetPrimaryCoreMpId) // The BeagleBoard is a uniprocessor platform. The MPIDR of primary core is // always the MPIDR of the calling CPU. b ASM_PFX(ArmReadMpidr)