MdePkg: Remove X86 ASM and S files
NASM has replaced ASM and S files. 1. Remove ASM from all modules. 2. Remove S files from the drivers only. 3. https://bugzilla.tianocore.org/show_bug.cgi?id=881 After NASM is updated, S files can be removed from Library. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
This commit is contained in:
@@ -1,56 +0,0 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006 - 2008, 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
|
||||
; 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 IMPLIED.
|
||||
;
|
||||
; Module Name:
|
||||
;
|
||||
; CompareMem.Asm
|
||||
;
|
||||
; Abstract:
|
||||
;
|
||||
; CompareMem function
|
||||
;
|
||||
; Notes:
|
||||
;
|
||||
; The following BaseMemoryLib instances contain the same copy of this file:
|
||||
;
|
||||
; BaseMemoryLibRepStr
|
||||
; BaseMemoryLibMmx
|
||||
; BaseMemoryLibSse2
|
||||
; BaseMemoryLibOptDxe
|
||||
; BaseMemoryLibOptPei
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
.686
|
||||
.model flat,C
|
||||
.code
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; INTN
|
||||
; EFIAPI
|
||||
; InternalMemCompareMem (
|
||||
; IN CONST VOID *DestinationBuffer,
|
||||
; IN CONST VOID *SourceBuffer,
|
||||
; IN UINTN Length
|
||||
; );
|
||||
;------------------------------------------------------------------------------
|
||||
InternalMemCompareMem PROC USES esi edi
|
||||
mov esi, [esp + 12]
|
||||
mov edi, [esp + 16]
|
||||
mov ecx, [esp + 20]
|
||||
repe cmpsb
|
||||
movzx eax, byte ptr [esi - 1]
|
||||
movzx edx, byte ptr [edi - 1]
|
||||
sub eax, edx
|
||||
ret
|
||||
InternalMemCompareMem ENDP
|
||||
|
||||
END
|
@@ -1,63 +0,0 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, 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
|
||||
; 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 IMPLIED.
|
||||
;
|
||||
; Module Name:
|
||||
;
|
||||
; CopyMem.Asm
|
||||
;
|
||||
; Abstract:
|
||||
;
|
||||
; CopyMem function
|
||||
;
|
||||
; Notes:
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
.386
|
||||
.model flat,C
|
||||
.code
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VOID *
|
||||
; InternalMemCopyMem (
|
||||
; IN VOID *Destination,
|
||||
; IN VOID *Source,
|
||||
; IN UINTN Count
|
||||
; )
|
||||
;------------------------------------------------------------------------------
|
||||
InternalMemCopyMem PROC USES esi edi
|
||||
mov esi, [esp + 16] ; esi <- Source
|
||||
mov edi, [esp + 12] ; edi <- Destination
|
||||
mov edx, [esp + 20] ; edx <- Count
|
||||
lea eax, [esi + edx - 1] ; eax <- End of Source
|
||||
cmp esi, edi
|
||||
jae @F
|
||||
cmp eax, edi
|
||||
jae @CopyBackward ; Copy backward if overlapped
|
||||
@@:
|
||||
mov ecx, edx
|
||||
and edx, 3
|
||||
shr ecx, 2
|
||||
rep movsd ; Copy as many Dwords as possible
|
||||
jmp @CopyBytes
|
||||
@CopyBackward:
|
||||
mov esi, eax ; esi <- End of Source
|
||||
lea edi, [edi + edx - 1] ; edi <- End of Destination
|
||||
std
|
||||
@CopyBytes:
|
||||
mov ecx, edx
|
||||
rep movsb ; Copy bytes backward
|
||||
cld
|
||||
mov eax, [esp + 12] ; eax <- Destination as return value
|
||||
ret
|
||||
InternalMemCopyMem ENDP
|
||||
|
||||
END
|
@@ -1,57 +0,0 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006 - 2015, 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
|
||||
; 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 IMPLIED.
|
||||
;
|
||||
; Module Name:
|
||||
;
|
||||
; ScanMem16.Asm
|
||||
;
|
||||
; Abstract:
|
||||
;
|
||||
; ScanMem16 function
|
||||
;
|
||||
; Notes:
|
||||
;
|
||||
; The following BaseMemoryLib instances contain the same copy of this file:
|
||||
;
|
||||
; BaseMemoryLibRepStr
|
||||
; BaseMemoryLibMmx
|
||||
; BaseMemoryLibSse2
|
||||
; BaseMemoryLibOptDxe
|
||||
; BaseMemoryLibOptPei
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
.686
|
||||
.model flat,C
|
||||
.code
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; CONST VOID *
|
||||
; EFIAPI
|
||||
; InternalMemScanMem16 (
|
||||
; IN CONST VOID *Buffer,
|
||||
; IN UINTN Length,
|
||||
; IN UINT16 Value
|
||||
; );
|
||||
;------------------------------------------------------------------------------
|
||||
InternalMemScanMem16 PROC USES edi
|
||||
mov ecx, [esp + 12]
|
||||
mov edi, [esp + 8]
|
||||
mov eax, [esp + 16]
|
||||
repne scasw
|
||||
lea eax, [edi - 2]
|
||||
jz @F
|
||||
mov eax, ecx
|
||||
@@:
|
||||
ret
|
||||
InternalMemScanMem16 ENDP
|
||||
|
||||
END
|
@@ -1,57 +0,0 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006 - 2015, 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
|
||||
; 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 IMPLIED.
|
||||
;
|
||||
; Module Name:
|
||||
;
|
||||
; ScanMem32.Asm
|
||||
;
|
||||
; Abstract:
|
||||
;
|
||||
; ScanMem32 function
|
||||
;
|
||||
; Notes:
|
||||
;
|
||||
; The following BaseMemoryLib instances contain the same copy of this file:
|
||||
;
|
||||
; BaseMemoryLibRepStr
|
||||
; BaseMemoryLibMmx
|
||||
; BaseMemoryLibSse2
|
||||
; BaseMemoryLibOptDxe
|
||||
; BaseMemoryLibOptPei
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
.686
|
||||
.model flat,C
|
||||
.code
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; CONST VOID *
|
||||
; EFIAPI
|
||||
; InternalMemScanMem32 (
|
||||
; IN CONST VOID *Buffer,
|
||||
; IN UINTN Length,
|
||||
; IN UINT32 Value
|
||||
; );
|
||||
;------------------------------------------------------------------------------
|
||||
InternalMemScanMem32 PROC USES edi
|
||||
mov ecx, [esp + 12]
|
||||
mov edi, [esp + 8]
|
||||
mov eax, [esp + 16]
|
||||
repne scasd
|
||||
lea eax, [edi - 4]
|
||||
jz @F
|
||||
mov eax, ecx
|
||||
@@:
|
||||
ret
|
||||
InternalMemScanMem32 ENDP
|
||||
|
||||
END
|
@@ -1,66 +0,0 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006 - 2015, 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
|
||||
; 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 IMPLIED.
|
||||
;
|
||||
; Module Name:
|
||||
;
|
||||
; ScanMem64.Asm
|
||||
;
|
||||
; Abstract:
|
||||
;
|
||||
; ScanMem64 function
|
||||
;
|
||||
; Notes:
|
||||
;
|
||||
; The following BaseMemoryLib instances contain the same copy of this file:
|
||||
;
|
||||
; BaseMemoryLibRepStr
|
||||
; BaseMemoryLibMmx
|
||||
; BaseMemoryLibSse2
|
||||
; BaseMemoryLibOptDxe
|
||||
; BaseMemoryLibOptPei
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
.686
|
||||
.model flat,C
|
||||
.code
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; CONST VOID *
|
||||
; EFIAPI
|
||||
; InternalMemScanMem64 (
|
||||
; IN CONST VOID *Buffer,
|
||||
; IN UINTN Length,
|
||||
; IN UINT64 Value
|
||||
; );
|
||||
;------------------------------------------------------------------------------
|
||||
InternalMemScanMem64 PROC USES edi
|
||||
mov ecx, [esp + 12]
|
||||
mov eax, [esp + 16]
|
||||
mov edx, [esp + 20]
|
||||
mov edi, [esp + 8]
|
||||
@@:
|
||||
cmp eax, [edi]
|
||||
lea edi, [edi + 8]
|
||||
loopne @B
|
||||
jne @F
|
||||
cmp edx, [edi - 4]
|
||||
jecxz @F
|
||||
jne @B
|
||||
@@:
|
||||
lea eax, [edi - 8]
|
||||
jz @F
|
||||
mov eax, ecx
|
||||
@@:
|
||||
ret
|
||||
InternalMemScanMem64 ENDP
|
||||
|
||||
END
|
@@ -1,57 +0,0 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006 - 2015, 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
|
||||
; 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 IMPLIED.
|
||||
;
|
||||
; Module Name:
|
||||
;
|
||||
; ScanMem8.Asm
|
||||
;
|
||||
; Abstract:
|
||||
;
|
||||
; ScanMem8 function
|
||||
;
|
||||
; Notes:
|
||||
;
|
||||
; The following BaseMemoryLib instances contain the same copy of this file:
|
||||
;
|
||||
; BaseMemoryLibRepStr
|
||||
; BaseMemoryLibMmx
|
||||
; BaseMemoryLibSse2
|
||||
; BaseMemoryLibOptDxe
|
||||
; BaseMemoryLibOptPei
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
.686
|
||||
.model flat,C
|
||||
.code
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; CONST VOID *
|
||||
; EFIAPI
|
||||
; InternalMemScanMem8 (
|
||||
; IN CONST VOID *Buffer,
|
||||
; IN UINTN Length,
|
||||
; IN UINT8 Value
|
||||
; );
|
||||
;------------------------------------------------------------------------------
|
||||
InternalMemScanMem8 PROC USES edi
|
||||
mov ecx, [esp + 12]
|
||||
mov edi, [esp + 8]
|
||||
mov al, [esp + 16]
|
||||
repne scasb
|
||||
lea eax, [edi - 1]
|
||||
jz @F
|
||||
mov eax, ecx
|
||||
@@:
|
||||
ret
|
||||
InternalMemScanMem8 ENDP
|
||||
|
||||
END
|
@@ -1,45 +0,0 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, 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
|
||||
; 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 IMPLIED.
|
||||
;
|
||||
; Module Name:
|
||||
;
|
||||
; SetMem.Asm
|
||||
;
|
||||
; Abstract:
|
||||
;
|
||||
; SetMem function
|
||||
;
|
||||
; Notes:
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
.386
|
||||
.model flat,C
|
||||
.code
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VOID *
|
||||
; InternalMemSetMem (
|
||||
; IN VOID *Buffer,
|
||||
; IN UINTN Count,
|
||||
; IN UINT8 Value
|
||||
; )
|
||||
;------------------------------------------------------------------------------
|
||||
InternalMemSetMem PROC USES edi
|
||||
mov eax, [esp + 16]
|
||||
mov edi, [esp + 8]
|
||||
mov ecx, [esp + 12]
|
||||
rep stosb
|
||||
mov eax, [esp + 8]
|
||||
ret
|
||||
InternalMemSetMem ENDP
|
||||
|
||||
END
|
@@ -1,45 +0,0 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, 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
|
||||
; 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 IMPLIED.
|
||||
;
|
||||
; Module Name:
|
||||
;
|
||||
; SetMem16.Asm
|
||||
;
|
||||
; Abstract:
|
||||
;
|
||||
; SetMem16 function
|
||||
;
|
||||
; Notes:
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
.386
|
||||
.model flat,C
|
||||
.code
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VOID *
|
||||
; InternalMemSetMem16 (
|
||||
; IN VOID *Buffer,
|
||||
; IN UINTN Count,
|
||||
; IN UINT16 Value
|
||||
; )
|
||||
;------------------------------------------------------------------------------
|
||||
InternalMemSetMem16 PROC USES edi
|
||||
mov eax, [esp + 16]
|
||||
mov edi, [esp + 8]
|
||||
mov ecx, [esp + 12]
|
||||
rep stosw
|
||||
mov eax, [esp + 8]
|
||||
ret
|
||||
InternalMemSetMem16 ENDP
|
||||
|
||||
END
|
@@ -1,45 +0,0 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, 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
|
||||
; 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 IMPLIED.
|
||||
;
|
||||
; Module Name:
|
||||
;
|
||||
; SetMem32.Asm
|
||||
;
|
||||
; Abstract:
|
||||
;
|
||||
; SetMem32 function
|
||||
;
|
||||
; Notes:
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
.386
|
||||
.model flat,C
|
||||
.code
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VOID *
|
||||
; InternalMemSetMem32 (
|
||||
; IN VOID *Buffer,
|
||||
; IN UINTN Count,
|
||||
; IN UINT32 Value
|
||||
; )
|
||||
;------------------------------------------------------------------------------
|
||||
InternalMemSetMem32 PROC USES edi
|
||||
mov eax, [esp + 16]
|
||||
mov edi, [esp + 8]
|
||||
mov ecx, [esp + 12]
|
||||
rep stosd
|
||||
mov eax, [esp + 8]
|
||||
ret
|
||||
InternalMemSetMem32 ENDP
|
||||
|
||||
END
|
@@ -1,49 +0,0 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, 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
|
||||
; 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 IMPLIED.
|
||||
;
|
||||
; Module Name:
|
||||
;
|
||||
; SetMem64.Asm
|
||||
;
|
||||
; Abstract:
|
||||
;
|
||||
; SetMem64 function
|
||||
;
|
||||
; Notes:
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
.386
|
||||
.model flat,C
|
||||
.code
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VOID *
|
||||
; InternalMemSetMem64 (
|
||||
; IN VOID *Buffer,
|
||||
; IN UINTN Count,
|
||||
; IN UINT64 Value
|
||||
; )
|
||||
;------------------------------------------------------------------------------
|
||||
InternalMemSetMem64 PROC USES edi
|
||||
mov ecx, [esp + 12]
|
||||
mov eax, [esp + 16]
|
||||
mov edx, [esp + 20]
|
||||
mov edi, [esp + 8]
|
||||
@@:
|
||||
mov [edi + ecx*8 - 8], eax
|
||||
mov [edi + ecx*8 - 4], edx
|
||||
loop @B
|
||||
mov eax, edi
|
||||
ret
|
||||
InternalMemSetMem64 ENDP
|
||||
|
||||
END
|
@@ -1,50 +0,0 @@
|
||||
;------------------------------------------------------------------------------
|
||||
;
|
||||
; Copyright (c) 2006, 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
|
||||
; 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 IMPLIED.
|
||||
;
|
||||
; Module Name:
|
||||
;
|
||||
; ZeroMem.Asm
|
||||
;
|
||||
; Abstract:
|
||||
;
|
||||
; ZeroMem function
|
||||
;
|
||||
; Notes:
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
.386
|
||||
.model flat,C
|
||||
.code
|
||||
|
||||
;------------------------------------------------------------------------------
|
||||
; VOID *
|
||||
; InternalMemZeroMem (
|
||||
; IN VOID *Buffer,
|
||||
; IN UINTN Count
|
||||
; );
|
||||
;------------------------------------------------------------------------------
|
||||
InternalMemZeroMem PROC USES edi
|
||||
xor eax, eax
|
||||
mov edi, [esp + 8]
|
||||
mov ecx, [esp + 12]
|
||||
mov edx, ecx
|
||||
shr ecx, 2
|
||||
and edx, 3
|
||||
push edi
|
||||
rep stosd
|
||||
mov ecx, edx
|
||||
rep stosb
|
||||
pop eax
|
||||
ret
|
||||
InternalMemZeroMem ENDP
|
||||
|
||||
END
|
Reference in New Issue
Block a user