diff options
22 files changed, 38 insertions, 38 deletions
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CompareMem.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CompareMem.S index 94216d02d6..d7ea0d1616 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CompareMem.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CompareMem.S @@ -11,7 +11,7 @@ # # Module Name: # -# CompareMem.Asm +# CompareMem.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CopyMem.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CopyMem.S index 292b83b2e0..3355829560 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CopyMem.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CopyMem.S @@ -11,7 +11,7 @@ # # Module Name: # -# CopyMem.asm +# CopyMem.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem32.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem32.S index 0cae5d3780..30f5066486 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem32.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem32.S @@ -11,7 +11,7 @@ # # Module Name: # -# ScanMem32.Asm +# ScanMem32.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem64.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem64.S index aeb63d424c..5d58c0a56a 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem64.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem64.S @@ -11,7 +11,7 @@ # # Module Name: # -# ScanMem64.Asm +# ScanMem64.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem8.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem8.S index bf19e471db..210292e105 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem8.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem8.S @@ -11,7 +11,7 @@ # # Module Name: # -# ScanMem8.Asm +# ScanMem8.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.S index 1c56a8d22d..b8a60039bb 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.S @@ -11,7 +11,7 @@ # # Module Name: # -# SetMem.Asm +# SetMem.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.S index 86000519ac..99b13261d4 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.S @@ -11,7 +11,7 @@ # # Module Name: # -# SetMem16.Asm +# SetMem16.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem32.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem32.S index e75bf4d9e6..8b2721573d 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem32.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem32.S @@ -11,7 +11,7 @@ # # Module Name: # -# SetMem32.Asm +# SetMem32.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem64.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem64.S index 3405819d48..e8deeb0fff 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem64.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem64.S @@ -11,7 +11,7 @@ # # Module Name: # -# SetMem64.Asm +# SetMem64.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ZeroMem.S b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ZeroMem.S index d5e6b2f53c..500a5524f5 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ZeroMem.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ZeroMem.S @@ -11,7 +11,7 @@ # # Module Name: # -# ZeroMem.Asm +# ZeroMem.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S b/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S index e2c4c47474..00c354032f 100644 --- a/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S +++ b/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.S @@ -11,7 +11,7 @@ #
# Module Name:
#
-# SetMem.Asm
+# SetMem.S
#
# Abstract:
#
@@ -34,25 +34,25 @@ ASM_PFX(InternalMemZeroMem):
push rdi
push rbx
- push rcx # push Buffer
- mov rax, r8 # rax = Value
- and rax, 0xff # rax = lower 8 bits of r8, upper 56 bits are 0
- mov ah, al # ah = al
- mov bx, ax # bx = ax
- shl rax, 0x10 # rax = ax << 16
- mov ax, bx # ax = bx
- mov rbx, rax # ebx = eax
- shl rax, 0x20 # rax = rax << 32
- or rax, rbx # eax = ebx
- mov rdi, rcx # rdi = Buffer
- mov rcx, rdx # rcx = Count
- shr rcx, 3 # rcx = rcx / 8
+ push rcx # push Buffer
+ mov rax, r8 # rax = Value
+ and rax, 0xff # rax = lower 8 bits of r8, upper 56 bits are 0
+ mov ah, al # ah = al
+ mov bx, ax # bx = ax
+ shl rax, 0x10 # rax = ax << 16
+ mov ax, bx # ax = bx
+ mov rbx, rax # ebx = eax
+ shl rax, 0x20 # rax = rax << 32
+ or rax, rbx # eax = ebx
+ mov rdi, rcx # rdi = Buffer
+ mov rcx, rdx # rcx = Count
+ shr rcx, 3 # rcx = rcx / 8
cld
rep stosq
- mov rcx, rdx # rcx = rdx
- and rcx, 7 # rcx = rcx & 7
+ mov rcx, rdx # rcx = rdx
+ and rcx, 7 # rcx = rcx & 7
rep stosb
- pop rax # rax = Buffer
+ pop rax # rax = Buffer
pop rbx
pop rdi
ret
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/CompareMem.S b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/CompareMem.S index 94216d02d6..d7ea0d1616 100644 --- a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/CompareMem.S +++ b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/CompareMem.S @@ -11,7 +11,7 @@ # # Module Name: # -# CompareMem.Asm +# CompareMem.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/CopyMem.S b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/CopyMem.S index 5621f7ee5b..318ae0ee54 100644 --- a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/CopyMem.S +++ b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/CopyMem.S @@ -11,7 +11,7 @@ # # Module Name: # -# CopyMem.Asm +# CopyMem.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem16.S b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem16.S index db66ade1e1..d94ed42940 100644 --- a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem16.S +++ b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem16.S @@ -11,7 +11,7 @@ # # Module Name: # -# ScanMem16.Asm +# ScanMem16.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem64.S b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem64.S index aeb63d424c..5d58c0a56a 100644 --- a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem64.S +++ b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem64.S @@ -11,7 +11,7 @@ # # Module Name: # -# ScanMem64.Asm +# ScanMem64.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem8.S b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem8.S index bf19e471db..210292e105 100644 --- a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem8.S +++ b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem8.S @@ -11,7 +11,7 @@ # # Module Name: # -# ScanMem8.Asm +# ScanMem8.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem.S b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem.S index 64fdfaff5d..1a1041b8e3 100644 --- a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem.S +++ b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem.S @@ -11,7 +11,7 @@ # # Module Name: # -# SetMem.Asm +# SetMem.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem16.S b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem16.S index 86000519ac..99b13261d4 100644 --- a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem16.S +++ b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem16.S @@ -11,7 +11,7 @@ # # Module Name: # -# SetMem16.Asm +# SetMem16.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem32.S b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem32.S index e75bf4d9e6..8b2721573d 100644 --- a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem32.S +++ b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem32.S @@ -11,7 +11,7 @@ # # Module Name: # -# SetMem32.Asm +# SetMem32.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem64.S b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem64.S index 3405819d48..e8deeb0fff 100644 --- a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem64.S +++ b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem64.S @@ -11,7 +11,7 @@ # # Module Name: # -# SetMem64.Asm +# SetMem64.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ZeroMem.S b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ZeroMem.S index d5e6b2f53c..500a5524f5 100644 --- a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ZeroMem.S +++ b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ZeroMem.S @@ -11,7 +11,7 @@ # # Module Name: # -# ZeroMem.Asm +# ZeroMem.S # # Abstract: # diff --git a/MdePkg/Library/BaseMemoryLibOptPei/X64/CopyMem.S b/MdePkg/Library/BaseMemoryLibOptPei/X64/CopyMem.S index 3e7a396b5b..c75da2086f 100644 --- a/MdePkg/Library/BaseMemoryLibOptPei/X64/CopyMem.S +++ b/MdePkg/Library/BaseMemoryLibOptPei/X64/CopyMem.S @@ -46,7 +46,7 @@ ASM_PFX(InternalMemCopyMem): mov rax, rdi # rax <- Destination as return value jae _InternalMemCopyMem_al_0000 cmp r9, rdi - jae _atSym_CopyBackward # Copy backward if overlapped + jae _atSym_CopyBackward # Copy backward if overlapped _InternalMemCopyMem_al_0000: mov rcx, r8 and r8, 7 |