]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/Library/BaseLib/AArch64: Comment style harmonization
authorPete Batard <pete@akeo.ie>
Mon, 19 Mar 2018 12:48:15 +0000 (20:48 +0800)
committerLiming Gao <liming.gao@intel.com>
Tue, 20 Mar 2018 02:03:05 +0000 (10:03 +0800)
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Pete Batard <pete@akeo.ie>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Library/BaseLib/AArch64/SwitchStack.S
MdePkg/Library/BaseLib/AArch64/SwitchStack.asm

index c3ac8d7e4dfe750ef1c4bce4d9874a76bdcfa67f..c39fa75b28924b1bb3e1cc5b63b585a02178a01f 100644 (file)
@@ -1,17 +1,17 @@
-//------------------------------------------------------------------------------\r
-//\r
-// Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-// Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
-// Portions copyright (c) 2011 - 2013, ARM Limited. All rights reserved.<BR>\r
-// This program and the accompanying materials\r
-// are licensed and made available under the terms and conditions of the BSD License\r
-// which accompanies this distribution.  The full text of the license may be found at\r
-// http://opensource.org/licenses/bsd-license.php.\r
-//\r
-// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-//\r
-//------------------------------------------------------------------------------\r
+#------------------------------------------------------------------------------\r
+#\r
+# Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+# Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+# Portions copyright (c) 2011 - 2013, ARM Limited. All rights reserved.<BR>\r
+# This program and the accompanying materials\r
+# are licensed and made available under the terms and conditions of the BSD License\r
+# which accompanies this distribution.  The full text of the license may be found at\r
+# http://opensource.org/licenses/bsd-license.php.\r
+#\r
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+#------------------------------------------------------------------------------\r
 \r
 .text\r
 .align 5\r
 GCC_ASM_EXPORT(InternalSwitchStackAsm)\r
 GCC_ASM_EXPORT(CpuPause)\r
 \r
-/**\r
-//\r
-//  This allows the caller to switch the stack and goes to the new entry point\r
-//\r
-// @param      EntryPoint   The pointer to the location to enter\r
-// @param      Context      Parameter to pass in\r
-// @param      Context2     Parameter2 to pass in\r
-// @param      NewStack     New Location of the stack\r
-//\r
-// @return     Nothing. Goes to the Entry Point passing in the new parameters\r
-//\r
-VOID\r
-EFIAPI\r
-InternalSwitchStackAsm (\r
-  SWITCH_STACK_ENTRY_POINT EntryPoint,\r
-  VOID  *Context,\r
-  VOID  *Context2,\r
-  VOID  *NewStack\r
-  );\r
-**/\r
+#/**\r
+#\r
+#  This allows the caller to switch the stack and goes to the new entry point\r
+#\r
+# @param      EntryPoint   The pointer to the location to enter\r
+# @param      Context      Parameter to pass in\r
+# @param      Context2     Parameter2 to pass in\r
+# @param      NewStack     New Location of the stack\r
+#\r
+# @return     Nothing. Goes to the Entry Point passing in the new parameters\r
+#\r
+#**/\r
+#VOID\r
+#EFIAPI\r
+#InternalSwitchStackAsm (\r
+#  SWITCH_STACK_ENTRY_POINT EntryPoint,\r
+#  VOID  *Context,\r
+#  VOID  *Context2,\r
+#  VOID  *NewStack\r
+#  );\r
+#\r
 ASM_PFX(InternalSwitchStackAsm):\r
     mov   x29, #0\r
     mov   x30, x0\r
@@ -47,19 +48,20 @@ ASM_PFX(InternalSwitchStackAsm):
     mov   x1, x2\r
     ret\r
 \r
-/**\r
-//\r
-//  Requests CPU to pause for a short period of time.\r
-//\r
-//  Requests CPU to pause for a short period of time. Typically used in MP\r
-//  systems to prevent memory starvation while waiting for a spin lock.\r
-//\r
-VOID\r
-EFIAPI\r
-CpuPause (\r
-  VOID\r
-  )\r
-**/\r
+#/**\r
+#\r
+#  Requests CPU to pause for a short period of time.\r
+#\r
+#  Requests CPU to pause for a short period of time. Typically used in MP\r
+#  systems to prevent memory starvation while waiting for a spin lock.\r
+#\r
+#**/\r
+#VOID\r
+#EFIAPI\r
+#CpuPause (\r
+#  VOID\r
+#  )\r
+#\r
 ASM_PFX(CpuPause):\r
     nop\r
     nop\r
