mirror of https://github.com/acidanthera/audk.git
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> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
d4a9b90fa7
commit
bfa97024df
|
@ -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
|
; This program and the accompanying materials
|
||||||
; are licensed and made available under the terms and conditions of the BSD License
|
; 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
|
; which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -32,9 +32,9 @@
|
||||||
; VOID
|
; VOID
|
||||||
; );
|
; );
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
_CpuBreakpoint PROC
|
CpuBreakpoint PROC
|
||||||
int 3
|
int 3
|
||||||
ret
|
ret
|
||||||
_CpuBreakpoint ENDP
|
CpuBreakpoint ENDP
|
||||||
|
|
||||||
END
|
END
|
||||||
|
|
|
@ -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
|
; This program and the accompanying materials
|
||||||
; are licensed and made available under the terms and conditions of the BSD License
|
; 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
|
; which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -29,8 +29,8 @@
|
||||||
; VOID
|
; VOID
|
||||||
; );
|
; );
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
global ASM_PFX(_CpuBreakpoint)
|
global ASM_PFX(CpuBreakpoint)
|
||||||
ASM_PFX(_CpuBreakpoint):
|
ASM_PFX(CpuBreakpoint):
|
||||||
int 3
|
int 3
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
|
@ -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
|
; This program and the accompanying materials
|
||||||
; are licensed and made available under the terms and conditions of the BSD License
|
; 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
|
; which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -32,10 +32,10 @@
|
||||||
; VOID
|
; VOID
|
||||||
; );
|
; );
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
_EnableDisableInterrupts PROC
|
EnableDisableInterrupts PROC
|
||||||
sti
|
sti
|
||||||
cli
|
cli
|
||||||
ret
|
ret
|
||||||
_EnableDisableInterrupts ENDP
|
EnableDisableInterrupts ENDP
|
||||||
|
|
||||||
END
|
END
|
||||||
|
|
|
@ -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
|
; This program and the accompanying materials
|
||||||
; are licensed and made available under the terms and conditions of the BSD License
|
; 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
|
; which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -30,8 +30,8 @@
|
||||||
; VOID
|
; VOID
|
||||||
; );
|
; );
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
global ASM_PFX(_EnableDisableInterrupts)
|
global ASM_PFX(EnableDisableInterrupts)
|
||||||
ASM_PFX(_EnableDisableInterrupts):
|
ASM_PFX(EnableDisableInterrupts):
|
||||||
sti
|
sti
|
||||||
cli
|
cli
|
||||||
ret
|
ret
|
||||||
|
|
|
@ -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
|
; This program and the accompanying materials
|
||||||
; are licensed and made available under the terms and conditions of the BSD License
|
; 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
|
; which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -32,9 +32,9 @@
|
||||||
; VOID
|
; VOID
|
||||||
; );
|
; );
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
_EnableInterrupts PROC
|
EnableInterrupts PROC
|
||||||
sti
|
sti
|
||||||
ret
|
ret
|
||||||
_EnableInterrupts ENDP
|
EnableInterrupts ENDP
|
||||||
|
|
||||||
END
|
END
|
||||||
|
|
|
@ -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
|
; This program and the accompanying materials
|
||||||
; are licensed and made available under the terms and conditions of the BSD License
|
; 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
|
; which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -30,8 +30,8 @@
|
||||||
; VOID
|
; VOID
|
||||||
; );
|
; );
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
global ASM_PFX(_EnableInterrupts)
|
global ASM_PFX(EnableInterrupts)
|
||||||
ASM_PFX(_EnableInterrupts):
|
ASM_PFX(EnableInterrupts):
|
||||||
sti
|
sti
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
|
@ -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
|
; This program and the accompanying materials
|
||||||
; are licensed and made available under the terms and conditions of the BSD License
|
; 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
|
; which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -32,9 +32,9 @@
|
||||||
; VOID
|
; VOID
|
||||||
; );
|
; );
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
_AsmInvd PROC
|
AsmInvd PROC
|
||||||
invd
|
invd
|
||||||
ret
|
ret
|
||||||
_AsmInvd ENDP
|
AsmInvd ENDP
|
||||||
|
|
||||||
END
|
END
|
||||||
|
|
|
@ -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
|
; This program and the accompanying materials
|
||||||
; are licensed and made available under the terms and conditions of the BSD License
|
; 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
|
; which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -30,8 +30,8 @@
|
||||||
; VOID
|
; VOID
|
||||||
; );
|
; );
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
global ASM_PFX(_AsmInvd)
|
global ASM_PFX(AsmInvd)
|
||||||
ASM_PFX(_AsmInvd):
|
ASM_PFX(AsmInvd):
|
||||||
invd
|
invd
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|
|
@ -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
|
; This program and the accompanying materials
|
||||||
; are licensed and made available under the terms and conditions of the BSD License
|
; 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
|
; which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -32,10 +32,10 @@
|
||||||
; IN UINT16 Ldtr
|
; IN UINT16 Ldtr
|
||||||
; );
|
; );
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
_AsmWriteLdtr PROC
|
AsmWriteLdtr PROC
|
||||||
mov eax, [esp + 4]
|
mov eax, [esp + 4]
|
||||||
lldt ax
|
lldt ax
|
||||||
ret
|
ret
|
||||||
_AsmWriteLdtr ENDP
|
AsmWriteLdtr ENDP
|
||||||
|
|
||||||
END
|
END
|
||||||
|
|
|
@ -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
|
; This program and the accompanying materials
|
||||||
; are licensed and made available under the terms and conditions of the BSD License
|
; 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
|
; which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -30,8 +30,8 @@
|
||||||
; IN UINT16 Ldtr
|
; IN UINT16 Ldtr
|
||||||
; );
|
; );
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
global ASM_PFX(_AsmWriteLdtr)
|
global ASM_PFX(AsmWriteLdtr)
|
||||||
ASM_PFX(_AsmWriteLdtr):
|
ASM_PFX(AsmWriteLdtr):
|
||||||
mov eax, [esp + 4]
|
mov eax, [esp + 4]
|
||||||
lldt ax
|
lldt ax
|
||||||
ret
|
ret
|
||||||
|
|
Loading…
Reference in New Issue