From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Cc: Ard Biesheuvel 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: [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: , X-List-Received-Date: Thu, 11 Aug 2016 10:08:58 -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 --- Platforms/TexasInstruments/BeagleBoard/Library/BeagleBoardLib/BeagleBoardHelper.S | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) 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) -- 2.7.4