* [PATCH] MdePkg/BaseLib: Remove the unnecessary '_' before library APIs in ASM/NASM
@ 2016-10-17 11:22 Hao Wu
2016-10-17 13:56 ` Gao, Liming
0 siblings, 1 reply; 2+ messages in thread
From: Hao Wu @ 2016-10-17 11:22 UTC (permalink / raw)
To: edk2-devel; +Cc: Hao Wu, Liming Gao, Michael Kinney
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>
---
MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.asm | 6 +++---
MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.nasm | 6 +++---
MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.asm | 6 +++---
MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.nasm | 6 +++---
MdePkg/Library/BaseLib/Ia32/EnableInterrupts.asm | 6 +++---
MdePkg/Library/BaseLib/Ia32/EnableInterrupts.nasm | 6 +++---
MdePkg/Library/BaseLib/Ia32/Invd.asm | 6 +++---
MdePkg/Library/BaseLib/Ia32/Invd.nasm | 6 +++---
MdePkg/Library/BaseLib/Ia32/WriteLdtr.asm | 6 +++---
MdePkg/Library/BaseLib/Ia32/WriteLdtr.nasm | 6 +++---
10 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.asm b/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.asm
index e436405..ab7c2cf 100644
--- a/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.asm
+++ b/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.asm
@@ -1,5 +1,5 @@
;------------------------------------------------------------------------------ ;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -32,9 +32,9 @@
; VOID
; );
;------------------------------------------------------------------------------
-_CpuBreakpoint PROC
+CpuBreakpoint PROC
int 3
ret
-_CpuBreakpoint ENDP
+CpuBreakpoint ENDP
END
diff --git a/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.nasm b/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.nasm
index fb1dd2e..b8ae0f9 100644
--- a/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.nasm
+++ b/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.nasm
@@ -1,5 +1,5 @@
;------------------------------------------------------------------------------ ;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -29,8 +29,8 @@
; VOID
; );
;------------------------------------------------------------------------------
-global ASM_PFX(_CpuBreakpoint)
-ASM_PFX(_CpuBreakpoint):
+global ASM_PFX(CpuBreakpoint)
+ASM_PFX(CpuBreakpoint):
int 3
ret
diff --git a/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.asm b/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.asm
index e54f14e..f108864 100644
--- a/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.asm
+++ b/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.asm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -32,10 +32,10 @@
; VOID
; );
;------------------------------------------------------------------------------
-_EnableDisableInterrupts PROC
+EnableDisableInterrupts PROC
sti
cli
ret
-_EnableDisableInterrupts ENDP
+EnableDisableInterrupts ENDP
END
diff --git a/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.nasm b/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.nasm
index 7b20675..f7a4f62 100644
--- a/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.nasm
+++ b/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.nasm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -30,8 +30,8 @@
; VOID
; );
;------------------------------------------------------------------------------
-global ASM_PFX(_EnableDisableInterrupts)
-ASM_PFX(_EnableDisableInterrupts):
+global ASM_PFX(EnableDisableInterrupts)
+ASM_PFX(EnableDisableInterrupts):
sti
cli
ret
diff --git a/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.asm b/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.asm
index 58fc72d..b43d451 100644
--- a/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.asm
+++ b/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.asm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -32,9 +32,9 @@
; VOID
; );
;------------------------------------------------------------------------------
-_EnableInterrupts PROC
+EnableInterrupts PROC
sti
ret
-_EnableInterrupts ENDP
+EnableInterrupts ENDP
END
diff --git a/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.nasm b/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.nasm
index 85ea692..ff8bbe45 100644
--- a/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.nasm
+++ b/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.nasm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -30,8 +30,8 @@
; VOID
; );
;------------------------------------------------------------------------------
-global ASM_PFX(_EnableInterrupts)
-ASM_PFX(_EnableInterrupts):
+global ASM_PFX(EnableInterrupts)
+ASM_PFX(EnableInterrupts):
sti
ret
diff --git a/MdePkg/Library/BaseLib/Ia32/Invd.asm b/MdePkg/Library/BaseLib/Ia32/Invd.asm
index fadf3df..a34e217 100644
--- a/MdePkg/Library/BaseLib/Ia32/Invd.asm
+++ b/MdePkg/Library/BaseLib/Ia32/Invd.asm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -32,9 +32,9 @@
; VOID
; );
;------------------------------------------------------------------------------
-_AsmInvd PROC
+AsmInvd PROC
invd
ret
-_AsmInvd ENDP
+AsmInvd ENDP
END
diff --git a/MdePkg/Library/BaseLib/Ia32/Invd.nasm b/MdePkg/Library/BaseLib/Ia32/Invd.nasm
index 2d10cd8..c029eea 100644
--- a/MdePkg/Library/BaseLib/Ia32/Invd.nasm
+++ b/MdePkg/Library/BaseLib/Ia32/Invd.nasm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -30,8 +30,8 @@
; VOID
; );
;------------------------------------------------------------------------------
-global ASM_PFX(_AsmInvd)
-ASM_PFX(_AsmInvd):
+global ASM_PFX(AsmInvd)
+ASM_PFX(AsmInvd):
invd
ret
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteLdtr.asm b/MdePkg/Library/BaseLib/Ia32/WriteLdtr.asm
index abcd74d..adec67d 100644
--- a/MdePkg/Library/BaseLib/Ia32/WriteLdtr.asm
+++ b/MdePkg/Library/BaseLib/Ia32/WriteLdtr.asm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -32,10 +32,10 @@
; IN UINT16 Ldtr
; );
;------------------------------------------------------------------------------
-_AsmWriteLdtr PROC
+AsmWriteLdtr PROC
mov eax, [esp + 4]
lldt ax
ret
-_AsmWriteLdtr ENDP
+AsmWriteLdtr ENDP
END
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteLdtr.nasm b/MdePkg/Library/BaseLib/Ia32/WriteLdtr.nasm
index 40fbbad..692f1cc 100644
--- a/MdePkg/Library/BaseLib/Ia32/WriteLdtr.nasm
+++ b/MdePkg/Library/BaseLib/Ia32/WriteLdtr.nasm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -30,8 +30,8 @@
; IN UINT16 Ldtr
; );
;------------------------------------------------------------------------------
-global ASM_PFX(_AsmWriteLdtr)
-ASM_PFX(_AsmWriteLdtr):
+global ASM_PFX(AsmWriteLdtr)
+ASM_PFX(AsmWriteLdtr):
mov eax, [esp + 4]
lldt ax
ret
--
1.9.5.msysgit.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] MdePkg/BaseLib: Remove the unnecessary '_' before library APIs in ASM/NASM
2016-10-17 11:22 [PATCH] MdePkg/BaseLib: Remove the unnecessary '_' before library APIs in ASM/NASM Hao Wu
@ 2016-10-17 13:56 ` Gao, Liming
0 siblings, 0 replies; 2+ messages in thread
From: Gao, Liming @ 2016-10-17 13:56 UTC (permalink / raw)
To: Wu, Hao A, edk2-devel@lists.01.org; +Cc: Kinney, Michael D, Gao, Liming
Reviewed-by: Liming Gao <Liming.Gao@intel.com>
-----Original Message-----
From: Wu, Hao A
Sent: Monday, October 17, 2016 7:22 PM
To: edk2-devel@lists.01.org
Cc: Wu, Hao A <hao.a.wu@intel.com>; Gao, Liming <liming.gao@intel.com>; Kinney, Michael D <michael.d.kinney@intel.com>
Subject: [PATCH] MdePkg/BaseLib: Remove the unnecessary '_' before library APIs in ASM/NASM
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>
---
MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.asm | 6 +++---
MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.nasm | 6 +++---
MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.asm | 6 +++---
MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.nasm | 6 +++---
MdePkg/Library/BaseLib/Ia32/EnableInterrupts.asm | 6 +++---
MdePkg/Library/BaseLib/Ia32/EnableInterrupts.nasm | 6 +++---
MdePkg/Library/BaseLib/Ia32/Invd.asm | 6 +++---
MdePkg/Library/BaseLib/Ia32/Invd.nasm | 6 +++---
MdePkg/Library/BaseLib/Ia32/WriteLdtr.asm | 6 +++---
MdePkg/Library/BaseLib/Ia32/WriteLdtr.nasm | 6 +++---
10 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.asm b/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.asm
index e436405..ab7c2cf 100644
--- a/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.asm
+++ b/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.asm
@@ -1,5 +1,5 @@
;------------------------------------------------------------------------------ ;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -32,9 +32,9 @@
; VOID
; );
;------------------------------------------------------------------------------
-_CpuBreakpoint PROC
+CpuBreakpoint PROC
int 3
ret
-_CpuBreakpoint ENDP
+CpuBreakpoint ENDP
END
diff --git a/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.nasm b/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.nasm
index fb1dd2e..b8ae0f9 100644
--- a/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.nasm
+++ b/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.nasm
@@ -1,5 +1,5 @@
;------------------------------------------------------------------------------ ;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -29,8 +29,8 @@
; VOID
; );
;------------------------------------------------------------------------------
-global ASM_PFX(_CpuBreakpoint)
-ASM_PFX(_CpuBreakpoint):
+global ASM_PFX(CpuBreakpoint)
+ASM_PFX(CpuBreakpoint):
int 3
ret
diff --git a/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.asm b/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.asm
index e54f14e..f108864 100644
--- a/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.asm
+++ b/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.asm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -32,10 +32,10 @@
; VOID
; );
;------------------------------------------------------------------------------
-_EnableDisableInterrupts PROC
+EnableDisableInterrupts PROC
sti
cli
ret
-_EnableDisableInterrupts ENDP
+EnableDisableInterrupts ENDP
END
diff --git a/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.nasm b/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.nasm
index 7b20675..f7a4f62 100644
--- a/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.nasm
+++ b/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.nasm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -30,8 +30,8 @@
; VOID
; );
;------------------------------------------------------------------------------
-global ASM_PFX(_EnableDisableInterrupts)
-ASM_PFX(_EnableDisableInterrupts):
+global ASM_PFX(EnableDisableInterrupts)
+ASM_PFX(EnableDisableInterrupts):
sti
cli
ret
diff --git a/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.asm b/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.asm
index 58fc72d..b43d451 100644
--- a/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.asm
+++ b/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.asm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -32,9 +32,9 @@
; VOID
; );
;------------------------------------------------------------------------------
-_EnableInterrupts PROC
+EnableInterrupts PROC
sti
ret
-_EnableInterrupts ENDP
+EnableInterrupts ENDP
END
diff --git a/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.nasm b/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.nasm
index 85ea692..ff8bbe45 100644
--- a/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.nasm
+++ b/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.nasm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -30,8 +30,8 @@
; VOID
; );
;------------------------------------------------------------------------------
-global ASM_PFX(_EnableInterrupts)
-ASM_PFX(_EnableInterrupts):
+global ASM_PFX(EnableInterrupts)
+ASM_PFX(EnableInterrupts):
sti
ret
diff --git a/MdePkg/Library/BaseLib/Ia32/Invd.asm b/MdePkg/Library/BaseLib/Ia32/Invd.asm
index fadf3df..a34e217 100644
--- a/MdePkg/Library/BaseLib/Ia32/Invd.asm
+++ b/MdePkg/Library/BaseLib/Ia32/Invd.asm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -32,9 +32,9 @@
; VOID
; );
;------------------------------------------------------------------------------
-_AsmInvd PROC
+AsmInvd PROC
invd
ret
-_AsmInvd ENDP
+AsmInvd ENDP
END
diff --git a/MdePkg/Library/BaseLib/Ia32/Invd.nasm b/MdePkg/Library/BaseLib/Ia32/Invd.nasm
index 2d10cd8..c029eea 100644
--- a/MdePkg/Library/BaseLib/Ia32/Invd.nasm
+++ b/MdePkg/Library/BaseLib/Ia32/Invd.nasm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -30,8 +30,8 @@
; VOID
; );
;------------------------------------------------------------------------------
-global ASM_PFX(_AsmInvd)
-ASM_PFX(_AsmInvd):
+global ASM_PFX(AsmInvd)
+ASM_PFX(AsmInvd):
invd
ret
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteLdtr.asm b/MdePkg/Library/BaseLib/Ia32/WriteLdtr.asm
index abcd74d..adec67d 100644
--- a/MdePkg/Library/BaseLib/Ia32/WriteLdtr.asm
+++ b/MdePkg/Library/BaseLib/Ia32/WriteLdtr.asm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -32,10 +32,10 @@
; IN UINT16 Ldtr
; );
;------------------------------------------------------------------------------
-_AsmWriteLdtr PROC
+AsmWriteLdtr PROC
mov eax, [esp + 4]
lldt ax
ret
-_AsmWriteLdtr ENDP
+AsmWriteLdtr ENDP
END
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteLdtr.nasm b/MdePkg/Library/BaseLib/Ia32/WriteLdtr.nasm
index 40fbbad..692f1cc 100644
--- a/MdePkg/Library/BaseLib/Ia32/WriteLdtr.nasm
+++ b/MdePkg/Library/BaseLib/Ia32/WriteLdtr.nasm
@@ -1,6 +1,6 @@
;------------------------------------------------------------------------------
;
-; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
+; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distribution. The full text of the license may be found at
@@ -30,8 +30,8 @@
; IN UINT16 Ldtr
; );
;------------------------------------------------------------------------------
-global ASM_PFX(_AsmWriteLdtr)
-ASM_PFX(_AsmWriteLdtr):
+global ASM_PFX(AsmWriteLdtr)
+ASM_PFX(AsmWriteLdtr):
mov eax, [esp + 4]
lldt ax
ret
--
1.9.5.msysgit.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-17 13:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-17 11:22 [PATCH] MdePkg/BaseLib: Remove the unnecessary '_' before library APIs in ASM/NASM Hao Wu
2016-10-17 13:56 ` Gao, Liming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox