From nobody Tue May 7 18:55:51 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1521463713495252.25086067264863; Mon, 19 Mar 2018 05:48:33 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 6360D2263146F; Mon, 19 Mar 2018 05:42:02 -0700 (PDT) Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) (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 9A98E2258AF09 for ; Mon, 19 Mar 2018 05:41:59 -0700 (PDT) Received: by mail-wm0-x244.google.com with SMTP id h21so14881193wmd.1 for ; Mon, 19 Mar 2018 05:48:28 -0700 (PDT) Received: from localhost.localdomain ([84.203.81.19]) by smtp.gmail.com with ESMTPSA id p91sm144683edp.65.2018.03.19.05.48.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Mar 2018 05:48:25 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: None (no SPF record) identity=mailfrom; client-ip=2a00:1450:400c:c09::244; helo=mail-wm0-x244.google.com; envelope-from=pete@akeo.ie; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akeo-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HrDQ8zDc+K9bxLfMuRwvv6d8DTT1N5OIvBT07tvho30=; b=wBnc+dmmvXsmaIfVueQSDx9KOXSadPg3LlXfOkDE0VjATh7zgChAcaXidoBMGFv9NB quEd/PBZDR7hwgg2Rl4lz/+GkFLnTS3ReLkEYc1OX9baRnMZe/W3Rt073fpGhDct1rbP GEVplrfDgwhsN8/NIRWsytDGNU+fCCMdR62jig9YJ0kh3axb1i6jNNqZXXui7ZUioLem JbQxmrTIb4TtZitab15gaAqDaVMNdwIn3N+cVUyseQwJXd5f51mytctFpYTQ4QASiMHG w2yj65jr4BYVGMwZf3sokUrxNENVpJ/1stnzprs5E+hVgl8KPiTbMUBPwKXQOJ4fM4Ad g13g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HrDQ8zDc+K9bxLfMuRwvv6d8DTT1N5OIvBT07tvho30=; b=nscbo2cYXAXG65zfP6PgP9CBY6JWZcF+aBDzXUoAZ6C3lw8pOTDJk0otIXFPekYGmB Q4rYPE0xYVry0+buQCyUOh/mOOdj9B6vCTvOQTLpZk7B3NdCN6nF/0v0M7+yy4SBYat3 WfqjHm57HSaMAu8fyRysa1mmBFqYPwRLE1UUmP0BX2PnipBREKVgapqnXwa5R67DVvgo uQjbJpkWuK7TrVZznAFo2MfUcVmp6vA27L8M+4EaUc5VY+BQnYSAA9aaz8BMJf0ylJIt 3FpGe86prvwR3zg4TVA2trNGDjEEfo0jIlpMov8Ew0AQiFk3buN4EkEZi4xje+a1Qt5/ +cmg== X-Gm-Message-State: AElRT7HB4vOd7Gb6rjEQJMSWGjfGSc8ldRsTOoWogPPFD4fdwy9eSAD4 YXjX+1WXUsmoplMg3csWfO5/uIftCTA= X-Google-Smtp-Source: AG47ELtOsiBRY3aticHkpama6YpyJQ/G5CXivA4+1sd21QPcrxgRzZbmSn4WLjqkK5dxu+EYBCfnnA== X-Received: by 10.80.177.234 with SMTP id n39mr12893255edd.108.1521463706486; Mon, 19 Mar 2018 05:48:26 -0700 (PDT) From: Pete Batard To: edk2-devel@lists.01.org Date: Mon, 19 Mar 2018 12:48:15 +0000 Message-Id: <20180319124815.6288-2-pete@akeo.ie> X-Mailer: git-send-email 2.9.3.windows.2 In-Reply-To: <20180319124815.6288-1-pete@akeo.ie> References: <20180319124815.6288-1-pete@akeo.ie> Subject: [edk2] [PATCH 1/1] MdePkg/Library/BaseLib/AArch64: Comment style harmonization X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: liming.gao@intel.com MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Pete Batard Reviewed-by: Liming Gao --- MdePkg/Library/BaseLib/AArch64/SwitchStack.S | 96 ++++++++++---------- MdePkg/Library/BaseLib/AArch64/SwitchStack.asm | 96 ++++++++++---------- 2 files changed, 98 insertions(+), 94 deletions(-) diff --git a/MdePkg/Library/BaseLib/AArch64/SwitchStack.S b/MdePkg/Library/= BaseLib/AArch64/SwitchStack.S index c3ac8d7e4dfe..c39fa75b2892 100644 --- a/MdePkg/Library/BaseLib/AArch64/SwitchStack.S +++ b/MdePkg/Library/BaseLib/AArch64/SwitchStack.S @@ -1,17 +1,17 @@ -//------------------------------------------------------------------------= ------ -// -// Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.
-// Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
-// Portions copyright (c) 2011 - 2013, ARM Limited. All rights reserved. -// This program and the accompanying materials -// are licensed and made available under the terms and conditions of the B= SD License -// which accompanies this distribution. The full text of the license may = be found at -// http://opensource.org/licenses/bsd-license.php. -// -// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IM= PLIED. -// -//------------------------------------------------------------------------= ------ +#-------------------------------------------------------------------------= ----- +# +# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.
+# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
+# Portions copyright (c) 2011 - 2013, ARM Limited. All rights reserved.
+# This program and the accompanying materials +# are licensed and made available under the terms and conditions of the BS= D License +# which accompanies this distribution. The full text of the license may b= e found at +# http://opensource.org/licenses/bsd-license.php. +# +# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMP= LIED. +# +#-------------------------------------------------------------------------= ----- =20 .text .align 5 @@ -19,26 +19,27 @@ GCC_ASM_EXPORT(InternalSwitchStackAsm) GCC_ASM_EXPORT(CpuPause) =20 -/** -// -// This allows the caller to switch the stack and goes to the new entry p= oint -// -// @param EntryPoint The pointer to the location to enter -// @param Context Parameter to pass in -// @param Context2 Parameter2 to pass in -// @param NewStack New Location of the stack -// -// @return Nothing. Goes to the Entry Point passing in the new paramet= ers -// -VOID -EFIAPI -InternalSwitchStackAsm ( - SWITCH_STACK_ENTRY_POINT EntryPoint, - VOID *Context, - VOID *Context2, - VOID *NewStack - ); -**/ +#/** +# +# This allows the caller to switch the stack and goes to the new entry po= int +# +# @param EntryPoint The pointer to the location to enter +# @param Context Parameter to pass in +# @param Context2 Parameter2 to pass in +# @param NewStack New Location of the stack +# +# @return Nothing. Goes to the Entry Point passing in the new paramete= rs +# +#**/ +#VOID +#EFIAPI +#InternalSwitchStackAsm ( +# SWITCH_STACK_ENTRY_POINT EntryPoint, +# VOID *Context, +# VOID *Context2, +# VOID *NewStack +# ); +# ASM_PFX(InternalSwitchStackAsm): mov x29, #0 mov x30, x0 @@ -47,19 +48,20 @@ ASM_PFX(InternalSwitchStackAsm): mov x1, x2 ret =20 -/** -// -// Requests CPU to pause for a short period of time. -// -// Requests CPU to pause for a short period of time. Typically used in MP -// systems to prevent memory starvation while waiting for a spin lock. -// -VOID -EFIAPI -CpuPause ( - VOID - ) -**/ +#/** +# +# Requests CPU to pause for a short period of time. +# +# Requests CPU to pause for a short period of time. Typically used in MP +# systems to prevent memory starvation while waiting for a spin lock. +# +#**/ +#VOID +#EFIAPI +#CpuPause ( +# VOID +# ) +# ASM_PFX(CpuPause): nop nop diff --git a/MdePkg/Library/BaseLib/AArch64/SwitchStack.asm b/MdePkg/Librar= y/BaseLib/AArch64/SwitchStack.asm index c1b2de07e205..2639547c6145 100644 --- a/MdePkg/Library/BaseLib/AArch64/SwitchStack.asm +++ b/MdePkg/Library/BaseLib/AArch64/SwitchStack.asm @@ -1,42 +1,43 @@ -//------------------------------------------------------------------------= ------ -// -// Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.
-// Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
-// Portions copyright (c) 2011 - 2013, ARM Limited. All rights reserved. -// This program and the accompanying materials -// are licensed and made available under the terms and conditions of the B= SD License -// which accompanies this distribution. The full text of the license may = be found at -// http://opensource.org/licenses/bsd-license.php. -// -// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IM= PLIED. -// -//------------------------------------------------------------------------= ------ +;-------------------------------------------------------------------------= ----- +; +; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.
+; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
+; Portions copyright (c) 2011 - 2013, ARM Limited. All rights reserved.
+; This program and the accompanying materials +; are licensed and made available under the terms and conditions of the BS= D License +; which accompanies this distribution. The full text of the license may b= e found at +; http://opensource.org/licenses/bsd-license.php. +; +; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMP= LIED. +; +;-------------------------------------------------------------------------= ----- =20 EXPORT InternalSwitchStackAsm EXPORT CpuPause AREA BaseLib_LowLevel, CODE, READONLY =20 -/** -// -// This allows the caller to switch the stack and goes to the new entry p= oint -// -// @param EntryPoint The pointer to the location to enter -// @param Context Parameter to pass in -// @param Context2 Parameter2 to pass in -// @param NewStack New Location of the stack -// -// @return Nothing. Goes to the Entry Point passing in the new paramet= ers -// -VOID -EFIAPI -InternalSwitchStackAsm ( - SWITCH_STACK_ENTRY_POINT EntryPoint, - VOID *Context, - VOID *Context2, - VOID *NewStack - ); -**/ +;/** +; +; This allows the caller to switch the stack and goes to the new entry po= int +; +; @param EntryPoint The pointer to the location to enter +; @param Context Parameter to pass in +; @param Context2 Parameter2 to pass in +; @param NewStack New Location of the stack +; +; @return Nothing. Goes to the Entry Point passing in the new paramete= rs +; +;**/ +;VOID +;EFIAPI +;InternalSwitchStackAsm ( +; SWITCH_STACK_ENTRY_POINT EntryPoint, +; VOID *Context, +; VOID *Context2, +; VOID *NewStack +; ); +; InternalSwitchStackAsm mov x29, #0 mov x30, x0 @@ -45,19 +46,20 @@ InternalSwitchStackAsm mov x1, x2 ret =20 -/** -// -// Requests CPU to pause for a short period of time. -// -// Requests CPU to pause for a short period of time. Typically used in MP -// systems to prevent memory starvation while waiting for a spin lock. -// -VOID -EFIAPI -CpuPause ( - VOID - ) -**/ +;/** +; +; Requests CPU to pause for a short period of time. +; +; Requests CPU to pause for a short period of time. Typically used in MP +; systems to prevent memory starvation while waiting for a spin lock. +; +;**/ +;VOID +;EFIAPI +;CpuPause ( +; VOID +; ) +; CpuPause nop nop --=20 2.9.3.windows.2 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel