]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg/BaseLib: Remove the unnecessary '_' before library APIs in ASM/NASM
authorHao Wu <hao.a.wu@intel.com>
Mon, 17 Oct 2016 06:54:24 +0000 (14:54 +0800)
committerHao Wu <hao.a.wu@intel.com>
Tue, 18 Oct 2016 12:12:39 +0000 (20:12 +0800)
The leading underscore (i.e. '_') before the names of some BaseLib library
API in ASM/NASM files is unnecessary. It will cause link error with GCC
tool chains.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.asm
MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.nasm
MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.asm
MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.nasm
MdePkg/Library/BaseLib/Ia32/EnableInterrupts.asm
MdePkg/Library/BaseLib/Ia32/EnableInterrupts.nasm
MdePkg/Library/BaseLib/Ia32/Invd.asm
MdePkg/Library/BaseLib/Ia32/Invd.nasm
MdePkg/Library/BaseLib/Ia32/WriteLdtr.asm
MdePkg/Library/BaseLib/Ia32/WriteLdtr.nasm

index e4364055e8ee3f3d9bf9ebfc1c47a732f738a0d0..ab7c2cf40605f3afb7b0bc24956d3b275026599f 100644 (file)
@@ -1,5 +1,5 @@
 ;------------------------------------------------------------------------------ ;\r
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2016, Intel Corporation. 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
@@ -32,9 +32,9 @@
 ;   VOID\r
 ;   );\r
 ;------------------------------------------------------------------------------\r
-_CpuBreakpoint   PROC\r
+CpuBreakpoint   PROC\r
     int  3\r
     ret\r
-_CpuBreakpoint   ENDP\r
+CpuBreakpoint   ENDP\r
 \r
     END\r
index fb1dd2e47f414e46fd123cd63d369f0f8114aa23..b8ae0f9cf04b21bb61e2adb816f45662a9ce8054 100644 (file)
@@ -1,5 +1,5 @@
 ;------------------------------------------------------------------------------ ;\r
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2016, Intel Corporation. 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
@@ -29,8 +29,8 @@
 ;   VOID\r
 ;   );\r
 ;------------------------------------------------------------------------------\r
-global ASM_PFX(_CpuBreakpoint)\r
-ASM_PFX(_CpuBreakpoint):\r
+global ASM_PFX(CpuBreakpoint)\r
+ASM_PFX(CpuBreakpoint):\r
     int  3\r
     ret\r
 \r
index e54f14e9fd9cf6c36058f69ac85dbdb76ec12137..f10886490b8e8d4a58ad2d420fdca025e08c8215 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2016, Intel Corporation. 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
 ;   VOID\r
 ;   );\r
 ;------------------------------------------------------------------------------\r
-_EnableDisableInterrupts    PROC\r
+EnableDisableInterrupts    PROC\r
     sti\r
     cli\r
     ret\r
-_EnableDisableInterrupts    ENDP\r
+EnableDisableInterrupts    ENDP\r
 \r
     END\r
index 7b206757bd919ec5f51638c0a10c325ba9ad42ad..f7a4f6213ae31eb5a7601041de97bece855471cc 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2016, Intel Corporation. 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
@@ -30,8 +30,8 @@
 ;   VOID\r
 ;   );\r
 ;------------------------------------------------------------------------------\r
-global ASM_PFX(_EnableDisableInterrupts)\r
-ASM_PFX(_EnableDisableInterrupts):\r
+global ASM_PFX(EnableDisableInterrupts)\r
+ASM_PFX(EnableDisableInterrupts):\r
     sti\r
     cli\r
     ret\r
index 58fc72d6a4c8da3a99a76d07676eb8de6cb032bb..b43d451a15bd0799e9737de568bf4e65547f2226 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2016, Intel Corporation. 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
@@ -32,9 +32,9 @@
 ;   VOID\r
 ;   );\r
 ;------------------------------------------------------------------------------\r
-_EnableInterrupts   PROC\r
+EnableInterrupts   PROC\r
     sti\r
     ret\r
-_EnableInterrupts   ENDP\r
+EnableInterrupts   ENDP\r
 \r
     END\r
index 85ea692954aa1b6fb445b2826590737378eceec2..ff8bbe45ca9fa1acbd368024f8fbc2daaeaa7789 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2016, Intel Corporation. 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
@@ -30,8 +30,8 @@
 ;   VOID\r
 ;   );\r
 ;------------------------------------------------------------------------------\r
-global ASM_PFX(_EnableInterrupts)\r
-ASM_PFX(_EnableInterrupts):\r
+global ASM_PFX(EnableInterrupts)\r
+ASM_PFX(EnableInterrupts):\r
     sti\r
     ret\r
 \r
index fadf3dfcfd484ebb472757c19fef4f5ac15b3cff..a34e217883279c1602f9df2519e207d5efa80c3e 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2016, Intel Corporation. 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
@@ -32,9 +32,9 @@
 ;   VOID\r
 ;   );\r
 ;------------------------------------------------------------------------------\r
-_AsmInvd    PROC\r
+AsmInvd    PROC\r
     invd\r
     ret\r
-_AsmInvd    ENDP\r
+AsmInvd    ENDP\r
 \r
     END\r
index 2d10cd85a66772f3cb42889206da83f25fc08393..c029eeaaa7d9ad029476177176df8a335de18e63 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2016, Intel Corporation. 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
@@ -30,8 +30,8 @@
 ;   VOID\r
 ;   );\r
 ;------------------------------------------------------------------------------\r
-global ASM_PFX(_AsmInvd)\r
-ASM_PFX(_AsmInvd):\r
+global ASM_PFX(AsmInvd)\r
+ASM_PFX(AsmInvd):\r
     invd\r
     ret\r
 \r
index abcd74dc7b8b2f3c77cc54c8d20a9c2a5ac8e0c4..adec67da3e5160b7c9a0d09df17e517675dcc765 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2016, Intel Corporation. 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
 ;   IN UINT16 Ldtr\r
 ;   );\r
 ;------------------------------------------------------------------------------\r
-_AsmWriteLdtr   PROC\r
+AsmWriteLdtr   PROC\r
     mov     eax, [esp + 4]\r
     lldt    ax\r
     ret\r
-_AsmWriteLdtr   ENDP\r
+AsmWriteLdtr   ENDP\r
 \r
     END\r
index 40fbbad767f7b3922bf24f23173fd55e3524d043..692f1cc2ed053f78aec76163f3f4a69737d8b327 100644 (file)
@@ -1,6 +1,6 @@
 ;------------------------------------------------------------------------------\r
 ;\r
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+; Copyright (c) 2006 - 2016, Intel Corporation. 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
@@ -30,8 +30,8 @@
 ;   IN UINT16 Ldtr\r
 ;   );\r
 ;------------------------------------------------------------------------------\r
-global ASM_PFX(_AsmWriteLdtr)\r
-ASM_PFX(_AsmWriteLdtr):\r
+global ASM_PFX(AsmWriteLdtr)\r
+ASM_PFX(AsmWriteLdtr):\r
     mov     eax, [esp + 4]\r
     lldt    ax\r
     ret\r