index c1b2de07e205b634f95b29eb814bff0d7e96f299..2639547c6145257fc9f0e40c3837d2d45a12f328 100644 (file)
@@ -1,42 +1,43 @@
-//------------------------------------------------------------------------------\r
-//\r
-// Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
-// Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
-// Portions copyright (c) 2011 - 2013, ARM Limited. All rights reserved.<BR>\r
-// This program and the accompanying materials\r
-// are licensed and made available under the terms and conditions of the BSD License\r
-// which accompanies this distribution.  The full text of the license may be found at\r
-// http://opensource.org/licenses/bsd-license.php.\r
-//\r
-// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-//\r
-//------------------------------------------------------------------------------\r
+;------------------------------------------------------------------------------\r
+;\r
+; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
+; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+; Portions copyright (c) 2011 - 2013, ARM Limited. All rights reserved.<BR>\r
+; This program and the accompanying materials\r
+; are licensed and made available under the terms and conditions of the BSD License\r
+; which accompanies this distribution.  The full text of the license may be found at\r
+; http://opensource.org/licenses/bsd-license.php.\r
+;\r
+; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+;\r
+;------------------------------------------------------------------------------\r
 \r
   EXPORT InternalSwitchStackAsm\r
   EXPORT CpuPause\r
   AREA BaseLib_LowLevel, CODE, READONLY\r
 \r
-/**\r
-//\r
-//  This allows the caller to switch the stack and goes to the new entry point\r
-//\r
-// @param      EntryPoint   The pointer to the location to enter\r
-// @param      Context      Parameter to pass in\r
-// @param      Context2     Parameter2 to pass in\r
-// @param      NewStack     New Location of the stack\r
-//\r
-// @return     Nothing. Goes to the Entry Point passing in the new parameters\r
-//\r
-VOID\r
-EFIAPI\r
-InternalSwitchStackAsm (\r
-  SWITCH_STACK_ENTRY_POINT EntryPoint,\r
-  VOID  *Context,\r
-  VOID  *Context2,\r
-  VOID  *NewStack\r
-  );\r
-**/\r
+;/**\r
+;\r
+;  This allows the caller to switch the stack and goes to the new entry point\r
+;\r
+; @param      EntryPoint   The pointer to the location to enter\r
+; @param      Context      Parameter to pass in\r
+; @param      Context2     Parameter2 to pass in\r
+; @param      NewStack     New Location of the stack\r
+;\r
+; @return     Nothing. Goes to the Entry Point passing in the new parameters\r
+;\r
+;**/\r
+;VOID\r
+;EFIAPI\r
+;InternalSwitchStackAsm (\r
+;  SWITCH_STACK_ENTRY_POINT EntryPoint,\r
+;  VOID  *Context,\r
+;  VOID  *Context2,\r
+;  VOID  *NewStack\r
+;  );\r
+;\r
 InternalSwitchStackAsm\r
     mov   x29, #0\r
     mov   x30, x0\r
@@ -45,19 +46,20 @@ InternalSwitchStackAsm
     mov   x1, x2\r
     ret\r
 \r
-/**\r
-//\r
-//  Requests CPU to pause for a short period of time.\r
-//\r
-//  Requests CPU to pause for a short period of time. Typically used in MP\r
-//  systems to prevent memory starvation while waiting for a spin lock.\r
-//\r
-VOID\r
-EFIAPI\r
-CpuPause (\r
-  VOID\r
-  )\r
-**/\r
+;/**\r
+;\r
+;  Requests CPU to pause for a short period of time.\r
+;\r
+;  Requests CPU to pause for a short period of time. Typically used in MP\r
+;  systems to prevent memory starvation while waiting for a spin lock.\r
+;\r
+;**/\r
+;VOID\r
+;EFIAPI\r
+;CpuPause (\r
+;  VOID\r
+;  )\r
+;\r
 CpuPause\r
     nop\r
     nop\r