]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Remove X86 ASM and S files
authorLiming Gao <liming.gao@intel.com>
Mon, 4 Jun 2018 05:26:22 +0000 (13:26 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 7 Jun 2018 07:26:27 +0000 (15:26 +0800)
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>
308 files changed:
MdePkg/Library/BaseCpuLib/BaseCpuLib.inf
MdePkg/Library/BaseCpuLib/Ia32/CpuFlushTlb.asm [deleted file]
MdePkg/Library/BaseCpuLib/Ia32/CpuSleep.asm [deleted file]
MdePkg/Library/BaseCpuLib/X64/CpuFlushTlb.asm [deleted file]
MdePkg/Library/BaseCpuLib/X64/CpuSleep.asm [deleted file]
MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
MdePkg/Library/BaseIoLibIntrinsic/Ia32/IoFifo.asm [deleted file]
MdePkg/Library/BaseIoLibIntrinsic/X64/IoFifo.asm [deleted file]
MdePkg/Library/BaseLib/BaseLib.inf
MdePkg/Library/BaseLib/Ia32/ARShiftU64.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/CpuId.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/CpuIdEx.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/CpuPause.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/DisableCache.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/DisableInterrupts.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/DisablePaging32.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/DivU64x32.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/DivU64x32Remainder.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/DivU64x64Remainder.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/EnableCache.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/EnableInterrupts.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/EnablePaging32.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/EnablePaging64.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/FlushCacheLine.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/FxRestore.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/FxSave.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/Invd.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/LRotU64.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/LShiftU64.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/LongJump.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ModU64x32.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/Monitor.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/MultU64x32.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/MultU64x64.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/Mwait.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/RRotU64.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/RShiftU64.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/RdRand.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadCr0.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadCr2.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadCr3.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadCr4.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadCs.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadDr0.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadDr1.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadDr2.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadDr3.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadDr4.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadDr5.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadDr6.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadDr7.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadDs.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadEflags.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadEs.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadFs.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadGdtr.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadGs.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadIdtr.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadLdtr.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadMm0.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadMm1.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadMm2.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadMm3.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadMm4.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadMm5.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadMm6.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadMm7.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadMsr64.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadPmc.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadSs.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadTr.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/ReadTsc.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/SetJump.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/SwapBytes64.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/Thunk16.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/Wbinvd.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteCr0.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteCr2.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteCr3.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteCr4.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteDr0.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteDr1.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteDr2.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteDr3.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteDr4.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteDr5.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteDr6.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteDr7.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteGdtr.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteIdtr.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteLdtr.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteMm0.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteMm1.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteMm2.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteMm3.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteMm4.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteMm5.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteMm6.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteMm7.asm [deleted file]
MdePkg/Library/BaseLib/Ia32/WriteMsr64.asm [deleted file]
MdePkg/Library/BaseLib/X64/CpuBreakpoint.asm [deleted file]
MdePkg/Library/BaseLib/X64/CpuId.asm [deleted file]
MdePkg/Library/BaseLib/X64/CpuIdEx.asm [deleted file]
MdePkg/Library/BaseLib/X64/CpuPause.asm [deleted file]
MdePkg/Library/BaseLib/X64/DisableCache.asm [deleted file]
MdePkg/Library/BaseLib/X64/DisableInterrupts.asm [deleted file]
MdePkg/Library/BaseLib/X64/DisablePaging64.asm [deleted file]
MdePkg/Library/BaseLib/X64/EnableCache.asm [deleted file]
MdePkg/Library/BaseLib/X64/EnableDisableInterrupts.asm [deleted file]
MdePkg/Library/BaseLib/X64/EnableInterrupts.asm [deleted file]
MdePkg/Library/BaseLib/X64/FlushCacheLine.asm [deleted file]
MdePkg/Library/BaseLib/X64/FxRestore.asm [deleted file]
MdePkg/Library/BaseLib/X64/FxSave.asm [deleted file]
MdePkg/Library/BaseLib/X64/Invd.asm [deleted file]
MdePkg/Library/BaseLib/X64/LongJump.asm [deleted file]
MdePkg/Library/BaseLib/X64/Monitor.asm [deleted file]
MdePkg/Library/BaseLib/X64/Mwait.asm [deleted file]
MdePkg/Library/BaseLib/X64/RdRand.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadCr0.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadCr2.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadCr3.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadCr4.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadCs.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadDr0.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadDr1.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadDr2.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadDr3.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadDr4.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadDr5.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadDr6.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadDr7.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadDs.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadEflags.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadEs.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadFs.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadGdtr.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadGs.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadIdtr.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadLdtr.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadMm0.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadMm1.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadMm2.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadMm3.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadMm4.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadMm5.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadMm6.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadMm7.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadMsr64.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadPmc.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadSs.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadTr.asm [deleted file]
MdePkg/Library/BaseLib/X64/ReadTsc.asm [deleted file]
MdePkg/Library/BaseLib/X64/SetJump.asm [deleted file]
MdePkg/Library/BaseLib/X64/SwitchStack.asm [deleted file]
MdePkg/Library/BaseLib/X64/Thunk16.asm [deleted file]
MdePkg/Library/BaseLib/X64/Wbinvd.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteCr0.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteCr2.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteCr3.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteCr4.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteDr0.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteDr1.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteDr2.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteDr3.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteDr4.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteDr5.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteDr6.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteDr7.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteGdtr.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteIdtr.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteLdtr.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteMm0.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteMm1.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteMm2.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteMm3.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteMm4.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteMm5.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteMm6.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteMm7.asm [deleted file]
MdePkg/Library/BaseLib/X64/WriteMsr64.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/BaseMemoryLibMmx.inf
MdePkg/Library/BaseMemoryLibMmx/Ia32/CompareMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem8.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/Ia32/ZeroMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/X64/CopyMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem8.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/X64/SetMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/X64/SetMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/X64/SetMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/X64/SetMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibMmx/X64/ZeroMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CompareMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CopyMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem8.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ZeroMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/X64/CompareMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/X64/CopyMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem8.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptDxe/X64/ZeroMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/BaseMemoryLibOptPei.inf
MdePkg/Library/BaseMemoryLibOptPei/Ia32/CompareMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/Ia32/CopyMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem8.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/Ia32/ZeroMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/X64/CompareMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/X64/CopyMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem8.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibOptPei/X64/ZeroMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/BaseMemoryLibRepStr.inf
MdePkg/Library/BaseMemoryLibRepStr/Ia32/CompareMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/Ia32/ZeroMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/CompareMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/CopyMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem8.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibRepStr/X64/ZeroMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/BaseMemoryLibSse2.inf
MdePkg/Library/BaseMemoryLibSse2/Ia32/CompareMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/Ia32/CopyMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem8.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/Ia32/ZeroMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/X64/CompareMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/X64/CopyMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem8.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/X64/SetMem.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/X64/SetMem16.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/X64/SetMem32.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/X64/SetMem64.asm [deleted file]
MdePkg/Library/BaseMemoryLibSse2/X64/ZeroMem.asm [deleted file]
MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedCompareExchange16.asm [deleted file]
MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedCompareExchange32.asm [deleted file]
MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedCompareExchange64.asm [deleted file]
MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedDecrement.asm [deleted file]
MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedIncrement.asm [deleted file]
MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange16.asm [deleted file]
MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange32.asm [deleted file]
MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange64.asm [deleted file]
MdePkg/Library/BaseSynchronizationLib/X64/InterlockedDecrement.asm [deleted file]
MdePkg/Library/BaseSynchronizationLib/X64/InterlockedIncrement.asm [deleted file]

index dad08dfe7f54663b8c860ee2a4d2e2cfb093feec..84564e00d727dd672392128006c7d1f16b8673e3 100644 (file)
   Ia32/CpuFlushTlb.c | MSFT \r
 \r
   Ia32/CpuSleep.nasm| INTEL\r
-  Ia32/CpuSleep.asm | INTEL \r
   Ia32/CpuFlushTlb.nasm| INTEL\r
-  Ia32/CpuFlushTlb.asm | INTEL \r
 \r
   Ia32/CpuSleepGcc.c | GCC \r
   Ia32/CpuFlushTlbGcc.c | GCC \r
 \r
 [Sources.X64]\r
   X64/CpuFlushTlb.nasm\r
-  X64/CpuFlushTlb.asm \r
   X64/CpuSleep.nasm\r
-  X64/CpuSleep.asm\r
 \r
   X64/CpuSleep.nasm| GCC\r
   X64/CpuSleep.S | GCC \r
diff --git a/MdePkg/Library/BaseCpuLib/Ia32/CpuFlushTlb.asm b/MdePkg/Library/BaseCpuLib/Ia32/CpuFlushTlb.asm
deleted file mode 100644 (file)
index 271690d..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------ ;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CpuFlushTlb.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CpuFlushTlb function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; CpuFlushTlb (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-CpuFlushTlb PROC\r
-    mov     eax, cr3\r
-    mov     cr3, eax                    ; moving to CR3 flushes TLB\r
-    ret\r
-CpuFlushTlb ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseCpuLib/Ia32/CpuSleep.asm b/MdePkg/Library/BaseCpuLib/Ia32/CpuSleep.asm
deleted file mode 100644 (file)
index 5bfd7b2..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------ ;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CpuSleep.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CpuSleep function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; CpuSleep (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-CpuSleep    PROC\r
-    hlt\r
-    ret\r
-CpuSleep    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseCpuLib/X64/CpuFlushTlb.asm b/MdePkg/Library/BaseCpuLib/X64/CpuFlushTlb.asm
deleted file mode 100644 (file)
index 6a75287..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------ ;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CpuFlushTlb.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CpuFlushTlb function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; CpuFlushTlb (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-CpuFlushTlb PROC\r
-    mov     rax, cr3\r
-    mov     cr3, rax\r
-    ret\r
-CpuFlushTlb ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseCpuLib/X64/CpuSleep.asm b/MdePkg/Library/BaseCpuLib/X64/CpuSleep.asm
deleted file mode 100644 (file)
index 196438f..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-;------------------------------------------------------------------------------ ;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CpuSleep.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CpuSleep function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; CpuSleep (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-CpuSleep    PROC\r
-    hlt\r
-    ret\r
-CpuSleep    ENDP\r
-\r
-    END\r
index 8844b1ce4c2bb249c2bc7ce188ef6c86c42fd1e0..6c4d7ccfb7afa03acf5781b214c8c77e17e1905d 100644 (file)
@@ -6,7 +6,7 @@
 #  MMIO requests are forwarded directly to memory.  For EBC, I/O port requests\r
 #  ASSERT().\r
 #\r
-#  Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #  Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
 #  Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>\r
 #\r
@@ -44,7 +44,6 @@
   IoLibIcc.c    | INTEL\r
   IoLib.c\r
   Ia32/IoFifo.nasm\r
-  Ia32/IoFifo.asm\r
 \r
 [Sources.X64]\r
   IoLibGcc.c    | GCC\r
@@ -52,7 +51,6 @@
   IoLibIcc.c    | INTEL\r
   IoLib.c\r
   X64/IoFifo.nasm\r
-  X64/IoFifo.asm\r
 \r
 [Sources.EBC]\r
   IoLibEbc.c\r
diff --git a/MdePkg/Library/BaseIoLibIntrinsic/Ia32/IoFifo.asm b/MdePkg/Library/BaseIoLibIntrinsic/Ia32/IoFifo.asm
deleted file mode 100644 (file)
index da767d1..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
-; Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>\r
-;\r
-; This program and the accompanying materials are licensed and made available\r
-; under the terms and conditions of the BSD License which accompanies this\r
-; distribution.  The full text of the license may be found at\r
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586P\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID\r
-;  EFIAPI\r
-;  IoReadFifo8 (\r
-;    IN  UINTN                 Port,\r
-;    IN  UINTN                 Size,\r
-;    OUT VOID                  *Buffer\r
-;    );\r
-;------------------------------------------------------------------------------\r
-IoReadFifo8 PROC\r
-    push    edi\r
-    cld\r
-    mov     dx, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 16]\r
-rep insb\r
-    pop     edi\r
-    ret\r
-IoReadFifo8 ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID\r
-;  EFIAPI\r
-;  IoReadFifo16 (\r
-;    IN  UINTN                 Port,\r
-;    IN  UINTN                 Size,\r
-;    OUT VOID                  *Buffer\r
-;    );\r
-;------------------------------------------------------------------------------\r
-IoReadFifo16 PROC\r
-    push    edi\r
-    cld\r
-    mov     dx, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 16]\r
-rep insw\r
-    pop     edi\r
-    ret\r
-IoReadFifo16 ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID\r
-;  EFIAPI\r
-;  IoReadFifo32 (\r
-;    IN  UINTN                 Port,\r
-;    IN  UINTN                 Size,\r
-;    OUT VOID                  *Buffer\r
-;    );\r
-;------------------------------------------------------------------------------\r
-IoReadFifo32 PROC\r
-    push    edi\r
-    cld\r
-    mov     dx, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 16]\r
-rep insd\r
-    pop     edi\r
-    ret\r
-IoReadFifo32 ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID\r
-;  EFIAPI\r
-;  IoWriteFifo8 (\r
-;    IN UINTN                  Port,\r
-;    IN UINTN                  Size,\r
-;    IN VOID                   *Buffer\r
-;    );\r
-;------------------------------------------------------------------------------\r
-IoWriteFifo8 PROC\r
-    push    esi\r
-    cld\r
-    mov     dx, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    mov     esi, [esp + 16]\r
-rep outsb\r
-    pop     esi\r
-    ret\r
-IoWriteFifo8 ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID\r
-;  EFIAPI\r
-;  IoWriteFifo16 (\r
-;    IN UINTN                  Port,\r
-;    IN UINTN                  Size,\r
-;    IN VOID                   *Buffer\r
-;    );\r
-;------------------------------------------------------------------------------\r
-IoWriteFifo16 PROC\r
-    push    esi\r
-    cld\r
-    mov     dx, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    mov     esi, [esp + 16]\r
-rep outsw\r
-    pop     esi\r
-    ret\r
-IoWriteFifo16 ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID\r
-;  EFIAPI\r
-;  IoWriteFifo32 (\r
-;    IN UINTN                  Port,\r
-;    IN UINTN                  Size,\r
-;    IN VOID                   *Buffer\r
-;    );\r
-;------------------------------------------------------------------------------\r
-IoWriteFifo32 PROC\r
-    push    esi\r
-    cld\r
-    mov     dx, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    mov     esi, [esp + 16]\r
-rep outsd\r
-    pop     esi\r
-    ret\r
-IoWriteFifo32 ENDP\r
-\r
-    END\r
-\r
diff --git a/MdePkg/Library/BaseIoLibIntrinsic/X64/IoFifo.asm b/MdePkg/Library/BaseIoLibIntrinsic/X64/IoFifo.asm
deleted file mode 100644 (file)
index 87c6107..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
-; Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>\r
-;\r
-; This program and the accompanying materials are licensed and made available\r
-; under the terms and conditions of the BSD License which accompanies this\r
-; distribution.  The full text of the license may be found at\r
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID\r
-;  EFIAPI\r
-;  IoReadFifo8 (\r
-;    IN  UINTN                 Port,              // rcx\r
-;    IN  UINTN                 Size,              // rdx\r
-;    OUT VOID                  *Buffer            // r8\r
-;    );\r
-;------------------------------------------------------------------------------\r
-IoReadFifo8 PROC\r
-    cld\r
-    xchg    rcx, rdx\r
-    xchg    rdi, r8             ; rdi: buffer address; r8: save rdi\r
-rep insb\r
-    mov     rdi, r8             ; restore rdi\r
-    ret\r
-IoReadFifo8 ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID\r
-;  EFIAPI\r
-;  IoReadFifo16 (\r
-;    IN  UINTN                 Port,              // rcx\r
-;    IN  UINTN                 Size,              // rdx\r
-;    OUT VOID                  *Buffer            // r8\r
-;    );\r
-;------------------------------------------------------------------------------\r
-IoReadFifo16 PROC\r
-    cld\r
-    xchg    rcx, rdx\r
-    xchg    rdi, r8             ; rdi: buffer address; r8: save rdi\r
-rep insw\r
-    mov     rdi, r8             ; restore rdi\r
-    ret\r
-IoReadFifo16 ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID\r
-;  EFIAPI\r
-;  IoReadFifo32 (\r
-;    IN  UINTN                 Port,              // rcx\r
-;    IN  UINTN                 Size,              // rdx\r
-;    OUT VOID                  *Buffer            // r8\r
-;    );\r
-;------------------------------------------------------------------------------\r
-IoReadFifo32 PROC\r
-    cld\r
-    xchg    rcx, rdx\r
-    xchg    rdi, r8             ; rdi: buffer address; r8: save rdi\r
-rep insd\r
-    mov     rdi, r8             ; restore rdi\r
-    ret\r
-IoReadFifo32 ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID\r
-;  EFIAPI\r
-;  IoWriteFifo8 (\r
-;    IN UINTN                  Port,              // rcx\r
-;    IN UINTN                  Size,              // rdx\r
-;    IN VOID                   *Buffer            // r8\r
-;    );\r
-;------------------------------------------------------------------------------\r
-IoWriteFifo8 PROC\r
-    cld\r
-    xchg    rcx, rdx\r
-    xchg    rsi, r8             ; rsi: buffer address; r8: save rsi\r
-rep outsb\r
-    mov     rsi, r8             ; restore rsi\r
-    ret\r
-IoWriteFifo8 ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID\r
-;  EFIAPI\r
-;  IoWriteFifo16 (\r
-;    IN UINTN                  Port,              // rcx\r
-;    IN UINTN                  Size,              // rdx\r
-;    IN VOID                   *Buffer            // r8\r
-;    );\r
-;------------------------------------------------------------------------------\r
-IoWriteFifo16 PROC\r
-    cld\r
-    xchg    rcx, rdx\r
-    xchg    rsi, r8             ; rsi: buffer address; r8: save rsi\r
-rep outsw\r
-    mov     rsi, r8             ; restore rsi\r
-    ret\r
-IoWriteFifo16 ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID\r
-;  EFIAPI\r
-;  IoWriteFifo32 (\r
-;    IN UINTN                  Port,              // rcx\r
-;    IN UINTN                  Size,              // rdx\r
-;    IN VOID                   *Buffer            // r8\r
-;    );\r
-;------------------------------------------------------------------------------\r
-IoWriteFifo32 PROC\r
-    cld\r
-    xchg    rcx, rdx\r
-    xchg    rsi, r8             ; rsi: buffer address; r8: save rsi\r
-rep outsd\r
-    mov     rsi, r8             ; restore rsi\r
-    ret\r
-IoWriteFifo32 ENDP\r
-\r
-    END\r
-\r
index 5fbbd02a94b62e74ffe155c78a48bb2925e6c420..12e883cbb887f8c5ccaeef668cb0dc97411c6fb0 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 #  Base Library implementation.\r
 #\r
-#  Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #  Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
 #  Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>\r
 #\r
   Ia32/EnableInterrupts.c | MSFT \r
   Ia32/EnableDisableInterrupts.c | MSFT \r
   Ia32/DivU64x64Remainder.nasm| MSFT\r
-  Ia32/DivU64x64Remainder.asm | MSFT \r
   Ia32/DivU64x32Remainder.c | MSFT \r
   Ia32/DivU64x32.c | MSFT \r
   Ia32/DisablePaging32.c | MSFT \r
   Ia32/CpuBreakpoint.c | MSFT \r
   Ia32/ARShiftU64.c | MSFT \r
   Ia32/Thunk16.nasm | MSFT\r
-  Ia32/Thunk16.asm | MSFT\r
   Ia32/EnablePaging64.nasm| MSFT\r
-  Ia32/EnablePaging64.asm | MSFT\r
   Ia32/EnableCache.c | MSFT\r
   Ia32/DisableCache.c | MSFT\r
   Ia32/RdRand.nasm| MSFT\r
-  Ia32/RdRand.asm | MSFT\r
 \r
   Ia32/Wbinvd.nasm| INTEL\r
-  Ia32/Wbinvd.asm | INTEL \r
   Ia32/WriteMm7.nasm| INTEL\r
-  Ia32/WriteMm7.asm | INTEL \r
   Ia32/WriteMm6.nasm| INTEL\r
-  Ia32/WriteMm6.asm | INTEL \r
   Ia32/WriteMm5.nasm| INTEL\r
-  Ia32/WriteMm5.asm | INTEL \r
   Ia32/WriteMm4.nasm| INTEL\r
-  Ia32/WriteMm4.asm | INTEL \r
   Ia32/WriteMm3.nasm| INTEL\r
-  Ia32/WriteMm3.asm | INTEL \r
   Ia32/WriteMm2.nasm| INTEL\r
-  Ia32/WriteMm2.asm | INTEL \r
   Ia32/WriteMm1.nasm| INTEL\r
-  Ia32/WriteMm1.asm | INTEL \r
   Ia32/WriteMm0.nasm| INTEL\r
-  Ia32/WriteMm0.asm | INTEL \r
   Ia32/WriteLdtr.nasm| INTEL\r
-  Ia32/WriteLdtr.asm | INTEL \r
   Ia32/WriteIdtr.nasm| INTEL\r
-  Ia32/WriteIdtr.asm | INTEL \r
   Ia32/WriteGdtr.nasm| INTEL\r
-  Ia32/WriteGdtr.asm | INTEL \r
   Ia32/WriteDr7.nasm| INTEL\r
-  Ia32/WriteDr7.asm | INTEL \r
   Ia32/WriteDr6.nasm| INTEL\r
-  Ia32/WriteDr6.asm | INTEL \r
   Ia32/WriteDr5.nasm| INTEL\r
-  Ia32/WriteDr5.asm | INTEL \r
   Ia32/WriteDr4.nasm| INTEL\r
-  Ia32/WriteDr4.asm | INTEL \r
   Ia32/WriteDr3.nasm| INTEL\r
-  Ia32/WriteDr3.asm | INTEL \r
   Ia32/WriteDr2.nasm| INTEL\r
-  Ia32/WriteDr2.asm | INTEL \r
   Ia32/WriteDr1.nasm| INTEL\r
-  Ia32/WriteDr1.asm | INTEL \r
   Ia32/WriteDr0.nasm| INTEL\r
-  Ia32/WriteDr0.asm | INTEL \r
   Ia32/WriteCr4.nasm| INTEL\r
-  Ia32/WriteCr4.asm | INTEL \r
   Ia32/WriteCr3.nasm| INTEL\r
-  Ia32/WriteCr3.asm | INTEL \r
   Ia32/WriteCr2.nasm| INTEL\r
-  Ia32/WriteCr2.asm | INTEL \r
   Ia32/WriteCr0.nasm| INTEL\r
-  Ia32/WriteCr0.asm | INTEL \r
   Ia32/WriteMsr64.nasm| INTEL\r
-  Ia32/WriteMsr64.asm | INTEL \r
   Ia32/SwapBytes64.nasm| INTEL\r
-  Ia32/SwapBytes64.asm | INTEL \r
   Ia32/SetJump.nasm| INTEL\r
-  Ia32/SetJump.asm | INTEL \r
   Ia32/RRotU64.nasm| INTEL\r
-  Ia32/RRotU64.asm | INTEL \r
   Ia32/RShiftU64.nasm| INTEL\r
-  Ia32/RShiftU64.asm | INTEL \r
   Ia32/ReadPmc.nasm| INTEL\r
-  Ia32/ReadPmc.asm | INTEL \r
   Ia32/ReadTsc.nasm| INTEL\r
-  Ia32/ReadTsc.asm | INTEL \r
   Ia32/ReadLdtr.nasm| INTEL\r
-  Ia32/ReadLdtr.asm | INTEL \r
   Ia32/ReadIdtr.nasm| INTEL\r
-  Ia32/ReadIdtr.asm | INTEL \r
   Ia32/ReadGdtr.nasm| INTEL\r
-  Ia32/ReadGdtr.asm | INTEL \r
   Ia32/ReadTr.nasm| INTEL\r
-  Ia32/ReadTr.asm | INTEL \r
   Ia32/ReadSs.nasm| INTEL\r
-  Ia32/ReadSs.asm | INTEL \r
   Ia32/ReadGs.nasm| INTEL\r
-  Ia32/ReadGs.asm | INTEL \r
   Ia32/ReadFs.nasm| INTEL\r
-  Ia32/ReadFs.asm | INTEL \r
   Ia32/ReadEs.nasm| INTEL\r
-  Ia32/ReadEs.asm | INTEL \r
   Ia32/ReadDs.nasm| INTEL\r
-  Ia32/ReadDs.asm | INTEL \r
   Ia32/ReadCs.nasm| INTEL\r
-  Ia32/ReadCs.asm | INTEL \r
   Ia32/ReadMsr64.nasm| INTEL\r
-  Ia32/ReadMsr64.asm | INTEL \r
   Ia32/ReadMm7.nasm| INTEL\r
-  Ia32/ReadMm7.asm | INTEL \r
   Ia32/ReadMm6.nasm| INTEL\r
-  Ia32/ReadMm6.asm | INTEL \r
   Ia32/ReadMm5.nasm| INTEL\r
-  Ia32/ReadMm5.asm | INTEL \r
   Ia32/ReadMm4.nasm| INTEL\r
-  Ia32/ReadMm4.asm | INTEL \r
   Ia32/ReadMm3.nasm| INTEL\r
-  Ia32/ReadMm3.asm | INTEL \r
   Ia32/ReadMm2.nasm| INTEL\r
-  Ia32/ReadMm2.asm | INTEL \r
   Ia32/ReadMm1.nasm| INTEL\r
-  Ia32/ReadMm1.asm | INTEL \r
   Ia32/ReadMm0.nasm| INTEL\r
-  Ia32/ReadMm0.asm | INTEL \r
   Ia32/ReadEflags.nasm| INTEL\r
-  Ia32/ReadEflags.asm | INTEL \r
   Ia32/ReadDr7.nasm| INTEL\r
-  Ia32/ReadDr7.asm | INTEL \r
   Ia32/ReadDr6.nasm| INTEL\r
-  Ia32/ReadDr6.asm | INTEL \r
   Ia32/ReadDr5.nasm| INTEL\r
-  Ia32/ReadDr5.asm | INTEL \r
   Ia32/ReadDr4.nasm| INTEL\r
-  Ia32/ReadDr4.asm | INTEL \r
   Ia32/ReadDr3.nasm| INTEL\r
-  Ia32/ReadDr3.asm | INTEL \r
   Ia32/ReadDr2.nasm| INTEL\r
-  Ia32/ReadDr2.asm | INTEL \r
   Ia32/ReadDr1.nasm| INTEL\r
-  Ia32/ReadDr1.asm | INTEL \r
   Ia32/ReadDr0.nasm| INTEL\r
-  Ia32/ReadDr0.asm | INTEL \r
   Ia32/ReadCr4.nasm| INTEL\r
-  Ia32/ReadCr4.asm | INTEL \r
   Ia32/ReadCr3.nasm| INTEL\r
-  Ia32/ReadCr3.asm | INTEL \r
   Ia32/ReadCr2.nasm| INTEL\r
-  Ia32/ReadCr2.asm | INTEL \r
   Ia32/ReadCr0.nasm| INTEL\r
-  Ia32/ReadCr0.asm | INTEL \r
   Ia32/Mwait.nasm| INTEL\r
-  Ia32/Mwait.asm | INTEL \r
   Ia32/Monitor.nasm| INTEL\r
-  Ia32/Monitor.asm | INTEL \r
   Ia32/ModU64x32.nasm| INTEL\r
-  Ia32/ModU64x32.asm | INTEL \r
   Ia32/MultU64x64.nasm| INTEL\r
-  Ia32/MultU64x64.asm | INTEL \r
   Ia32/MultU64x32.nasm| INTEL\r
-  Ia32/MultU64x32.asm | INTEL \r
   Ia32/LShiftU64.nasm| INTEL\r
-  Ia32/LShiftU64.asm | INTEL \r
   Ia32/LRotU64.nasm| INTEL\r
-  Ia32/LRotU64.asm | INTEL \r
   Ia32/LongJump.nasm| INTEL\r
-  Ia32/LongJump.asm | INTEL \r
   Ia32/Invd.nasm| INTEL\r
-  Ia32/Invd.asm | INTEL \r
   Ia32/FxRestore.nasm| INTEL\r
-  Ia32/FxRestore.asm | INTEL \r
   Ia32/FxSave.nasm| INTEL\r
-  Ia32/FxSave.asm | INTEL \r
   Ia32/FlushCacheLine.nasm| INTEL\r
-  Ia32/FlushCacheLine.asm | INTEL \r
   Ia32/EnablePaging32.nasm| INTEL\r
-  Ia32/EnablePaging32.asm | INTEL \r
   Ia32/EnableInterrupts.nasm| INTEL\r
-  Ia32/EnableInterrupts.asm | INTEL \r
   Ia32/EnableDisableInterrupts.nasm| INTEL\r
-  Ia32/EnableDisableInterrupts.asm | INTEL \r
   Ia32/DivU64x64Remainder.nasm| INTEL\r
-  Ia32/DivU64x64Remainder.asm | INTEL \r
   Ia32/DivU64x32Remainder.nasm| INTEL\r
-  Ia32/DivU64x32Remainder.asm | INTEL \r
   Ia32/DivU64x32.nasm| INTEL\r
-  Ia32/DivU64x32.asm | INTEL \r
   Ia32/DisablePaging32.nasm| INTEL\r
-  Ia32/DisablePaging32.asm | INTEL\r
   Ia32/DisableInterrupts.nasm| INTEL\r
-  Ia32/DisableInterrupts.asm | INTEL \r
   Ia32/CpuPause.nasm| INTEL\r
-  Ia32/CpuPause.asm | INTEL \r
   Ia32/CpuIdEx.nasm| INTEL\r
-  Ia32/CpuIdEx.asm | INTEL \r
   Ia32/CpuId.nasm| INTEL\r
-  Ia32/CpuId.asm | INTEL \r
   Ia32/CpuBreakpoint.nasm| INTEL\r
-  Ia32/CpuBreakpoint.asm | INTEL \r
   Ia32/ARShiftU64.nasm| INTEL\r
-  Ia32/ARShiftU64.asm | INTEL \r
   Ia32/Thunk16.nasm | INTEL\r
-  Ia32/Thunk16.asm | INTEL\r
   Ia32/EnablePaging64.nasm| INTEL\r
-  Ia32/EnablePaging64.asm | INTEL\r
   Ia32/EnableCache.nasm| INTEL\r
-  Ia32/EnableCache.asm | INTEL\r
   Ia32/DisableCache.nasm| INTEL\r
-  Ia32/DisableCache.asm | INTEL\r
   Ia32/RdRand.nasm| INTEL\r
-  Ia32/RdRand.asm | INTEL\r
 \r
   Ia32/GccInline.c | GCC\r
   Ia32/Thunk16.nasm | GCC \r
 \r
 [Sources.X64]\r
   X64/Thunk16.nasm\r
-  X64/Thunk16.asm\r
   X64/CpuIdEx.nasm\r
-  X64/CpuIdEx.asm\r
   X64/CpuId.nasm\r
-  X64/CpuId.asm\r
   X64/LongJump.nasm\r
-  X64/LongJump.asm\r
   X64/SetJump.nasm\r
-  X64/SetJump.asm\r
   X64/SwitchStack.nasm\r
-  X64/SwitchStack.asm\r
   X64/EnableCache.nasm\r
-  X64/EnableCache.asm\r
   X64/DisableCache.nasm\r
-  X64/DisableCache.asm\r
   X64/WriteTr.nasm\r
 \r
   X64/CpuBreakpoint.c | MSFT \r
   X64/WriteMsr64.c | MSFT \r
   X64/ReadMsr64.c | MSFT \r
   X64/RdRand.nasm| MSFT\r
-  X64/RdRand.asm | MSFT\r
   X64/CpuPause.nasm| MSFT\r
-  X64/CpuPause.asm | MSFT\r
   X64/EnableDisableInterrupts.nasm| MSFT\r
-  X64/EnableDisableInterrupts.asm | MSFT\r
   X64/DisableInterrupts.nasm| MSFT\r
-  X64/DisableInterrupts.asm | MSFT\r
   X64/EnableInterrupts.nasm| MSFT\r
-  X64/EnableInterrupts.asm | MSFT\r
   X64/FlushCacheLine.nasm| MSFT\r
-  X64/FlushCacheLine.asm | MSFT\r
   X64/Invd.nasm| MSFT\r
-  X64/Invd.asm | MSFT\r
   X64/Wbinvd.nasm| MSFT\r
-  X64/Wbinvd.asm | MSFT\r
   X64/DisablePaging64.nasm| MSFT\r
-  X64/DisablePaging64.asm | MSFT\r
   X64/Mwait.nasm| MSFT\r
-  X64/Mwait.asm | MSFT\r
   X64/Monitor.nasm| MSFT\r
-  X64/Monitor.asm | MSFT\r
   X64/ReadPmc.nasm| MSFT\r
-  X64/ReadPmc.asm | MSFT\r
   X64/ReadTsc.nasm| MSFT\r
-  X64/ReadTsc.asm | MSFT\r
   X64/WriteMm7.nasm| MSFT\r
-  X64/WriteMm7.asm | MSFT\r
   X64/WriteMm6.nasm| MSFT\r
-  X64/WriteMm6.asm | MSFT\r
   X64/WriteMm5.nasm| MSFT\r
-  X64/WriteMm5.asm | MSFT\r
   X64/WriteMm4.nasm| MSFT\r
-  X64/WriteMm4.asm | MSFT\r
   X64/WriteMm3.nasm| MSFT\r
-  X64/WriteMm3.asm | MSFT\r
   X64/WriteMm2.nasm| MSFT\r
-  X64/WriteMm2.asm | MSFT\r
   X64/WriteMm1.nasm| MSFT\r
-  X64/WriteMm1.asm | MSFT\r
   X64/WriteMm0.nasm| MSFT\r
-  X64/WriteMm0.asm | MSFT\r
   X64/ReadMm7.nasm| MSFT\r
-  X64/ReadMm7.asm | MSFT\r
   X64/ReadMm6.nasm| MSFT\r
-  X64/ReadMm6.asm | MSFT\r
   X64/ReadMm5.nasm| MSFT\r
-  X64/ReadMm5.asm | MSFT\r
   X64/ReadMm4.nasm| MSFT\r
-  X64/ReadMm4.asm | MSFT\r
   X64/ReadMm3.nasm| MSFT\r
-  X64/ReadMm3.asm | MSFT\r
   X64/ReadMm2.nasm| MSFT\r
-  X64/ReadMm2.asm | MSFT\r
   X64/ReadMm1.nasm| MSFT\r
-  X64/ReadMm1.asm | MSFT\r
   X64/ReadMm0.nasm| MSFT\r
-  X64/ReadMm0.asm | MSFT\r
   X64/FxRestore.nasm| MSFT\r
-  X64/FxRestore.asm | MSFT\r
   X64/FxSave.nasm| MSFT\r
-  X64/FxSave.asm | MSFT\r
   X64/WriteLdtr.nasm| MSFT\r
-  X64/WriteLdtr.asm | MSFT\r
   X64/ReadLdtr.nasm| MSFT\r
-  X64/ReadLdtr.asm | MSFT\r
   X64/WriteIdtr.nasm| MSFT\r
-  X64/WriteIdtr.asm | MSFT\r
   X64/ReadIdtr.nasm| MSFT\r
-  X64/ReadIdtr.asm | MSFT\r
   X64/WriteGdtr.nasm| MSFT\r
-  X64/WriteGdtr.asm | MSFT\r
   X64/ReadGdtr.nasm| MSFT\r
-  X64/ReadGdtr.asm | MSFT\r
   X64/ReadTr.nasm| MSFT\r
-  X64/ReadTr.asm | MSFT\r
   X64/ReadSs.nasm| MSFT\r
-  X64/ReadSs.asm | MSFT\r
   X64/ReadGs.nasm| MSFT\r
-  X64/ReadGs.asm | MSFT\r
   X64/ReadFs.nasm| MSFT\r
-  X64/ReadFs.asm | MSFT\r
   X64/ReadEs.nasm| MSFT\r
-  X64/ReadEs.asm | MSFT\r
   X64/ReadDs.nasm| MSFT\r
-  X64/ReadDs.asm | MSFT\r
   X64/ReadCs.nasm| MSFT\r
-  X64/ReadCs.asm | MSFT\r
   X64/WriteDr7.nasm| MSFT\r
-  X64/WriteDr7.asm | MSFT\r
   X64/WriteDr6.nasm| MSFT\r
-  X64/WriteDr6.asm | MSFT\r
   X64/WriteDr5.nasm| MSFT\r
-  X64/WriteDr5.asm | MSFT\r
   X64/WriteDr4.nasm| MSFT\r
-  X64/WriteDr4.asm | MSFT\r
   X64/WriteDr3.nasm| MSFT\r
-  X64/WriteDr3.asm | MSFT\r
   X64/WriteDr2.nasm| MSFT\r
-  X64/WriteDr2.asm | MSFT\r
   X64/WriteDr1.nasm| MSFT\r
-  X64/WriteDr1.asm | MSFT\r
   X64/WriteDr0.nasm| MSFT\r
-  X64/WriteDr0.asm | MSFT\r
   X64/ReadDr7.nasm| MSFT\r
-  X64/ReadDr7.asm | MSFT\r
   X64/ReadDr6.nasm| MSFT\r
-  X64/ReadDr6.asm | MSFT\r
   X64/ReadDr5.nasm| MSFT\r
-  X64/ReadDr5.asm | MSFT\r
   X64/ReadDr4.nasm| MSFT\r
-  X64/ReadDr4.asm | MSFT\r
   X64/ReadDr3.nasm| MSFT\r
-  X64/ReadDr3.asm | MSFT\r
   X64/ReadDr2.nasm| MSFT\r
-  X64/ReadDr2.asm | MSFT\r
   X64/ReadDr1.nasm| MSFT\r
-  X64/ReadDr1.asm | MSFT\r
   X64/ReadDr0.nasm| MSFT\r
-  X64/ReadDr0.asm | MSFT\r
   X64/WriteCr4.nasm| MSFT\r
-  X64/WriteCr4.asm | MSFT\r
   X64/WriteCr3.nasm| MSFT\r
-  X64/WriteCr3.asm | MSFT\r
   X64/WriteCr2.nasm| MSFT\r
-  X64/WriteCr2.asm | MSFT\r
   X64/WriteCr0.nasm| MSFT\r
-  X64/WriteCr0.asm | MSFT\r
   X64/ReadCr4.nasm| MSFT\r
-  X64/ReadCr4.asm | MSFT\r
   X64/ReadCr3.nasm| MSFT\r
-  X64/ReadCr3.asm | MSFT\r
   X64/ReadCr2.nasm| MSFT\r
-  X64/ReadCr2.asm | MSFT\r
   X64/ReadCr0.nasm| MSFT\r
-  X64/ReadCr0.asm | MSFT\r
   X64/ReadEflags.nasm| MSFT\r
-  X64/ReadEflags.asm | MSFT\r
 \r
   X64/CpuBreakpoint.nasm| INTEL\r
-  X64/CpuBreakpoint.asm | INTEL \r
   X64/WriteMsr64.nasm| INTEL\r
-  X64/WriteMsr64.asm | INTEL \r
   X64/ReadMsr64.nasm| INTEL\r
-  X64/ReadMsr64.asm | INTEL \r
   X64/RdRand.nasm| INTEL\r
-  X64/RdRand.asm | INTEL\r
   X64/CpuPause.nasm| INTEL\r
-  X64/CpuPause.asm | INTEL\r
   X64/EnableDisableInterrupts.nasm| INTEL\r
-  X64/EnableDisableInterrupts.asm | INTEL\r
   X64/DisableInterrupts.nasm| INTEL\r
-  X64/DisableInterrupts.asm | INTEL\r
   X64/EnableInterrupts.nasm| INTEL\r
-  X64/EnableInterrupts.asm | INTEL\r
   X64/FlushCacheLine.nasm| INTEL\r
-  X64/FlushCacheLine.asm | INTEL\r
   X64/Invd.nasm| INTEL\r
-  X64/Invd.asm | INTEL\r
   X64/Wbinvd.nasm| INTEL\r
-  X64/Wbinvd.asm | INTEL\r
   X64/DisablePaging64.nasm| INTEL\r
-  X64/DisablePaging64.asm | INTEL\r
   X64/Mwait.nasm| INTEL\r
-  X64/Mwait.asm | INTEL\r
   X64/Monitor.nasm| INTEL\r
-  X64/Monitor.asm | INTEL\r
   X64/ReadPmc.nasm| INTEL\r
-  X64/ReadPmc.asm | INTEL\r
   X64/ReadTsc.nasm| INTEL\r
-  X64/ReadTsc.asm | INTEL\r
   X64/WriteMm7.nasm| INTEL\r
-  X64/WriteMm7.asm | INTEL\r
   X64/WriteMm6.nasm| INTEL\r
-  X64/WriteMm6.asm | INTEL\r
   X64/WriteMm5.nasm| INTEL\r
-  X64/WriteMm5.asm | INTEL\r
   X64/WriteMm4.nasm| INTEL\r
-  X64/WriteMm4.asm | INTEL\r
   X64/WriteMm3.nasm| INTEL\r
-  X64/WriteMm3.asm | INTEL\r
   X64/WriteMm2.nasm| INTEL\r
-  X64/WriteMm2.asm | INTEL\r
   X64/WriteMm1.nasm| INTEL\r
-  X64/WriteMm1.asm | INTEL\r
   X64/WriteMm0.nasm| INTEL\r
-  X64/WriteMm0.asm | INTEL\r
   X64/ReadMm7.nasm| INTEL\r
-  X64/ReadMm7.asm | INTEL\r
   X64/ReadMm6.nasm| INTEL\r
-  X64/ReadMm6.asm | INTEL\r
   X64/ReadMm5.nasm| INTEL\r
-  X64/ReadMm5.asm | INTEL\r
   X64/ReadMm4.nasm| INTEL\r
-  X64/ReadMm4.asm | INTEL\r
   X64/ReadMm3.nasm| INTEL\r
-  X64/ReadMm3.asm | INTEL\r
   X64/ReadMm2.nasm| INTEL\r
-  X64/ReadMm2.asm | INTEL\r
   X64/ReadMm1.nasm| INTEL\r
-  X64/ReadMm1.asm | INTEL\r
   X64/ReadMm0.nasm| INTEL\r
-  X64/ReadMm0.asm | INTEL\r
   X64/FxRestore.nasm| INTEL\r
-  X64/FxRestore.asm | INTEL\r
   X64/FxSave.nasm| INTEL\r
-  X64/FxSave.asm | INTEL\r
   X64/WriteLdtr.nasm| INTEL\r
-  X64/WriteLdtr.asm | INTEL\r
   X64/ReadLdtr.nasm| INTEL\r
-  X64/ReadLdtr.asm | INTEL\r
   X64/WriteIdtr.nasm| INTEL\r
-  X64/WriteIdtr.asm | INTEL\r
   X64/ReadIdtr.nasm| INTEL\r
-  X64/ReadIdtr.asm | INTEL\r
   X64/WriteGdtr.nasm| INTEL\r
-  X64/WriteGdtr.asm | INTEL\r
   X64/ReadGdtr.nasm| INTEL\r
-  X64/ReadGdtr.asm | INTEL\r
   X64/ReadTr.nasm| INTEL\r
-  X64/ReadTr.asm | INTEL\r
   X64/ReadSs.nasm| INTEL\r
-  X64/ReadSs.asm | INTEL\r
   X64/ReadGs.nasm| INTEL\r
-  X64/ReadGs.asm | INTEL\r
   X64/ReadFs.nasm| INTEL\r
-  X64/ReadFs.asm | INTEL\r
   X64/ReadEs.nasm| INTEL\r
-  X64/ReadEs.asm | INTEL\r
   X64/ReadDs.nasm| INTEL\r
-  X64/ReadDs.asm | INTEL\r
   X64/ReadCs.nasm| INTEL\r
-  X64/ReadCs.asm | INTEL\r
   X64/WriteDr7.nasm| INTEL\r
-  X64/WriteDr7.asm | INTEL\r
   X64/WriteDr6.nasm| INTEL\r
-  X64/WriteDr6.asm | INTEL\r
   X64/WriteDr5.nasm| INTEL\r
-  X64/WriteDr5.asm | INTEL\r
   X64/WriteDr4.nasm| INTEL\r
-  X64/WriteDr4.asm | INTEL\r
   X64/WriteDr3.nasm| INTEL\r
-  X64/WriteDr3.asm | INTEL\r
   X64/WriteDr2.nasm| INTEL\r
-  X64/WriteDr2.asm | INTEL\r
   X64/WriteDr1.nasm| INTEL\r
-  X64/WriteDr1.asm | INTEL\r
   X64/WriteDr0.nasm| INTEL\r
-  X64/WriteDr0.asm | INTEL\r
   X64/ReadDr7.nasm| INTEL\r
-  X64/ReadDr7.asm | INTEL\r
   X64/ReadDr6.nasm| INTEL\r
-  X64/ReadDr6.asm | INTEL\r
   X64/ReadDr5.nasm| INTEL\r
-  X64/ReadDr5.asm | INTEL\r
   X64/ReadDr4.nasm| INTEL\r
-  X64/ReadDr4.asm | INTEL\r
   X64/ReadDr3.nasm| INTEL\r
-  X64/ReadDr3.asm | INTEL\r
   X64/ReadDr2.nasm| INTEL\r
-  X64/ReadDr2.asm | INTEL\r
   X64/ReadDr1.nasm| INTEL\r
-  X64/ReadDr1.asm | INTEL\r
   X64/ReadDr0.nasm| INTEL\r
-  X64/ReadDr0.asm | INTEL\r
   X64/WriteCr4.nasm| INTEL\r
-  X64/WriteCr4.asm | INTEL\r
   X64/WriteCr3.nasm| INTEL\r
-  X64/WriteCr3.asm | INTEL\r
   X64/WriteCr2.nasm| INTEL\r
-  X64/WriteCr2.asm | INTEL\r
   X64/WriteCr0.nasm| INTEL\r
-  X64/WriteCr0.asm | INTEL\r
   X64/ReadCr4.nasm| INTEL\r
-  X64/ReadCr4.asm | INTEL\r
   X64/ReadCr3.nasm| INTEL\r
-  X64/ReadCr3.asm | INTEL\r
   X64/ReadCr2.nasm| INTEL\r
-  X64/ReadCr2.asm | INTEL\r
   X64/ReadCr0.nasm| INTEL\r
-  X64/ReadCr0.asm | INTEL\r
   X64/ReadEflags.nasm| INTEL\r
-  X64/ReadEflags.asm | INTEL\r
 \r
   X64/Non-existing.c\r
   Math64.c\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ARShiftU64.asm b/MdePkg/Library/BaseLib/Ia32/ARShiftU64.asm
deleted file mode 100644 (file)
index 10f04c3..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2015, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ARShiftU64.asm\r
-;\r
-; Abstract:\r
-;\r
-;   64-bit arithmetic right shift function for IA-32\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; InternalMathARShiftU64 (\r
-;   IN      UINT64                    Operand,\r
-;   IN      UINTN                     Count\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMathARShiftU64  PROC\r
-    mov     cl, [esp + 12]\r
-    mov     eax, [esp + 8]\r
-    cdq\r
-    test    cl, 32\r
-    jnz     @F\r
-    mov     edx, eax\r
-    mov     eax, [esp + 4]\r
-@@:    \r
-    shrd    eax, edx, cl\r
-    sar     edx, cl\r
-    ret\r
-InternalMathARShiftU64  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.asm b/MdePkg/Library/BaseLib/Ia32/CpuBreakpoint.asm
deleted file mode 100644 (file)
index ab7c2cf..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------ ;\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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CpuBreakpoint.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CpuBreakpoint function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat\r
-    .xmm\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; CpuBreakpoint (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-CpuBreakpoint   PROC\r
-    int  3\r
-    ret\r
-CpuBreakpoint   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/CpuId.asm b/MdePkg/Library/BaseLib/Ia32/CpuId.asm
deleted file mode 100644 (file)
index a1a01c0..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CpuId.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmCpuid function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586P\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID\r
-;  EFIAPI\r
-;  AsmCpuid (\r
-;    IN   UINT32  RegisterInEax,\r
-;    OUT  UINT32  *RegisterOutEax  OPTIONAL,\r
-;    OUT  UINT32  *RegisterOutEbx  OPTIONAL,\r
-;    OUT  UINT32  *RegisterOutEcx  OPTIONAL,\r
-;    OUT  UINT32  *RegisterOutEdx  OPTIONAL\r
-;    );\r
-;------------------------------------------------------------------------------\r
-AsmCpuid    PROC    USES    ebx\r
-    push    ebp\r
-    mov     ebp, esp\r
-    mov     eax, [ebp + 12]\r
-    cpuid\r
-    push    ecx\r
-    mov     ecx, [ebp + 16]\r
-    jecxz   @F\r
-    mov     [ecx], eax\r
-@@:\r
-    mov     ecx, [ebp + 20]\r
-    jecxz   @F\r
-    mov     [ecx], ebx\r
-@@:\r
-    mov     ecx, [ebp + 24]\r
-    jecxz   @F\r
-    pop     DWORD [ecx]\r
-@@:\r
-    mov     ecx, [ebp + 28]\r
-    jecxz   @F\r
-    mov     [ecx], edx\r
-@@:\r
-    mov     eax, [ebp + 12]\r
-    leave\r
-    ret\r
-AsmCpuid    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/CpuIdEx.asm b/MdePkg/Library/BaseLib/Ia32/CpuIdEx.asm
deleted file mode 100644 (file)
index 9cca11b..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2013, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CpuIdEx.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmCpuidEx function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  UINT32\r
-;  EFIAPI\r
-;  AsmCpuidEx (\r
-;    IN   UINT32  RegisterInEax,\r
-;    IN   UINT32  RegisterInEcx,\r
-;    OUT  UINT32  *RegisterOutEax  OPTIONAL,\r
-;    OUT  UINT32  *RegisterOutEbx  OPTIONAL,\r
-;    OUT  UINT32  *RegisterOutEcx  OPTIONAL,\r
-;    OUT  UINT32  *RegisterOutEdx  OPTIONAL\r
-;    )\r
-;------------------------------------------------------------------------------\r
-AsmCpuidEx  PROC    USES    ebx\r
-    push    ebp\r
-    mov     ebp, esp\r
-    mov     eax, [ebp + 12]\r
-    mov     ecx, [ebp + 16]\r
-    cpuid\r
-    push    ecx\r
-    mov     ecx, [ebp + 20]\r
-    jecxz   @F\r
-    mov     [ecx], eax\r
-@@:\r
-    mov     ecx, [ebp + 24]\r
-    jecxz   @F\r
-    mov     [ecx], ebx\r
-@@:\r
-    mov     ecx, [ebp + 32]\r
-    jecxz   @F\r
-    mov     [ecx], edx\r
-@@:\r
-    mov     ecx, [ebp + 28]\r
-    jecxz   @F\r
-    pop     DWORD [ecx]\r
-@@:\r
-    mov     eax, [ebp + 12]\r
-    leave\r
-    ret\r
-AsmCpuidEx  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/CpuPause.asm b/MdePkg/Library/BaseLib/Ia32/CpuPause.asm
deleted file mode 100644 (file)
index 7a5aef5..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------ ;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CpuPause.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CpuPause function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .xmm\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; CpuPause (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-CpuPause    PROC\r
-    pause\r
-    ret\r
-CpuPause    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/DisableCache.asm b/MdePkg/Library/BaseLib/Ia32/DisableCache.asm
deleted file mode 100644 (file)
index 1d1c9e0..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   DisableCache.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   Set the CD bit of CR0 to 1, clear the NW bit of CR0 to 0, and flush all caches with a\r
-;   WBINVD instruction.\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .486p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmDisableCache (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmDisableCache PROC\r
-    mov     eax, cr0\r
-    bts     eax, 30\r
-    btr     eax, 29\r
-    mov     cr0, eax\r
-    wbinvd\r
-    ret\r
-AsmDisableCache ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/DisableInterrupts.asm b/MdePkg/Library/BaseLib/Ia32/DisableInterrupts.asm
deleted file mode 100644 (file)
index 823d0dd..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   DisableInterrupts.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   DisableInterrupts function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; DisableInterrupts (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-DisableInterrupts   PROC\r
-    cli\r
-    ret\r
-DisableInterrupts   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/DisablePaging32.asm b/MdePkg/Library/BaseLib/Ia32/DisablePaging32.asm
deleted file mode 100644 (file)
index 5a3887e..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   DisablePaging32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmDisablePaging32 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86DisablePaging32 (\r
-;   IN      SWITCH_STACK_ENTRY_POINT  EntryPoint,\r
-;   IN      VOID                      *Context1,    OPTIONAL\r
-;   IN      VOID                      *Context2,    OPTIONAL\r
-;   IN      VOID                      *NewStack\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86DisablePaging32    PROC\r
-    mov     ebx, [esp + 4]\r
-    mov     ecx, [esp + 8]\r
-    mov     edx, [esp + 12]\r
-    pushfd\r
-    pop     edi                         ; save EFLAGS to edi\r
-    cli\r
-    mov     eax, cr0\r
-    btr     eax, 31\r
-    mov     esp, [esp + 16]\r
-    mov     cr0, eax\r
-    push    edi\r
-    popfd                               ; restore EFLAGS from edi\r
-    push    edx\r
-    push    ecx\r
-    call    ebx\r
-    jmp     $                           ; EntryPoint() should not return\r
-InternalX86DisablePaging32    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/DivU64x32.asm b/MdePkg/Library/BaseLib/Ia32/DivU64x32.asm
deleted file mode 100644 (file)
index b479383..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   DivU64x32.asm\r
-;\r
-; Abstract:\r
-;\r
-;   Calculate the quotient of a 64-bit integer by a 32-bit integer\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; InternalMathDivU64x32 (\r
-;   IN      UINT64                    Dividend,\r
-;   IN      UINT32                    Divisor\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMathDivU64x32   PROC\r
-    mov     eax, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    xor     edx, edx\r
-    div     ecx\r
-    push    eax                     ; save quotient on stack\r
-    mov     eax, [esp + 8]\r
-    div     ecx\r
-    pop     edx                     ; restore high-order dword of the quotient\r
-    ret\r
-InternalMathDivU64x32   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/DivU64x32Remainder.asm b/MdePkg/Library/BaseLib/Ia32/DivU64x32Remainder.asm
deleted file mode 100644 (file)
index 30b0417..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   DivError.asm\r
-;\r
-; Abstract:\r
-;\r
-;   Set error flag for all division functions\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; InternalMathDivRemU64x32 (\r
-;   IN      UINT64                    Dividend,\r
-;   IN      UINT32                    Divisor,\r
-;   OUT     UINT32                    *Remainder\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMathDivRemU64x32    PROC\r
-    mov     ecx, [esp + 12]         ; ecx <- divisor\r
-    mov     eax, [esp + 8]          ; eax <- dividend[32..63]\r
-    xor     edx, edx\r
-    div     ecx                     ; eax <- quotient[32..63], edx <- remainder\r
-    push    eax\r
-    mov     eax, [esp + 8]          ; eax <- dividend[0..31]\r
-    div     ecx                     ; eax <- quotient[0..31]\r
-    mov     ecx, [esp + 20]         ; ecx <- Remainder\r
-    jecxz   @F                      ; abandon remainder if Remainder == NULL\r
-    mov     [ecx], edx\r
-@@:\r
-    pop     edx                     ; edx <- quotient[32..63]\r
-    ret\r
-InternalMathDivRemU64x32    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/DivU64x64Remainder.asm b/MdePkg/Library/BaseLib/Ia32/DivU64x64Remainder.asm
deleted file mode 100644 (file)
index 44e2271..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   DivU64x64Remainder.asm\r
-;\r
-; Abstract:\r
-;\r
-;   Calculate the quotient of a 64-bit integer by a 64-bit integer and returns\r
-;   both the quotient and the remainder\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-EXTERN  InternalMathDivRemU64x32:PROC\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; InternalMathDivRemU64x64 (\r
-;   IN      UINT64                    Dividend,\r
-;   IN      UINT64                    Divisor,\r
-;   OUT     UINT64                    *Remainder    OPTIONAL\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMathDivRemU64x64    PROC\r
-    mov     ecx, [esp + 16]             ; ecx <- divisor[32..63]\r
-    test    ecx, ecx\r
-    jnz     _@DivRemU64x64              ; call _@DivRemU64x64 if Divisor > 2^32\r
-    mov     ecx, [esp + 20]\r
-    jecxz   @F\r
-    and     dword ptr [ecx + 4], 0      ; zero high dword of remainder\r
-    mov     [esp + 16], ecx             ; set up stack frame to match DivRemU64x32\r
-@@:\r
-    jmp     InternalMathDivRemU64x32\r
-InternalMathDivRemU64x64    ENDP\r
-\r
-_@DivRemU64x64  PROC PRIVATE    USES    ebx esi edi\r
-    mov     edx, dword ptr [esp + 20]\r
-    mov     eax, dword ptr [esp + 16]   ; edx:eax <- dividend\r
-    mov     edi, edx\r
-    mov     esi, eax                    ; edi:esi <- dividend\r
-    mov     ebx, dword ptr [esp + 24]   ; ecx:ebx <- divisor\r
-@@:\r
-    shr     edx, 1\r
-    rcr     eax, 1\r
-    shrd    ebx, ecx, 1\r
-    shr     ecx, 1\r
-    jnz     @B\r
-    div     ebx\r
-    mov     ebx, eax                    ; ebx <- quotient\r
-    mov     ecx, [esp + 28]             ; ecx <- high dword of divisor\r
-    mul     dword ptr [esp + 24]        ; edx:eax <- quotient * divisor[0..31]\r
-    imul    ecx, ebx                    ; ecx <- quotient * divisor[32..63]\r
-    add     edx, ecx                    ; edx <- (quotient * divisor)[32..63]\r
-    mov     ecx, dword ptr [esp + 32]   ; ecx <- addr for Remainder\r
-    jc      @TooLarge                   ; product > 2^64\r
-    cmp     edi, edx                    ; compare high 32 bits\r
-    ja      @Correct\r
-    jb      @TooLarge                   ; product > dividend\r
-    cmp     esi, eax\r
-    jae     @Correct                    ; product <= dividend\r
-@TooLarge:\r
-    dec     ebx                         ; adjust quotient by -1\r
-    jecxz   @Return                     ; return if Remainder == NULL\r
-    sub     eax, dword ptr [esp + 24]\r
-    sbb     edx, dword ptr [esp + 28]   ; edx:eax <- (quotient - 1) * divisor\r
-@Correct:\r
-    jecxz   @Return\r
-    sub     esi, eax\r
-    sbb     edi, edx                    ; edi:esi <- remainder\r
-    mov     [ecx], esi\r
-    mov     [ecx + 4], edi\r
-@Return:\r
-    mov     eax, ebx                    ; eax <- quotient\r
-    xor     edx, edx                    ; quotient is 32 bits long\r
-    ret\r
-_@DivRemU64x64  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/EnableCache.asm b/MdePkg/Library/BaseLib/Ia32/EnableCache.asm
deleted file mode 100644 (file)
index 238431c..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   EnableCache.Asm\r
-;\r
-; Abstract:\r
-;\r
-;  Flush all caches with a WBINVD instruction, clear the CD bit of CR0 to 0, and clear \r
-;  the NW bit of CR0 to 0\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .486p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmEnableCache (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmEnableCache PROC\r
-    wbinvd\r
-    mov     eax, cr0\r
-    btr     eax, 29\r
-    btr     eax, 30\r
-    mov     cr0, eax\r
-    ret\r
-AsmEnableCache ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.asm b/MdePkg/Library/BaseLib/Ia32/EnableDisableInterrupts.asm
deleted file mode 100644 (file)
index f108864..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   EnableDisableInterrupts.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   EnableDisableInterrupts function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386p\r
-    .model  flat\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; EnableDisableInterrupts (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-EnableDisableInterrupts    PROC\r
-    sti\r
-    cli\r
-    ret\r
-EnableDisableInterrupts    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.asm b/MdePkg/Library/BaseLib/Ia32/EnableInterrupts.asm
deleted file mode 100644 (file)
index b43d451..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   EnableInterrupts.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   EnableInterrupts function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386p\r
-    .model  flat\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; EnableInterrupts (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-EnableInterrupts   PROC\r
-    sti\r
-    ret\r
-EnableInterrupts   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/EnablePaging32.asm b/MdePkg/Library/BaseLib/Ia32/EnablePaging32.asm
deleted file mode 100644 (file)
index e8db4b2..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   EnablePaging32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmEnablePaging32 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86EnablePaging32 (\r
-;   IN      SWITCH_STACK_ENTRY_POINT  EntryPoint,\r
-;   IN      VOID                      *Context1,    OPTIONAL\r
-;   IN      VOID                      *Context2,    OPTIONAL\r
-;   IN      VOID                      *NewStack\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86EnablePaging32 PROC\r
-    mov     ebx, [esp + 4]\r
-    mov     ecx, [esp + 8]\r
-    mov     edx, [esp + 12]\r
-    pushfd\r
-    pop     edi                         ; save flags in edi\r
-    cli\r
-    mov     eax, cr0\r
-    bts     eax, 31\r
-    mov     esp, [esp + 16]\r
-    mov     cr0, eax\r
-    push    edi\r
-    popfd                               ; restore flags\r
-    push    edx\r
-    push    ecx\r
-    call    ebx\r
-    jmp     $\r
-InternalX86EnablePaging32 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/EnablePaging64.asm b/MdePkg/Library/BaseLib/Ia32/EnablePaging64.asm
deleted file mode 100644 (file)
index 9ad3404..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   EnablePaging64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmEnablePaging64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86EnablePaging64 (\r
-;   IN      UINT16                    Cs,\r
-;   IN      UINT64                    EntryPoint,\r
-;   IN      UINT64                    Context1,  OPTIONAL\r
-;   IN      UINT64                    Context2,  OPTIONAL\r
-;   IN      UINT64                    NewStack\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86EnablePaging64 PROC\r
-    cli\r
-    mov     DWORD PTR [esp], @F         ; offset for far retf, seg is the 1st arg\r
-    mov     eax, cr4\r
-    or      al, (1 SHL 5)\r
-    mov     cr4, eax                    ; enable PAE\r
-    mov     ecx, 0c0000080h\r
-    rdmsr\r
-    or      ah, 1                       ; set LME\r
-    wrmsr\r
-    mov     eax, cr0\r
-    bts     eax, 31                     ; set PG\r
-    mov     cr0, eax                    ; enable paging\r
-    retf                                ; topmost 2 dwords hold the address\r
-@@:                                     ; long mode starts here\r
-    DB      67h, 48h                    ; 32-bit address size, 64-bit operand size\r
-    mov     ebx, [esp]                  ; mov rbx, [esp]\r
-    DB      67h, 48h\r
-    mov     ecx, [esp + 8]              ; mov rcx, [esp + 8]\r
-    DB      67h, 48h\r
-    mov     edx, [esp + 10h]            ; mov rdx, [esp + 10h]\r
-    DB      67h, 48h\r
-    mov     esp, [esp + 18h]            ; mov rsp, [esp + 18h]\r
-    DB      48h\r
-    add     esp, -20h                   ; add rsp, -20h\r
-    call    ebx                         ; call rbx\r
-    hlt                                 ; no one should get here\r
-InternalX86EnablePaging64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/FlushCacheLine.asm b/MdePkg/Library/BaseLib/Ia32/FlushCacheLine.asm
deleted file mode 100644 (file)
index 1979f6d..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2015, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   FlushCacheLine.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmFlushCacheLine function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586P\r
-    .model  flat,C\r
-    .xmm\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID *\r
-; EFIAPI\r
-; AsmFlushCacheLine (\r
-;   IN      VOID                      *LinearAddress\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmFlushCacheLine   PROC\r
-    ;\r
-    ; If the CPU does not support CLFLUSH instruction, \r
-    ; then promote flush range to flush entire cache.\r
-    ;\r
-    mov     eax, 1\r
-    push    ebx\r
-    cpuid\r
-    pop     ebx\r
-    mov     eax, [esp + 4]\r
-    test    edx, BIT19\r
-    jz      @F\r
-    clflush [eax]\r
-    ret\r
-@@:\r
-    wbinvd\r
-    ret\r
-AsmFlushCacheLine   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/FxRestore.asm b/MdePkg/Library/BaseLib/Ia32/FxRestore.asm
deleted file mode 100644 (file)
index 5b773d6..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   FxRestore.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmFxRestore function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .xmm\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86FxRestore (\r
-;   IN CONST IA32_FX_BUFFER *Buffer\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86FxRestore  PROC\r
-    mov     eax, [esp + 4]              ; Buffer must be 16-byte aligned\r
-    fxrstor [eax]\r
-    ret\r
-InternalX86FxRestore  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/FxSave.asm b/MdePkg/Library/BaseLib/Ia32/FxSave.asm
deleted file mode 100644 (file)
index 417106a..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   FxSave.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmFxSave function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .xmm\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86FxSave (\r
-;   OUT IA32_FX_BUFFER *Buffer\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86FxSave PROC\r
-    mov     eax, [esp + 4]              ; Buffer must be 16-byte aligned\r
-    fxsave  [eax]\r
-    ret\r
-InternalX86FxSave ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/Invd.asm b/MdePkg/Library/BaseLib/Ia32/Invd.asm
deleted file mode 100644 (file)
index a34e217..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   Invd.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmInvd function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .486p\r
-    .model  flat\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmInvd (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmInvd    PROC\r
-    invd\r
-    ret\r
-AsmInvd    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/LRotU64.asm b/MdePkg/Library/BaseLib/Ia32/LRotU64.asm
deleted file mode 100644 (file)
index 9e6a94e..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2015, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   LRotU64.asm\r
-;\r
-; Abstract:\r
-;\r
-;   64-bit left rotation for Ia32\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; InternalMathLRotU64 (\r
-;   IN      UINT64                    Operand,\r
-;   IN      UINTN                     Count\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMathLRotU64 PROC    USES    ebx\r
-    mov     cl, [esp + 16]\r
-    mov     edx, [esp + 12]\r
-    mov     eax, [esp + 8]\r
-    shld    ebx, edx, cl\r
-    shld    edx, eax, cl\r
-    ror     ebx, cl\r
-    shld    eax, ebx, cl\r
-    test    cl, 32                      ; Count >= 32?\r
-    jz      @F\r
-    mov     ecx, eax\r
-    mov     eax, edx\r
-    mov     edx, ecx\r
-@@:    \r
-    ret\r
-InternalMathLRotU64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/LShiftU64.asm b/MdePkg/Library/BaseLib/Ia32/LShiftU64.asm
deleted file mode 100644 (file)
index 15b7242..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2015, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   LShiftU64.asm\r
-;\r
-; Abstract:\r
-;\r
-;   64-bit left shift function for IA-32\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; InternalMathLShiftU64 (\r
-;   IN      UINT64                    Operand,\r
-;   IN      UINTN                     Count\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMathLShiftU64   PROC\r
-    mov     cl, [esp + 12]\r
-    xor     eax, eax\r
-    mov     edx, [esp + 4]\r
-    test    cl, 32                      ; Count >= 32?\r
-    jnz     @F\r
-    mov     eax, edx\r
-    mov     edx, [esp + 8]\r
-@@:    \r
-    shld    edx, eax, cl\r
-    shl     eax, cl\r
-    ret\r
-InternalMathLShiftU64   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/LongJump.asm b/MdePkg/Library/BaseLib/Ia32/LongJump.asm
deleted file mode 100644 (file)
index d1f1d77..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   LongJump.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   Implementation of _LongJump() on IA-32.\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalLongJump (\r
-;   IN      BASE_LIBRARY_JUMP_BUFFER  *JumpBuffer,\r
-;   IN      UINTN                     Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalLongJump    PROC\r
-    pop     eax                         ; skip return address\r
-    pop     edx                         ; edx <- JumpBuffer\r
-    pop     eax                         ; eax <- Value\r
-    mov     ebx, [edx]\r
-    mov     esi, [edx + 4]\r
-    mov     edi, [edx + 8]\r
-    mov     ebp, [edx + 12]\r
-    mov     esp, [edx + 16]\r
-    jmp     dword ptr [edx + 20]        ; restore "eip"\r
-InternalLongJump    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ModU64x32.asm b/MdePkg/Library/BaseLib/Ia32/ModU64x32.asm
deleted file mode 100644 (file)
index a910fd3..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   DivU64x32.asm\r
-;\r
-; Abstract:\r
-;\r
-;   Calculate the remainder of a 64-bit integer by a 32-bit integer\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT32\r
-; EFIAPI\r
-; InternalMathModU64x32 (\r
-;   IN      UINT64                    Dividend,\r
-;   IN      UINT32                    Divisor\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMathModU64x32   PROC\r
-    mov     eax, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    xor     edx, edx\r
-    div     ecx\r
-    mov     eax, [esp + 4]\r
-    div     ecx\r
-    mov     eax, edx\r
-    ret\r
-InternalMathModU64x32   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/Monitor.asm b/MdePkg/Library/BaseLib/Ia32/Monitor.asm
deleted file mode 100644 (file)
index a8f8612..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   Monitor.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmMonitor function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmMonitor (\r
-;   IN      UINTN                     Eax,\r
-;   IN      UINTN                     Ecx,\r
-;   IN      UINTN                     Edx\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmMonitor  PROC\r
-    mov     eax, [esp + 4]\r
-    mov     ecx, [esp + 8]\r
-    mov     edx, [esp + 12]\r
-    DB      0fh, 1, 0c8h                ; monitor\r
-    ret\r
-AsmMonitor  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/MultU64x32.asm b/MdePkg/Library/BaseLib/Ia32/MultU64x32.asm
deleted file mode 100644 (file)
index 9648d65..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   MultU64x32.asm\r
-;\r
-; Abstract:\r
-;\r
-;   Calculate the product of a 64-bit integer and a 32-bit integer\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; InternalMathMultU64x32 (\r
-;   IN      UINT64                    Multiplicand,\r
-;   IN      UINT32                    Multiplier\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMathMultU64x32  PROC\r
-    mov     ecx, [esp + 12]\r
-    mov     eax, ecx\r
-    imul    ecx, [esp + 8]              ; overflow not detectable\r
-    mul     dword ptr [esp + 4]\r
-    add     edx, ecx\r
-    ret\r
-InternalMathMultU64x32  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/MultU64x64.asm b/MdePkg/Library/BaseLib/Ia32/MultU64x64.asm
deleted file mode 100644 (file)
index 061301f..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   MultU64x64.asm\r
-;\r
-; Abstract:\r
-;\r
-;   Calculate the product of a 64-bit integer and another 64-bit integer\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; InternalMathMultU64x64 (\r
-;   IN      UINT64                    Multiplicand,\r
-;   IN      UINT64                    Multiplier\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMathMultU64x64  PROC    USES    ebx\r
-    mov     ebx, [esp + 8]              ; ebx <- M1[0..31]\r
-    mov     edx, [esp + 16]             ; edx <- M2[0..31]\r
-    mov     ecx, ebx\r
-    mov     eax, edx\r
-    imul    ebx, [esp + 20]             ; ebx <- M1[0..31] * M2[32..63]\r
-    imul    edx, [esp + 12]             ; edx <- M1[32..63] * M2[0..31]\r
-    add     ebx, edx                    ; carries are abandoned\r
-    mul     ecx                         ; edx:eax <- M1[0..31] * M2[0..31]\r
-    add     edx, ebx                    ; carries are abandoned\r
-    ret\r
-InternalMathMultU64x64  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/Mwait.asm b/MdePkg/Library/BaseLib/Ia32/Mwait.asm
deleted file mode 100644 (file)
index 3ae3085..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   Mwait.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmMwait function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmMwait (\r
-;   IN      UINTN                     Eax,\r
-;   IN      UINTN                     Ecx\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmMwait    PROC\r
-    mov     eax, [esp + 4]\r
-    mov     ecx, [esp + 8]\r
-    DB      0fh, 1, 0c9h                ; mwait\r
-    ret\r
-AsmMwait    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/RRotU64.asm b/MdePkg/Library/BaseLib/Ia32/RRotU64.asm
deleted file mode 100644 (file)
index 6afb0cc..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2015, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   RRotU64.asm\r
-;\r
-; Abstract:\r
-;\r
-;   64-bit right rotation for Ia32\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; InternalMathRRotU64 (\r
-;   IN      UINT64                    Operand,\r
-;   IN      UINTN                     Count\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMathRRotU64 PROC    USES    ebx\r
-    mov     cl, [esp + 16]\r
-    mov     eax, [esp + 8]\r
-    mov     edx, [esp + 12]\r
-    shrd    ebx, eax, cl\r
-    shrd    eax, edx, cl\r
-    rol     ebx, cl\r
-    shrd    edx, ebx, cl\r
-    test    cl, 32                      ; Count >= 32?\r
-    jz      @F\r
-    mov     ecx, eax                    ; switch eax & edx if Count >= 32\r
-    mov     eax, edx\r
-    mov     edx, ecx\r
-@@:    \r
-    ret\r
-InternalMathRRotU64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/RShiftU64.asm b/MdePkg/Library/BaseLib/Ia32/RShiftU64.asm
deleted file mode 100644 (file)
index 94f7046..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2015, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   RShiftU64.asm\r
-;\r
-; Abstract:\r
-;\r
-;   64-bit logical right shift function for IA-32\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; InternalMathRShiftU64 (\r
-;   IN      UINT64                    Operand,\r
-;   IN      UINTN                     Count\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMathRShiftU64   PROC\r
-    mov     cl, [esp + 12]              ; cl <- Count\r
-    xor     edx, edx\r
-    mov     eax, [esp + 8]\r
-    test    cl, 32                      ; Count >= 32?\r
-    jnz     @F\r
-    mov     edx, eax\r
-    mov     eax, [esp + 4]\r
-@@:    \r
-    shrd    eax, edx, cl\r
-    shr     edx, cl\r
-    ret\r
-InternalMathRShiftU64   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/RdRand.asm b/MdePkg/Library/BaseLib/Ia32/RdRand.asm
deleted file mode 100644 (file)
index cb4e811..0000000
+++ /dev/null
@@ -1,94 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2015 - 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   RdRand.asm\r
-;\r
-; Abstract:\r
-;\r
-;   Generates random number through CPU RdRand instruction under 32-bit platform.\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-.686P\r
-.model flat, C\r
-\r
-.code\r
-\r
-;------------------------------------------------------------------------------\r
-;  Generates a 16 bit random number through RDRAND instruction.\r
-;  Return TRUE if Rand generated successfully, or FALSE if not.\r
-;\r
-;  BOOLEAN EFIAPI InternalX86RdRand16 (UINT16 *Rand);\r
-;------------------------------------------------------------------------------\r
-InternalX86RdRand16  PROC\r
-    ; rdrand   ax                  ; generate a 16 bit RN into ax\r
-                                   ; CF=1 if RN generated ok, otherwise CF=0\r
-    db     0fh, 0c7h, 0f0h         ; rdrand r16: "0f c7 /6  ModRM:r/m(w)"\r
-    jc     rn16_ok                 ; jmp if CF=1\r
-    xor    eax, eax                ; reg=0 if CF=0\r
-    ret                            ; return with failure status\r
-rn16_ok:\r
-    mov    edx, dword ptr [esp + 4]\r
-    mov    [edx], ax\r
-    mov    eax,  1\r
-    ret\r
-InternalX86RdRand16 ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-;  Generates a 32 bit random number through RDRAND instruction.\r
-;  Return TRUE if Rand generated successfully, or FALSE if not.\r
-;\r
-;  BOOLEAN EFIAPI InternalX86RdRand32 (UINT32 *Rand);\r
-;------------------------------------------------------------------------------\r
-InternalX86RdRand32  PROC\r
-    ; rdrand   eax                 ; generate a 32 bit RN into eax\r
-                                   ; CF=1 if RN generated ok, otherwise CF=0\r
-    db     0fh, 0c7h, 0f0h         ; rdrand r32: "0f c7 /6  ModRM:r/m(w)"\r
-    jc     rn32_ok                 ; jmp if CF=1\r
-    xor    eax, eax                ; reg=0 if CF=0\r
-    ret                            ; return with failure status\r
-rn32_ok:\r
-    mov    edx, dword ptr [esp + 4]\r
-    mov    [edx], eax\r
-    mov    eax,  1\r
-    ret\r
-InternalX86RdRand32 ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-;  Generates a 64 bit random number through RDRAND instruction.\r
-;  Return TRUE if Rand generated successfully, or FALSE if not.\r
-;\r
-;  BOOLEAN EFIAPI InternalX86RdRand64 (UINT64 *Rand);\r
-;------------------------------------------------------------------------------\r
-InternalX86RdRand64  PROC\r
-    ; rdrand   eax                 ; generate a 32 bit RN into eax\r
-                                   ; CF=1 if RN generated ok, otherwise CF=0\r
-    db     0fh, 0c7h, 0f0h         ; rdrand r32: "0f c7 /6  ModRM:r/m(w)"\r
-    jnc    rn64_ret                ; jmp if CF=0\r
-    mov    edx, dword ptr [esp + 4]\r
-    mov    [edx], eax\r
-\r
-    db     0fh, 0c7h, 0f0h         ; generate another 32 bit RN\r
-    jnc    rn64_ret                ; jmp if CF=0\r
-    mov    [edx + 4], eax\r
-\r
-    mov    eax,  1\r
-    ret\r
-rn64_ret:\r
-    xor    eax, eax\r
-    ret                            ; return with failure status\r
-InternalX86RdRand64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadCr0.asm b/MdePkg/Library/BaseLib/Ia32/ReadCr0.asm
deleted file mode 100644 (file)
index 13d0920..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadCr0.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadCr0 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadCr0 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadCr0  PROC\r
-    mov     eax, cr0\r
-    ret\r
-AsmReadCr0  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadCr2.asm b/MdePkg/Library/BaseLib/Ia32/ReadCr2.asm
deleted file mode 100644 (file)
index 7a267d4..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadCr2.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadCr2 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadCr2 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadCr2  PROC\r
-    mov     eax, cr2\r
-    ret\r
-AsmReadCr2  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadCr3.asm b/MdePkg/Library/BaseLib/Ia32/ReadCr3.asm
deleted file mode 100644 (file)
index d4ba412..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadCr3.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadCr3 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadCr3 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadCr3  PROC\r
-    mov     eax, cr3\r
-    ret\r
-AsmReadCr3  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadCr4.asm b/MdePkg/Library/BaseLib/Ia32/ReadCr4.asm
deleted file mode 100644 (file)
index 02f9072..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadCr4.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadCr4 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadCr4 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadCr4  PROC\r
-    mov     eax, cr4\r
-    ret\r
-AsmReadCr4  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadCs.asm b/MdePkg/Library/BaseLib/Ia32/ReadCs.asm
deleted file mode 100644 (file)
index f9f1eef..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadCs.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadCs function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadCs (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadCs   PROC\r
-    mov     eax, cs\r
-    ret\r
-AsmReadCs   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadDr0.asm b/MdePkg/Library/BaseLib/Ia32/ReadDr0.asm
deleted file mode 100644 (file)
index 8a8c4d2..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr0.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr0 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr0 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr0  PROC\r
-    mov     eax, dr0\r
-    ret\r
-AsmReadDr0  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadDr1.asm b/MdePkg/Library/BaseLib/Ia32/ReadDr1.asm
deleted file mode 100644 (file)
index cb9808b..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr1.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr1 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr1 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr1  PROC\r
-    mov     eax, dr1\r
-    ret\r
-AsmReadDr1  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadDr2.asm b/MdePkg/Library/BaseLib/Ia32/ReadDr2.asm
deleted file mode 100644 (file)
index bbc77b6..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr2.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr2 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr2 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr2  PROC\r
-    mov     eax, dr2\r
-    ret\r
-AsmReadDr2  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadDr3.asm b/MdePkg/Library/BaseLib/Ia32/ReadDr3.asm
deleted file mode 100644 (file)
index a6dc443..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr3.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr3 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr3 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr3  PROC\r
-    mov     eax, dr3\r
-    ret\r
-AsmReadDr3  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadDr4.asm b/MdePkg/Library/BaseLib/Ia32/ReadDr4.asm
deleted file mode 100644 (file)
index 2d0c7a6..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr4.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr4 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr4 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr4  PROC\r
-    ;\r
-    ; DR4 is alias to DR6 only if DE (in CR4) is cleared. Otherwise, reading\r
-    ; this register will cause a #UD exception.\r
-    ;\r
-    ; MS assembler doesn't support this instruction since no one would use it\r
-    ; under normal circustances. Here opcode is used.\r
-    ;\r
-    DB      0fh, 21h, 0e0h\r
-    ret\r
-AsmReadDr4  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadDr5.asm b/MdePkg/Library/BaseLib/Ia32/ReadDr5.asm
deleted file mode 100644 (file)
index 58b4ac2..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr5.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr5 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr5 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr5  PROC\r
-    ;\r
-    ; DR5 is alias to DR7 only if DE (in CR4) is cleared. Otherwise, reading\r
-    ; this register will cause a #UD exception.\r
-    ;\r
-    ; MS assembler doesn't support this instruction since no one would use it\r
-    ; under normal circustances. Here opcode is used.\r
-    ;\r
-    DB      0fh, 21h, 0e8h\r
-    ret\r
-AsmReadDr5  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadDr6.asm b/MdePkg/Library/BaseLib/Ia32/ReadDr6.asm
deleted file mode 100644 (file)
index 6ecac10..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr6.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr6 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr6 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr6  PROC\r
-    mov     eax, dr6\r
-    ret\r
-AsmReadDr6  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadDr7.asm b/MdePkg/Library/BaseLib/Ia32/ReadDr7.asm
deleted file mode 100644 (file)
index 3869bb1..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr7.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr7 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr7 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr7  PROC\r
-    mov     eax, dr7\r
-    ret\r
-AsmReadDr7  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadDs.asm b/MdePkg/Library/BaseLib/Ia32/ReadDs.asm
deleted file mode 100644 (file)
index d134926..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDs.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDs function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadDs (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDs   PROC\r
-    mov     eax, ds\r
-    ret\r
-AsmReadDs   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadEflags.asm b/MdePkg/Library/BaseLib/Ia32/ReadEflags.asm
deleted file mode 100644 (file)
index 4b210d1..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadEflags.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadEflags function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadEflags (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadEflags   PROC\r
-    pushfd\r
-    pop     eax\r
-    ret\r
-AsmReadEflags   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadEs.asm b/MdePkg/Library/BaseLib/Ia32/ReadEs.asm
deleted file mode 100644 (file)
index 4c5d0cc..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadEs.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadEs function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadEs (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadEs   PROC\r
-    mov     eax, es\r
-    ret\r
-AsmReadEs   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadFs.asm b/MdePkg/Library/BaseLib/Ia32/ReadFs.asm
deleted file mode 100644 (file)
index bdcb97f..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadFs.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadFs function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadFs (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadFs   PROC\r
-    mov     eax, fs\r
-    ret\r
-AsmReadFs   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadGdtr.asm b/MdePkg/Library/BaseLib/Ia32/ReadGdtr.asm
deleted file mode 100644 (file)
index 68c125a..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadGdtr.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadGdtr function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86ReadGdtr (\r
-;   OUT IA32_DESCRIPTOR  *Gdtr\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86ReadGdtr   PROC\r
-    mov     eax, [esp + 4]\r
-    sgdt    fword ptr [eax]\r
-    ret\r
-InternalX86ReadGdtr   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadGs.asm b/MdePkg/Library/BaseLib/Ia32/ReadGs.asm
deleted file mode 100644 (file)
index db505de..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadGs.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadGs function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadGs (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadGs   PROC\r
-    mov     eax, gs\r
-    ret\r
-AsmReadGs   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadIdtr.asm b/MdePkg/Library/BaseLib/Ia32/ReadIdtr.asm
deleted file mode 100644 (file)
index 40b8bf8..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadIdtr.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadIdtr function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86ReadIdtr (\r
-;   OUT     IA32_DESCRIPTOR           *Idtr\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86ReadIdtr PROC\r
-    mov     eax, [esp + 4]\r
-    sidt    fword ptr [eax]\r
-    ret\r
-InternalX86ReadIdtr ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadLdtr.asm b/MdePkg/Library/BaseLib/Ia32/ReadLdtr.asm
deleted file mode 100644 (file)
index f38ebbf..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadLdtr.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadLdtr function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadLdtr (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadLdtr PROC\r
-    sldt    ax\r
-    ret\r
-AsmReadLdtr ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadMm0.asm b/MdePkg/Library/BaseLib/Ia32/ReadMm0.asm
deleted file mode 100644 (file)
index 990b647..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm0.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm0 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm0 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm0  PROC\r
-    push    eax\r
-    push    eax\r
-    movq    [esp], mm0\r
-    pop     eax\r
-    pop     edx\r
-    ret\r
-AsmReadMm0  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadMm1.asm b/MdePkg/Library/BaseLib/Ia32/ReadMm1.asm
deleted file mode 100644 (file)
index d241fac..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm1.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm1 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm1 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm1  PROC\r
-    push    eax\r
-    push    eax\r
-    movq    [esp], mm1\r
-    pop     eax\r
-    pop     edx\r
-    ret\r
-AsmReadMm1  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadMm2.asm b/MdePkg/Library/BaseLib/Ia32/ReadMm2.asm
deleted file mode 100644 (file)
index 07bf0ea..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm2.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm2 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm2 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm2  PROC\r
-    push    eax\r
-    push    eax\r
-    movq    [esp], mm2\r
-    pop     eax\r
-    pop     edx\r
-    ret\r
-AsmReadMm2  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadMm3.asm b/MdePkg/Library/BaseLib/Ia32/ReadMm3.asm
deleted file mode 100644 (file)
index d323188..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm3.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm3 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm3 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm3  PROC\r
-    push    eax\r
-    push    eax\r
-    movq    [esp], mm3\r
-    pop     eax\r
-    pop     edx\r
-    ret\r
-AsmReadMm3  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadMm4.asm b/MdePkg/Library/BaseLib/Ia32/ReadMm4.asm
deleted file mode 100644 (file)
index 3d63eae..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm4.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm4 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm4 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm4  PROC\r
-    push    eax\r
-    push    eax\r
-    movq    [esp], mm4\r
-    pop     eax\r
-    pop     edx\r
-    ret\r
-AsmReadMm4  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadMm5.asm b/MdePkg/Library/BaseLib/Ia32/ReadMm5.asm
deleted file mode 100644 (file)
index 39d0c7e..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm5.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm5 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm5 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm5  PROC\r
-    push    eax\r
-    push    eax\r
-    movq    [esp], mm5\r
-    pop     eax\r
-    pop     edx\r
-    ret\r
-AsmReadMm5  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadMm6.asm b/MdePkg/Library/BaseLib/Ia32/ReadMm6.asm
deleted file mode 100644 (file)
index 2673710..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm6.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm6 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm6 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm6  PROC\r
-    push    eax\r
-    push    eax\r
-    movq    [esp], mm6\r
-    pop     eax\r
-    pop     edx\r
-    ret\r
-AsmReadMm6  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadMm7.asm b/MdePkg/Library/BaseLib/Ia32/ReadMm7.asm
deleted file mode 100644 (file)
index eadb1ac..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm7.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm7 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm7 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm7  PROC\r
-    push    eax\r
-    push    eax\r
-    movq    [esp], mm7\r
-    pop     eax\r
-    pop     edx\r
-    ret\r
-AsmReadMm7  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadMsr64.asm b/MdePkg/Library/BaseLib/Ia32/ReadMsr64.asm
deleted file mode 100644 (file)
index da6f45f..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMsr64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMsr64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMsr64 (\r
-;   IN UINT64  Index\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMsr64    PROC\r
-    mov     ecx, [esp + 4]\r
-    rdmsr\r
-    ret\r
-AsmReadMsr64    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadPmc.asm b/MdePkg/Library/BaseLib/Ia32/ReadPmc.asm
deleted file mode 100644 (file)
index 59ea36b..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadPmc.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadPmc function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadPmc (\r
-;   IN UINT32   PmcIndex\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadPmc  PROC\r
-    mov     ecx, [esp + 4]\r
-    rdpmc\r
-    ret\r
-AsmReadPmc  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadSs.asm b/MdePkg/Library/BaseLib/Ia32/ReadSs.asm
deleted file mode 100644 (file)
index bfba7c0..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadSs.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadSs function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadSs (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadSs   PROC\r
-    mov     eax, ss\r
-    ret\r
-AsmReadSs   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadTr.asm b/MdePkg/Library/BaseLib/Ia32/ReadTr.asm
deleted file mode 100644 (file)
index 7fca070..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadTr.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadTr function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadTr (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadTr   PROC\r
-    str     ax\r
-    ret\r
-AsmReadTr   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/ReadTsc.asm b/MdePkg/Library/BaseLib/Ia32/ReadTsc.asm
deleted file mode 100644 (file)
index ad02adb..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadTsc.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadTsc function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadTsc (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadTsc  PROC\r
-    rdtsc\r
-    ret\r
-AsmReadTsc  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/SetJump.asm b/MdePkg/Library/BaseLib/Ia32/SetJump.asm
deleted file mode 100644 (file)
index 0bfa404..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetJump.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   Implementation of SetJump() on IA-32.\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-InternalAssertJumpBuffer    PROTO   C\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; SetJump (\r
-;   OUT     BASE_LIBRARY_JUMP_BUFFER  *JumpBuffer\r
-;   );\r
-;------------------------------------------------------------------------------\r
-SetJump     PROC\r
-    push    DWORD [esp + 4]\r
-    call    InternalAssertJumpBuffer    ; To validate JumpBuffer\r
-    pop     ecx\r
-    pop     ecx                         ; ecx <- return address\r
-    mov     edx, [esp]\r
-    mov     [edx], ebx\r
-    mov     [edx + 4], esi\r
-    mov     [edx + 8], edi\r
-    mov     [edx + 12], ebp\r
-    mov     [edx + 16], esp\r
-    mov     [edx + 20], ecx             ; eip value to restore in LongJump\r
-    xor     eax, eax\r
-    jmp     ecx\r
-SetJump     ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/SwapBytes64.asm b/MdePkg/Library/BaseLib/Ia32/SwapBytes64.asm
deleted file mode 100644 (file)
index 7020753..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CpuId.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmCpuid function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; InternalMathSwapBytes64 (\r
-;   IN      UINT64                    Operand\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMathSwapBytes64 PROC\r
-    mov     eax, [esp + 8]              ; eax <- upper 32 bits\r
-    mov     edx, [esp + 4]              ; edx <- lower 32 bits\r
-    bswap   eax\r
-    bswap   edx\r
-    ret\r
-InternalMathSwapBytes64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/Thunk16.asm b/MdePkg/Library/BaseLib/Ia32/Thunk16.asm
deleted file mode 100644 (file)
index 08955d4..0000000
+++ /dev/null
@@ -1,260 +0,0 @@
-\r
-#include "BaseLibInternals.h"\r
-\r
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2013, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   Thunk.asm\r
-;\r
-; Abstract:\r
-;\r
-;   Real mode thunk\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686p\r
-    .model  flat,C\r
-\r
-EXTERNDEF   C   m16Start:BYTE\r
-EXTERNDEF   C   m16Size:WORD\r
-EXTERNDEF   C   mThunk16Attr:WORD\r
-EXTERNDEF   C   m16Gdt:WORD\r
-EXTERNDEF   C   m16GdtrBase:WORD\r
-EXTERNDEF   C   mTransition:WORD\r
-\r
-;\r
-; Here is the layout of the real mode stack. _ToUserCode() is responsible for\r
-; loading all these registers from real mode stack.\r
-;\r
-IA32_REGS   STRUC   4t\r
-_EDI        DD      ?\r
-_ESI        DD      ?\r
-_EBP        DD      ?\r
-_ESP        DD      ?\r
-_EBX        DD      ?\r
-_EDX        DD      ?\r
-_ECX        DD      ?\r
-_EAX        DD      ?\r
-_DS         DW      ?\r
-_ES         DW      ?\r
-_FS         DW      ?\r
-_GS         DW      ?\r
-_EFLAGS     DD      ?\r
-_EIP        DD      ?\r
-_CS         DW      ?\r
-_SS         DW      ?\r
-IA32_REGS   ENDS\r
-\r
-    .const\r
-\r
-;\r
-; These are global constant to convey information to C code.\r
-;\r
-m16Size         DW      InternalAsmThunk16 - m16Start\r
-mThunk16Attr    DW      _ThunkAttr - m16Start\r
-m16Gdt          DW      _NullSegDesc - m16Start\r
-m16GdtrBase     DW      _16GdtrBase - m16Start\r
-mTransition     DW      _EntryPoint - m16Start\r
-\r
-    .code\r
-\r
-m16Start    LABEL   BYTE\r
-\r
-SavedGdt    LABEL   FWORD\r
-            DW      ?\r
-            DD      ?\r
-;------------------------------------------------------------------------------\r
-; _BackFromUserCode() takes control in real mode after 'retf' has been executed\r
-; by user code. It will be shadowed to somewhere in memory below 1MB.\r
-;------------------------------------------------------------------------------\r
-_BackFromUserCode   PROC\r
-    ;\r
-    ; The order of saved registers on the stack matches the order they appears\r
-    ; in IA32_REGS structure. This facilitates wrapper function to extract them\r
-    ; into that structure.\r
-    ;\r
-    push    ss\r
-    push    cs\r
-    DB      66h\r
-    call    @Base                       ; push eip\r
-@Base:\r
-    pushf                               ; pushfd actually\r
-    cli                                 ; disable interrupts\r
-    push    gs\r
-    push    fs\r
-    push    es\r
-    push    ds\r
-    pushaw                              ; pushad actually\r
-    DB      66h, 0bah                   ; mov edx, imm32\r
-_ThunkAttr  DD      ?\r
-    test    dl, THUNK_ATTRIBUTE_DISABLE_A20_MASK_INT_15\r
-    jz      @1\r
-    mov     eax, 15cd2401h              ; mov ax, 2401h & int 15h\r
-    cli                                 ; disable interrupts\r
-    jnc     @2\r
-@1:\r
-    test    dl, THUNK_ATTRIBUTE_DISABLE_A20_MASK_KBD_CTRL\r
-    jz      @2\r
-    in      al, 92h\r
-    or      al, 2\r
-    out     92h, al                     ; deactivate A20M#\r
-@2:\r
-    xor     ax, ax                      ; xor eax, eax\r
-    mov     eax, ss                     ; mov ax, ss\r
-    DB      67h\r
-    lea     bp, [esp + sizeof (IA32_REGS)]\r
-    ;\r
-    ; esi's in the following 2 instructions are indeed bp in 16-bit code. Fact\r
-    ; is "esi" in 32-bit addressing mode has the same encoding of "bp" in 16-\r
-    ; bit addressing mode.\r
-    ;\r
-    mov     word ptr (IA32_REGS ptr [esi - sizeof (IA32_REGS)])._ESP, bp\r
-    mov     ebx, (IA32_REGS ptr [esi - sizeof (IA32_REGS)])._EIP\r
-    shl     ax, 4                       ; shl eax, 4\r
-    add     bp, ax                      ; add ebp, eax\r
-    DB      66h, 0b8h                   ; mov eax, imm32\r
-SavedCr4    DD      ?\r
-    mov     cr4, eax\r
-    DB      66h\r
-    lgdt    fword ptr cs:[edi + (SavedGdt - @Base)]\r
-    DB      66h, 0b8h                   ; mov eax, imm32\r
-SavedCr0    DD      ?\r
-    mov     cr0, eax\r
-    DB      0b8h                        ; mov ax, imm16\r
-SavedSs     DW      ?\r
-    mov     ss, eax\r
-    DB      66h, 0bch                   ; mov esp, imm32\r
-SavedEsp    DD      ?\r
-    DB      66h\r
-    retf                                ; return to protected mode\r
-_BackFromUserCode   ENDP\r
-\r
-_EntryPoint DD      _ToUserCode - m16Start\r
-            DW      8h\r
-_16Idtr     FWORD   (1 SHL 10) - 1\r
-_16Gdtr     LABEL   FWORD\r
-            DW      GdtEnd - _NullSegDesc - 1\r
-_16GdtrBase DD      _NullSegDesc\r
-\r
-;------------------------------------------------------------------------------\r
-; _ToUserCode() takes control in real mode before passing control to user code.\r
-; It will be shadowed to somewhere in memory below 1MB.\r
-;------------------------------------------------------------------------------\r
-_ToUserCode PROC\r
-    mov     edx, ss\r
-    mov     ss, ecx                     ; set new segment selectors\r
-    mov     ds, ecx\r
-    mov     es, ecx\r
-    mov     fs, ecx\r
-    mov     gs, ecx\r
-    mov     cr0, eax                    ; real mode starts at next instruction\r
-                                        ;  which (per SDM) *must* be a far JMP.\r
-    DB      0eah\r
-_RealAddr DW 0,0                       ; filled in by InternalAsmThunk16\r
-\r
-    mov     cr4, ebp\r
-    mov     ss, esi                     ; set up 16-bit stack segment\r
-    xchg    sp, bx                      ; set up 16-bit stack pointer\r
-\r
-;   mov     bp, [esp + sizeof(IA32_REGS)\r
-    DB      67h\r
-    mov     ebp, [esp + sizeof(IA32_REGS)] ; BackFromUserCode address from stack\r
-\r
-;   mov     cs:[bp + (SavedSs - _BackFromUserCode)], dx\r
-    mov     cs:[esi + (SavedSs - _BackFromUserCode)], edx\r
-\r
-;   mov     cs:[bp + (SavedEsp - _BackFromUserCode)], ebx\r
-    DB      2eh, 66h, 89h, 9eh\r
-    DW      SavedEsp - _BackFromUserCode\r
-\r
-;   lidt    cs:[bp + (_16Idtr - _BackFromUserCode)]\r
-    DB      2eh, 66h, 0fh, 01h, 9eh\r
-    DW      _16Idtr - _BackFromUserCode\r
-\r
-    popaw                               ; popad actually\r
-    pop     ds\r
-    pop     es\r
-    pop     fs\r
-    pop     gs\r
-    popf                                ; popfd\r
-    DB      66h                         ; Use 32-bit addressing for "retf" below\r
-    retf                                ; transfer control to user code\r
-_ToUserCode ENDP\r
-\r
-_NullSegDesc    DQ      0\r
-_16CsDesc       LABEL   QWORD\r
-                DW      -1\r
-                DW      0\r
-                DB      0\r
-                DB      9bh\r
-                DB      8fh             ; 16-bit segment, 4GB limit\r
-                DB      0\r
-_16DsDesc       LABEL   QWORD\r
-                DW      -1\r
-                DW      0\r
-                DB      0\r
-                DB      93h\r
-                DB      8fh             ; 16-bit segment, 4GB limit\r
-                DB      0\r
-GdtEnd          LABEL   QWORD\r
-\r
-;------------------------------------------------------------------------------\r
-; IA32_REGISTER_SET *\r
-; EFIAPI\r
-; InternalAsmThunk16 (\r
-;   IN      IA32_REGISTER_SET         *RegisterSet,\r
-;   IN OUT  VOID                      *Transition\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalAsmThunk16  PROC    USES    ebp ebx esi edi ds  es  fs  gs\r
-    mov     esi, [esp + 36]             ; esi <- RegSet, the 1st parameter\r
-    movzx   edx, (IA32_REGS ptr [esi])._SS\r
-    mov     edi, (IA32_REGS ptr [esi])._ESP\r
-    add     edi, - (sizeof (IA32_REGS) + 4) ; reserve stack space\r
-    mov     ebx, edi                    ; ebx <- stack offset\r
-    imul    eax, edx, 16                ; eax <- edx * 16\r
-    push    sizeof (IA32_REGS) / 4\r
-    add     edi, eax                    ; edi <- linear address of 16-bit stack\r
-    pop     ecx\r
-    rep     movsd                       ; copy RegSet\r
-    mov     eax, [esp + 40]             ; eax <- address of transition code\r
-    mov     esi, edx                    ; esi <- 16-bit stack segment\r
-    lea     edx, [eax + (SavedCr0 - m16Start)]\r
-    mov     ecx, eax\r
-    and     ecx, 0fh\r
-    shl     eax, 12\r
-    lea     ecx, [ecx + (_BackFromUserCode - m16Start)]\r
-    mov     ax, cx\r
-    stosd                               ; [edi] <- return address of user code\r
-    add     eax, _RealAddr + 4 - _BackFromUserCode\r
-    mov     dword ptr [edx + (_RealAddr - SavedCr0)], eax\r
-    sgdt    fword ptr [edx + (SavedGdt - SavedCr0)]\r
-    sidt    fword ptr [esp + 36]        ; save IDT stack in argument space\r
-    mov     eax, cr0\r
-    mov     [edx], eax                  ; save CR0 in SavedCr0\r
-    and     eax, 7ffffffeh              ; clear PE, PG bits\r
-    mov     ebp, cr4\r
-    mov     [edx + (SavedCr4 - SavedCr0)], ebp\r
-    and     ebp, NOT 30h                ; clear PAE, PSE bits\r
-    push    10h\r
-    pop     ecx                         ; ecx <- selector for data segments\r
-    lgdt    fword ptr [edx + (_16Gdtr - SavedCr0)]\r
-    pushfd                              ; Save df/if indeed\r
-    call    fword ptr [edx + (_EntryPoint - SavedCr0)]\r
-    popfd\r
-    lidt    fword ptr [esp + 36]        ; restore protected mode IDTR\r
-    lea     eax, [ebp - sizeof (IA32_REGS)] ; eax <- the address of IA32_REGS\r
-    ret\r
-InternalAsmThunk16  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/Wbinvd.asm b/MdePkg/Library/BaseLib/Ia32/Wbinvd.asm
deleted file mode 100644 (file)
index 06db1c8..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   Wbinvd.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWbinvd function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .486p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWbinvd (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWbinvd   PROC\r
-    wbinvd\r
-    ret\r
-AsmWbinvd   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteCr0.asm b/MdePkg/Library/BaseLib/Ia32/WriteCr0.asm
deleted file mode 100644 (file)
index edcf710..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteCr0.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteCr0 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteCr0 (\r
-;   UINTN  Cr0\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteCr0 PROC\r
-    mov     eax, [esp + 4]\r
-    mov     cr0, eax\r
-    ret\r
-AsmWriteCr0 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteCr2.asm b/MdePkg/Library/BaseLib/Ia32/WriteCr2.asm
deleted file mode 100644 (file)
index 06c54b0..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteCr2.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteCr2 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteCr2 (\r
-;   UINTN  Cr2\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteCr2 PROC\r
-    mov     eax, [esp + 4]\r
-    mov     cr2, eax\r
-    ret\r
-AsmWriteCr2 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteCr3.asm b/MdePkg/Library/BaseLib/Ia32/WriteCr3.asm
deleted file mode 100644 (file)
index 69e87ba..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteCr3.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteCr3 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteCr3 (\r
-;   UINTN  Cr3\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteCr3 PROC\r
-    mov     eax, [esp + 4]\r
-    mov     cr3, eax\r
-    ret\r
-AsmWriteCr3 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteCr4.asm b/MdePkg/Library/BaseLib/Ia32/WriteCr4.asm
deleted file mode 100644 (file)
index ad45348..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteCr4.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteCr4 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteCr4 (\r
-;   UINTN  Cr4\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteCr4 PROC\r
-    mov     eax, [esp + 4]\r
-    mov     cr4, eax\r
-    ret\r
-AsmWriteCr4 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteDr0.asm b/MdePkg/Library/BaseLib/Ia32/WriteDr0.asm
deleted file mode 100644 (file)
index 5528134..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr0.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr0 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr0 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr0 PROC\r
-    mov     eax, [esp + 4]\r
-    mov     dr0, eax\r
-    ret\r
-AsmWriteDr0 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteDr1.asm b/MdePkg/Library/BaseLib/Ia32/WriteDr1.asm
deleted file mode 100644 (file)
index ad9f885..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr1.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr1 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr1 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr1 PROC\r
-    mov     eax, [esp + 4]\r
-    mov     dr1, eax\r
-    ret\r
-AsmWriteDr1 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteDr2.asm b/MdePkg/Library/BaseLib/Ia32/WriteDr2.asm
deleted file mode 100644 (file)
index 266ff7d..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr2.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr2 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr2 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr2 PROC\r
-    mov     eax, [esp + 4]\r
-    mov     dr2, eax\r
-    ret\r
-AsmWriteDr2 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteDr3.asm b/MdePkg/Library/BaseLib/Ia32/WriteDr3.asm
deleted file mode 100644 (file)
index b24d105..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr3.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr3 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr3 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr3 PROC\r
-    mov     eax, [esp + 4]\r
-    mov     dr3, eax\r
-    ret\r
-AsmWriteDr3 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteDr4.asm b/MdePkg/Library/BaseLib/Ia32/WriteDr4.asm
deleted file mode 100644 (file)
index bc8eef1..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr4.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr4 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr4 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr4 PROC\r
-    mov     eax, [esp + 4]\r
-    ;\r
-    ; DR4 is alias to DR6 only if DE (in CR4) is cleared. Otherwise, writing to\r
-    ; this register will cause a #UD exception.\r
-    ;\r
-    ; MS assembler doesn't support this instruction since no one would use it\r
-    ; under normal circustances. Here opcode is used.\r
-    ;\r
-    DB      0fh, 23h, 0e0h\r
-    ret\r
-AsmWriteDr4 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteDr5.asm b/MdePkg/Library/BaseLib/Ia32/WriteDr5.asm
deleted file mode 100644 (file)
index 0df8175..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr5.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr5 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr5 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr5 PROC\r
-    mov     eax, [esp + 4]\r
-    ;\r
-    ; DR5 is alias to DR7 only if DE (in CR4) is cleared. Otherwise, writing to\r
-    ; this register will cause a #UD exception.\r
-    ;\r
-    ; MS assembler doesn't support this instruction since no one would use it\r
-    ; under normal circustances. Here opcode is used.\r
-    ;\r
-    DB      0fh, 23h, 0e8h\r
-    ret\r
-AsmWriteDr5 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteDr6.asm b/MdePkg/Library/BaseLib/Ia32/WriteDr6.asm
deleted file mode 100644 (file)
index dc399ea..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr6.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr6 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr6 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr6 PROC\r
-    mov     eax, [esp + 4]\r
-    mov     dr6, eax\r
-    ret\r
-AsmWriteDr6 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteDr7.asm b/MdePkg/Library/BaseLib/Ia32/WriteDr7.asm
deleted file mode 100644 (file)
index ace8822..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr7.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr7 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr7 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr7 PROC\r
-    mov     eax, [esp + 4]\r
-    mov     dr7, eax\r
-    ret\r
-AsmWriteDr7 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteGdtr.asm b/MdePkg/Library/BaseLib/Ia32/WriteGdtr.asm
deleted file mode 100644 (file)
index d95ef31..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteGdtr.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteGdtr function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86WriteGdtr (\r
-;   IN      CONST IA32_DESCRIPTOR     *Idtr\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86WriteGdtr  PROC\r
-    mov     eax, [esp + 4]\r
-    lgdt    fword ptr [eax]\r
-    ret\r
-InternalX86WriteGdtr  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteIdtr.asm b/MdePkg/Library/BaseLib/Ia32/WriteIdtr.asm
deleted file mode 100644 (file)
index da15433..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2010, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteIdtr.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteIdtr function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86WriteIdtr (\r
-;   IN      CONST IA32_DESCRIPTOR     *Idtr\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86WriteIdtr  PROC\r
-    mov     eax, [esp + 4]\r
-    pushfd\r
-    cli\r
-    lidt    fword ptr [eax]\r
-    popfd\r
-    ret\r
-InternalX86WriteIdtr  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteLdtr.asm b/MdePkg/Library/BaseLib/Ia32/WriteLdtr.asm
deleted file mode 100644 (file)
index adec67d..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteLdtr.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteLdtr function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386p\r
-    .model  flat\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteLdtr (\r
-;   IN UINT16 Ldtr\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteLdtr   PROC\r
-    mov     eax, [esp + 4]\r
-    lldt    ax\r
-    ret\r
-AsmWriteLdtr   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteMm0.asm b/MdePkg/Library/BaseLib/Ia32/WriteMm0.asm
deleted file mode 100644 (file)
index de89a86..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm0.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm0 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm0 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm0 PROC\r
-    movq    mm0, [esp + 4]\r
-    ret\r
-AsmWriteMm0 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteMm1.asm b/MdePkg/Library/BaseLib/Ia32/WriteMm1.asm
deleted file mode 100644 (file)
index 2bb255f..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm1.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm1 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm1 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm1 PROC\r
-    movq    mm1, [esp + 4]\r
-    ret\r
-AsmWriteMm1 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteMm2.asm b/MdePkg/Library/BaseLib/Ia32/WriteMm2.asm
deleted file mode 100644 (file)
index 99a9fc8..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm2.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm2 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm2 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm2 PROC\r
-    movq    mm2, [esp + 4]\r
-    ret\r
-AsmWriteMm2 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteMm3.asm b/MdePkg/Library/BaseLib/Ia32/WriteMm3.asm
deleted file mode 100644 (file)
index 7ae32ed..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm3.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm3 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm3 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm3 PROC\r
-    movq    mm3, [esp + 4]\r
-    ret\r
-AsmWriteMm3 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteMm4.asm b/MdePkg/Library/BaseLib/Ia32/WriteMm4.asm
deleted file mode 100644 (file)
index 0ede40e..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm4.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm4 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm4 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm4 PROC\r
-    movq    mm4, [esp + 4]\r
-    ret\r
-AsmWriteMm4 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteMm5.asm b/MdePkg/Library/BaseLib/Ia32/WriteMm5.asm
deleted file mode 100644 (file)
index 1438a88..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm5.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm5 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm5 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm5 PROC\r
-    movq    mm5, [esp + 4]\r
-    ret\r
-AsmWriteMm5 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteMm6.asm b/MdePkg/Library/BaseLib/Ia32/WriteMm6.asm
deleted file mode 100644 (file)
index d7bce97..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm6.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm6 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm6 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm6 PROC\r
-    movq    mm6, [esp + 4]\r
-    ret\r
-AsmWriteMm6 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteMm7.asm b/MdePkg/Library/BaseLib/Ia32/WriteMm7.asm
deleted file mode 100644 (file)
index c6920b4..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm7.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm7 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm7 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm7 PROC\r
-    movq    mm7, [esp + 4]\r
-    ret\r
-AsmWriteMm7 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/Ia32/WriteMsr64.asm b/MdePkg/Library/BaseLib/Ia32/WriteMsr64.asm
deleted file mode 100644 (file)
index 109adc8..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMsr64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMsr64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586p\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmWriteMsr64 (\r
-;   IN UINT32  Index,\r
-;   IN UINT64  Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMsr64   PROC\r
-    mov     edx, [esp + 12]\r
-    mov     eax, [esp + 8]\r
-    mov     ecx, [esp + 4]\r
-    wrmsr\r
-    ret\r
-AsmWriteMsr64   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/CpuBreakpoint.asm b/MdePkg/Library/BaseLib/X64/CpuBreakpoint.asm
deleted file mode 100644 (file)
index 25dd9b4..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-;------------------------------------------------------------------------------ ;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CpuBreakpoint.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CpuBreakpoint function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; CpuBreakpoint (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-CpuBreakpoint   PROC\r
-    int  3\r
-    ret\r
-CpuBreakpoint   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/CpuId.asm b/MdePkg/Library/BaseLib/X64/CpuId.asm
deleted file mode 100644 (file)
index c6182c1..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CpuId.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmCpuid function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID\r
-;  EFIAPI\r
-;  AsmCpuid (\r
-;    IN   UINT32  RegisterInEax,\r
-;    OUT  UINT32  *RegisterOutEax  OPTIONAL,\r
-;    OUT  UINT32  *RegisterOutEbx  OPTIONAL,\r
-;    OUT  UINT32  *RegisterOutEcx  OPTIONAL,\r
-;    OUT  UINT32  *RegisterOutEdx  OPTIONAL\r
-;    )\r
-;------------------------------------------------------------------------------\r
-AsmCpuid    PROC    USES    rbx\r
-    mov     eax, ecx\r
-    push    rax                         ; save Index on stack\r
-    push    rdx\r
-    cpuid\r
-    test    r9, r9\r
-    jz      @F\r
-    mov     [r9], ecx\r
-@@:\r
-    pop     rcx\r
-    jrcxz   @F\r
-    mov     [rcx], eax\r
-@@:\r
-    mov     rcx, r8\r
-    jrcxz   @F\r
-    mov     [rcx], ebx\r
-@@:\r
-    mov     rcx, [rsp + 38h]\r
-    jrcxz   @F\r
-    mov     [rcx], edx\r
-@@:\r
-    pop     rax                         ; restore Index to rax as return value\r
-    ret\r
-AsmCpuid    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/CpuIdEx.asm b/MdePkg/Library/BaseLib/X64/CpuIdEx.asm
deleted file mode 100644 (file)
index b41ba8e..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CpuIdEx.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmCpuidEx function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  UINT32\r
-;  EFIAPI\r
-;  AsmCpuidEx (\r
-;    IN   UINT32  RegisterInEax,\r
-;    IN   UINT32  RegisterInEcx,\r
-;    OUT  UINT32  *RegisterOutEax  OPTIONAL,\r
-;    OUT  UINT32  *RegisterOutEbx  OPTIONAL,\r
-;    OUT  UINT32  *RegisterOutEcx  OPTIONAL,\r
-;    OUT  UINT32  *RegisterOutEdx  OPTIONAL\r
-;    )\r
-;------------------------------------------------------------------------------\r
-AsmCpuidEx  PROC    USES    rbx\r
-    mov     eax, ecx\r
-    mov     ecx, edx\r
-    push    rax                         ; save Index on stack\r
-    cpuid\r
-    mov     r10, [rsp + 38h]\r
-    test    r10, r10\r
-    jz      @F\r
-    mov     [r10], ecx\r
-@@:\r
-    mov     rcx, r8\r
-    jrcxz   @F\r
-    mov     [rcx], eax\r
-@@:\r
-    mov     rcx, r9\r
-    jrcxz   @F\r
-    mov     [rcx], ebx\r
-@@:\r
-    mov     rcx, [rsp + 40h]\r
-    jrcxz   @F\r
-    mov     [rcx], edx\r
-@@:\r
-    pop     rax                         ; restore Index to rax as return value\r
-    ret\r
-AsmCpuidEx  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/CpuPause.asm b/MdePkg/Library/BaseLib/X64/CpuPause.asm
deleted file mode 100644 (file)
index a84465f..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-;------------------------------------------------------------------------------ ;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CpuPause.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CpuPause function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; CpuPause (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-CpuPause    PROC\r
-    pause\r
-    ret\r
-CpuPause    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/DisableCache.asm b/MdePkg/Library/BaseLib/X64/DisableCache.asm
deleted file mode 100644 (file)
index 9fd5bd7..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   DisableCache.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   Set the CD bit of CR0 to 1, clear the NW bit of CR0 to 0, and flush all caches with a\r
-;   WBINVD instruction.\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmDisableCache (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmDisableCache PROC\r
-    mov     rax, cr0\r
-    bts     rax, 30\r
-    btr     rax, 29\r
-    mov     cr0, rax\r
-    wbinvd\r
-    ret\r
-AsmDisableCache ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/DisableInterrupts.asm b/MdePkg/Library/BaseLib/X64/DisableInterrupts.asm
deleted file mode 100644 (file)
index 4e54e0d..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   DisableInterrupts.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   DisableInterrupts function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; DisableInterrupts (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-DisableInterrupts   PROC\r
-    cli\r
-    ret\r
-DisableInterrupts   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/DisablePaging64.asm b/MdePkg/Library/BaseLib/X64/DisablePaging64.asm
deleted file mode 100644 (file)
index 32dcd5a..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   DisablePaging64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmDisablePaging64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86DisablePaging64 (\r
-;   IN      UINT16                    Cs,\r
-;   IN      UINT32                    EntryPoint,\r
-;   IN      UINT32                    Context1,  OPTIONAL\r
-;   IN      UINT32                    Context2,  OPTIONAL\r
-;   IN      UINT32                    NewStack\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86DisablePaging64    PROC\r
-    cli\r
-    lea     rsi, @F                     ; rsi <- The start address of transition code\r
-    mov     edi, [rsp + 28h]            ; rdi <- New stack\r
-    lea     rax, mTransitionEnd         ; rax <- end of transition code\r
-    sub     rax, rsi                    ; rax <- The size of transition piece code \r
-    add     rax, 4                      ; Round RAX up to the next 4 byte boundary\r
-    and     al, 0fch\r
-    sub     rdi, rax                    ; rdi <- Use stack to hold transition code\r
-    mov     r10d, edi                   ; r10 <- The start address of transicition code below 4G\r
-    push    rcx                         ; save rcx to stack\r
-    mov     rcx, rax                    ; rcx <- The size of transition piece code\r
-    rep     movsb                       ; copy transition code to top of new stack which must be below 4GB\r
-    pop     rcx                         ; restore rcx\r
-    \r
-    mov     esi, r8d\r
-    mov     edi, r9d\r
-    mov     eax, r10d                   ; eax <- start of the transition code on the stack\r
-    sub     eax, 4                      ; eax <- One slot below transition code on the stack\r
-    push    rcx                         ; push Cs to stack\r
-    push    r10                         ; push address of tansition code on stack\r
-    DB      48h                         ; prefix to composite "retq" with next "retf"\r
-    retf                                ; Use far return to load CS register from stack\r
-\r
-; Start of transition code\r
-@@:\r
-    mov     esp, eax                    ; set up new stack\r
-    mov     rax, cr0\r
-    btr     eax, 31                     ; Clear CR0.PG\r
-    mov     cr0, rax                    ; disable paging and caches\r
-    \r
-    mov     ebx, edx                    ; save EntryPoint to rbx, for rdmsr will overwrite rdx\r
-    mov     ecx, 0c0000080h\r
-    rdmsr\r
-    and     ah, NOT 1                   ; clear LME\r
-    wrmsr\r
-    mov     rax, cr4\r
-    and     al, NOT (1 SHL 5)           ; clear PAE\r
-    mov     cr4, rax\r
-    push    rdi                         ; push Context2\r
-    push    rsi                         ; push Context1\r
-    call    rbx                         ; transfer control to EntryPoint\r
-    hlt                                 ; no one should get here\r
-InternalX86DisablePaging64    ENDP\r
-\r
-mTransitionEnd LABEL    BYTE\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/EnableCache.asm b/MdePkg/Library/BaseLib/X64/EnableCache.asm
deleted file mode 100644 (file)
index 88b71d7..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   EnableCache.Asm\r
-;\r
-; Abstract:\r
-;\r
-;  Flush all caches with a WBINVD instruction, clear the CD bit of CR0 to 0, and clear \r
-;  the NW bit of CR0 to 0\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmEnableCache (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmEnableCache PROC\r
-    wbinvd\r
-    mov     rax, cr0\r
-    btr     rax, 29\r
-    btr     rax, 30\r
-    mov     cr0, rax\r
-    ret\r
-AsmEnableCache ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/EnableDisableInterrupts.asm b/MdePkg/Library/BaseLib/X64/EnableDisableInterrupts.asm
deleted file mode 100644 (file)
index f6b2d9c..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   EnableDisableInterrupts.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   EnableDisableInterrupts function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; EnableDisableInterrupts (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-EnableDisableInterrupts PROC\r
-    sti\r
-    cli\r
-    ret\r
-EnableDisableInterrupts ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/EnableInterrupts.asm b/MdePkg/Library/BaseLib/X64/EnableInterrupts.asm
deleted file mode 100644 (file)
index e776c27..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   EnableInterrupts.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   EnableInterrupts function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; EnableInterrupts (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-EnableInterrupts    PROC\r
-    sti\r
-    ret\r
-EnableInterrupts    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/FlushCacheLine.asm b/MdePkg/Library/BaseLib/X64/FlushCacheLine.asm
deleted file mode 100644 (file)
index e30f9a9..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   FlushCacheLine.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmFlushCacheLine function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID *\r
-; EFIAPI \r
-; AsmFlushCacheLine (\r
-;   IN      VOID                      *LinearAddress\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmFlushCacheLine   PROC\r
-    clflush [rcx]\r
-    mov     rax, rcx\r
-    ret\r
-AsmFlushCacheLine   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/FxRestore.asm b/MdePkg/Library/BaseLib/X64/FxRestore.asm
deleted file mode 100644 (file)
index 8496331..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   FxRestore.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmFxRestore function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86FxRestore (\r
-;   IN CONST IA32_FX_BUFFER *Buffer\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86FxRestore  PROC\r
-    fxrstor [rcx]\r
-    ret\r
-InternalX86FxRestore  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/FxSave.asm b/MdePkg/Library/BaseLib/X64/FxSave.asm
deleted file mode 100644 (file)
index d41e935..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   FxSave.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmFxSave function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86FxSave (\r
-;   OUT IA32_FX_BUFFER *Buffer\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86FxSave PROC\r
-    fxsave  [rcx]\r
-    ret\r
-InternalX86FxSave ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/Invd.asm b/MdePkg/Library/BaseLib/X64/Invd.asm
deleted file mode 100644 (file)
index ed6f95d..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   Invd.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmInvd function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmInvd (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmInvd PROC\r
-    invd\r
-    ret\r
-AsmInvd ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/LongJump.asm b/MdePkg/Library/BaseLib/X64/LongJump.asm
deleted file mode 100644 (file)
index eaf32ea..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   LongJump.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   Implementation of _LongJump() on x64.\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalLongJump (\r
-;   IN      BASE_LIBRARY_JUMP_BUFFER  *JumpBuffer,\r
-;   IN      UINTN                     Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalLongJump    PROC\r
-    mov     rbx, [rcx]\r
-    mov     rsp, [rcx + 8]\r
-    mov     rbp, [rcx + 10h]\r
-    mov     rdi, [rcx + 18h]\r
-    mov     rsi, [rcx + 20h]\r
-    mov     r12, [rcx + 28h]\r
-    mov     r13, [rcx + 30h]\r
-    mov     r14, [rcx + 38h]\r
-    mov     r15, [rcx + 40h]\r
-    ; load non-volatile fp registers\r
-    ldmxcsr [rcx + 50h]\r
-    movdqu  xmm6,  [rcx + 58h]\r
-    movdqu  xmm7,  [rcx + 68h]\r
-    movdqu  xmm8,  [rcx + 78h]\r
-    movdqu  xmm9,  [rcx + 88h]\r
-    movdqu  xmm10, [rcx + 98h]\r
-    movdqu  xmm11, [rcx + 0A8h]\r
-    movdqu  xmm12, [rcx + 0B8h]\r
-    movdqu  xmm13, [rcx + 0C8h]\r
-    movdqu  xmm14, [rcx + 0D8h]\r
-    movdqu  xmm15, [rcx + 0E8h]\r
-    mov     rax, rdx               ; set return value\r
-    jmp     qword ptr [rcx + 48h]\r
-InternalLongJump    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/Monitor.asm b/MdePkg/Library/BaseLib/X64/Monitor.asm
deleted file mode 100644 (file)
index 8ae6e73..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   Monitor.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmMonitor function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmMonitor (\r
-;   IN      UINTN                     Eax,\r
-;   IN      UINTN                     Ecx,\r
-;   IN      UINTN                     Edx\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmMonitor  PROC\r
-    mov     eax, ecx\r
-    mov     ecx, edx\r
-    mov     edx, r8d\r
-    DB      0fh, 1, 0c8h                ; monitor\r
-    ret\r
-AsmMonitor  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/Mwait.asm b/MdePkg/Library/BaseLib/X64/Mwait.asm
deleted file mode 100644 (file)
index 02ec863..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   Mwait.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmMwait function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmMwait (\r
-;   IN      UINTN                     Eax,\r
-;   IN      UINTN                     Ecx\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmMwait    PROC\r
-    mov     eax, ecx\r
-    mov     ecx, edx\r
-    DB      0fh, 1, 0c9h                ; mwait\r
-    ret\r
-AsmMwait    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/RdRand.asm b/MdePkg/Library/BaseLib/X64/RdRand.asm
deleted file mode 100644 (file)
index 8e2074e..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2015 - 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   RdRand.asm\r
-;\r
-; Abstract:\r
-;\r
-;   Generates random number through CPU RdRand instruction under 64-bit platform.\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  Generates a 16 bit random number through RDRAND instruction.\r
-;  Return TRUE if Rand generated successfully, or FALSE if not.\r
-;\r
-;  BOOLEAN EFIAPI InternalX86RdRand16 (UINT16 *Rand);\r
-;------------------------------------------------------------------------------\r
-InternalX86RdRand16  PROC\r
-    ; rdrand   ax                  ; generate a 16 bit RN into eax,\r
-                                   ; CF=1 if RN generated ok, otherwise CF=0\r
-    db     0fh, 0c7h, 0f0h         ; rdrand r16: "0f c7 /6  ModRM:r/m(w)"\r
-    jc     rn16_ok                 ; jmp if CF=1\r
-    xor    rax, rax                ; reg=0 if CF=0\r
-    ret                            ; return with failure status\r
-rn16_ok:\r
-    mov    [rcx], ax\r
-    mov    rax,  1\r
-    ret\r
-InternalX86RdRand16 ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-;  Generates a 32 bit random number through RDRAND instruction.\r
-;  Return TRUE if Rand generated successfully, or FALSE if not.\r
-;\r
-;  BOOLEAN EFIAPI InternalX86RdRand32 (UINT32 *Rand);\r
-;------------------------------------------------------------------------------\r
-InternalX86RdRand32  PROC\r
-    ; rdrand   eax                 ; generate a 32 bit RN into eax,\r
-                                   ; CF=1 if RN generated ok, otherwise CF=0\r
-    db     0fh, 0c7h, 0f0h         ; rdrand r32: "0f c7 /6  ModRM:r/m(w)"\r
-    jc     rn32_ok                 ; jmp if CF=1\r
-    xor    rax, rax                ; reg=0 if CF=0\r
-    ret                            ; return with failure status\r
-rn32_ok:\r
-    mov    [rcx], eax\r
-    mov    rax,  1\r
-    ret\r
-InternalX86RdRand32 ENDP\r
-\r
-;------------------------------------------------------------------------------\r
-;  Generates a 64 bit random number through one RDRAND instruction.\r
-;  Return TRUE if Rand generated successfully, or FALSE if not.\r
-;\r
-;  BOOLEAN EFIAPI InternalX86RdRand64 (UINT64 *Random);\r
-;------------------------------------------------------------------------------\r
-InternalX86RdRand64  PROC\r
-    ; rdrand   rax                 ; generate a 64 bit RN into rax,\r
-                                   ; CF=1 if RN generated ok, otherwise CF=0\r
-    db     048h, 0fh, 0c7h, 0f0h   ; rdrand r64: "REX.W + 0f c7 /6 ModRM:r/m(w)"\r
-    jc     rn64_ok                 ; jmp if CF=1\r
-    xor    rax, rax                ; reg=0 if CF=0\r
-    ret                            ; return with failure status\r
-rn64_ok:\r
-    mov    [rcx], rax\r
-    mov    rax, 1\r
-    ret\r
-InternalX86RdRand64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadCr0.asm b/MdePkg/Library/BaseLib/X64/ReadCr0.asm
deleted file mode 100644 (file)
index c3ff5b0..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadCr0.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadCr0 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadCr0 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadCr0  PROC\r
-    mov     rax, cr0\r
-    ret\r
-AsmReadCr0  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadCr2.asm b/MdePkg/Library/BaseLib/X64/ReadCr2.asm
deleted file mode 100644 (file)
index f1473b9..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadCr2.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadCr2 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadCr2 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadCr2  PROC\r
-    mov     rax, cr2\r
-    ret\r
-AsmReadCr2  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadCr3.asm b/MdePkg/Library/BaseLib/X64/ReadCr3.asm
deleted file mode 100644 (file)
index 432468e..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadCr3.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadCr3 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadCr3 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadCr3  PROC\r
-    mov     rax, cr3\r
-    ret\r
-AsmReadCr3  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadCr4.asm b/MdePkg/Library/BaseLib/X64/ReadCr4.asm
deleted file mode 100644 (file)
index 17d4499..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadCr4.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadCr4 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadCr4 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadCr4  PROC\r
-    mov     rax, cr4\r
-    ret\r
-AsmReadCr4  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadCs.asm b/MdePkg/Library/BaseLib/X64/ReadCs.asm
deleted file mode 100644 (file)
index ac3040c..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadCs.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadCs function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadCs (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadCs   PROC\r
-    mov     eax, cs\r
-    ret\r
-AsmReadCs   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadDr0.asm b/MdePkg/Library/BaseLib/X64/ReadDr0.asm
deleted file mode 100644 (file)
index 8ac85ad..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr0.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr0 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr0 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr0  PROC\r
-    mov     rax, dr0\r
-    ret\r
-AsmReadDr0  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadDr1.asm b/MdePkg/Library/BaseLib/X64/ReadDr1.asm
deleted file mode 100644 (file)
index 8b042e2..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr1.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr1 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr1 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr1  PROC\r
-    mov     rax, dr1\r
-    ret\r
-AsmReadDr1  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadDr2.asm b/MdePkg/Library/BaseLib/X64/ReadDr2.asm
deleted file mode 100644 (file)
index 9361756..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr2.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr2 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr2 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr2  PROC\r
-    mov     rax, dr2\r
-    ret\r
-AsmReadDr2  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadDr3.asm b/MdePkg/Library/BaseLib/X64/ReadDr3.asm
deleted file mode 100644 (file)
index a25fc9d..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr3.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr3 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr3 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr3  PROC\r
-    mov     rax, dr3\r
-    ret\r
-AsmReadDr3  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadDr4.asm b/MdePkg/Library/BaseLib/X64/ReadDr4.asm
deleted file mode 100644 (file)
index dc6c5e9..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr4.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr4 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr4 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr4  PROC\r
-    ;\r
-    ; There's no obvious reason to access this register, since it's aliased to\r
-    ; DR7 when DE=0 or an exception generated when DE=1\r
-    ;\r
-    DB      0fh, 21h, 0e0h\r
-    ret\r
-AsmReadDr4  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadDr5.asm b/MdePkg/Library/BaseLib/X64/ReadDr5.asm
deleted file mode 100644 (file)
index 7e31352..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr5.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr5 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr5 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr5  PROC\r
-    ;\r
-    ; There's no obvious reason to access this register, since it's aliased to\r
-    ; DR7 when DE=0 or an exception generated when DE=1\r
-    ;\r
-    DB      0fh, 21h, 0e8h\r
-    ret\r
-AsmReadDr5  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadDr6.asm b/MdePkg/Library/BaseLib/X64/ReadDr6.asm
deleted file mode 100644 (file)
index ee6b9ec..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr6.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr6 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr6 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr6  PROC\r
-    mov     rax, dr6\r
-    ret\r
-AsmReadDr6  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadDr7.asm b/MdePkg/Library/BaseLib/X64/ReadDr7.asm
deleted file mode 100644 (file)
index 7173057..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDr7.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDr7 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadDr7 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDr7  PROC\r
-    mov     rax, dr7\r
-    ret\r
-AsmReadDr7  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadDs.asm b/MdePkg/Library/BaseLib/X64/ReadDs.asm
deleted file mode 100644 (file)
index d67512c..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadDs.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadDs function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadDs (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadDs   PROC\r
-    mov     eax, ds\r
-    ret\r
-AsmReadDs   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadEflags.asm b/MdePkg/Library/BaseLib/X64/ReadEflags.asm
deleted file mode 100644 (file)
index b3ecc7c..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadEflags.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadEflags function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmReadEflags (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadEflags   PROC\r
-    pushfq\r
-    pop     rax\r
-    ret\r
-AsmReadEflags   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadEs.asm b/MdePkg/Library/BaseLib/X64/ReadEs.asm
deleted file mode 100644 (file)
index 76cffdc..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadEs.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadEs function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadEs (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadEs   PROC\r
-    mov     eax, es\r
-    ret\r
-AsmReadEs   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadFs.asm b/MdePkg/Library/BaseLib/X64/ReadFs.asm
deleted file mode 100644 (file)
index e91aa14..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadFs.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadFs function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadFs (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadFs   PROC\r
-    mov     eax, fs\r
-    ret\r
-AsmReadFs   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadGdtr.asm b/MdePkg/Library/BaseLib/X64/ReadGdtr.asm
deleted file mode 100644 (file)
index ebc60bd..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadGdtr.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadGdtr function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86ReadGdtr (\r
-;   OUT IA32_DESCRIPTOR  *Gdtr\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86ReadGdtr   PROC\r
-    sgdt    fword ptr [rcx]\r
-    ret\r
-InternalX86ReadGdtr   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadGs.asm b/MdePkg/Library/BaseLib/X64/ReadGs.asm
deleted file mode 100644 (file)
index f185c38..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadGs.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadGs function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadGs (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadGs   PROC\r
-    mov     eax, gs\r
-    ret\r
-AsmReadGs   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadIdtr.asm b/MdePkg/Library/BaseLib/X64/ReadIdtr.asm
deleted file mode 100644 (file)
index 4d53feb..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadIdtr.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadIdtr function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86ReadIdtr (\r
-;   OUT     IA32_DESCRIPTOR           *Idtr\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86ReadIdtr   PROC\r
-    sidt    fword ptr [rcx]\r
-    ret\r
-InternalX86ReadIdtr   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadLdtr.asm b/MdePkg/Library/BaseLib/X64/ReadLdtr.asm
deleted file mode 100644 (file)
index dbe517e..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadLdtr.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadLdtr function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadLdtr (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadLdtr PROC\r
-    sldt    eax\r
-    ret\r
-AsmReadLdtr ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadMm0.asm b/MdePkg/Library/BaseLib/X64/ReadMm0.asm
deleted file mode 100644 (file)
index 99212c7..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm0.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm0 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm0 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm0  PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 7eh, 0c0h\r
-    ret\r
-AsmReadMm0  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadMm1.asm b/MdePkg/Library/BaseLib/X64/ReadMm1.asm
deleted file mode 100644 (file)
index 7a9ae7c..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm1.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm1 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm1 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm1  PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 7eh, 0c8h\r
-    ret\r
-AsmReadMm1  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadMm2.asm b/MdePkg/Library/BaseLib/X64/ReadMm2.asm
deleted file mode 100644 (file)
index 337ac73..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm2.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm2 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm2 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm2  PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 7eh, 0d0h\r
-    ret\r
-AsmReadMm2  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadMm3.asm b/MdePkg/Library/BaseLib/X64/ReadMm3.asm
deleted file mode 100644 (file)
index 266e29a..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm3.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm3 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm3 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm3  PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 7eh, 0d8h\r
-    ret\r
-AsmReadMm3  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadMm4.asm b/MdePkg/Library/BaseLib/X64/ReadMm4.asm
deleted file mode 100644 (file)
index 9cc7435..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm4.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm4 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm4 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm4  PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 7eh, 0e0h\r
-    ret\r
-AsmReadMm4  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadMm5.asm b/MdePkg/Library/BaseLib/X64/ReadMm5.asm
deleted file mode 100644 (file)
index b665225..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm5.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm5 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm5 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm5  PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 7eh, 0e8h\r
-    ret\r
-AsmReadMm5  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadMm6.asm b/MdePkg/Library/BaseLib/X64/ReadMm6.asm
deleted file mode 100644 (file)
index 1e3ebc5..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm6.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm6 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm6 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm6  PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 7eh, 0f0h\r
-    ret\r
-AsmReadMm6  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadMm7.asm b/MdePkg/Library/BaseLib/X64/ReadMm7.asm
deleted file mode 100644 (file)
index 8228672..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMm7.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMm7 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMm7 (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMm7  PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 7eh, 0f8h\r
-    ret\r
-AsmReadMm7  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadMsr64.asm b/MdePkg/Library/BaseLib/X64/ReadMsr64.asm
deleted file mode 100644 (file)
index 878ed18..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadMsr64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadMsr64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadMsr64 (\r
-;   IN UINT32  Index\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadMsr64    PROC\r
-    rdmsr                               ; edx & eax are zero extended\r
-    shl     rdx, 20h\r
-    or      rax, rdx\r
-    ret\r
-AsmReadMsr64    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadPmc.asm b/MdePkg/Library/BaseLib/X64/ReadPmc.asm
deleted file mode 100644 (file)
index 1b74f67..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadPmc.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadPmc function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadPmc (\r
-;   IN UINT32   PmcIndex\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadPmc  PROC\r
-    rdpmc\r
-    shl     rdx, 20h\r
-    or      rax, rdx\r
-    ret\r
-AsmReadPmc  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadSs.asm b/MdePkg/Library/BaseLib/X64/ReadSs.asm
deleted file mode 100644 (file)
index 8f308c4..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadSs.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadSs function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadSs (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadSs   PROC\r
-    mov     eax, ss\r
-    ret\r
-AsmReadSs   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadTr.asm b/MdePkg/Library/BaseLib/X64/ReadTr.asm
deleted file mode 100644 (file)
index a114f53..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadTr.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadTr function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; AsmReadTr (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadTr   PROC\r
-    str     eax\r
-    ret\r
-AsmReadTr   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/ReadTsc.asm b/MdePkg/Library/BaseLib/X64/ReadTsc.asm
deleted file mode 100644 (file)
index d792bfb..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ReadTsc.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmReadTsc function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmReadTsc (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmReadTsc  PROC\r
-    rdtsc\r
-    shl     rdx, 20h\r
-    or      rax, rdx\r
-    ret\r
-AsmReadTsc  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/SetJump.asm b/MdePkg/Library/BaseLib/X64/SetJump.asm
deleted file mode 100644 (file)
index 13cb323..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetJump.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   Implementation of SetJump() on x64.\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-EXTERN   InternalAssertJumpBuffer:PROC\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; SetJump (\r
-;   OUT     BASE_LIBRARY_JUMP_BUFFER  *JumpBuffer\r
-;   );\r
-;------------------------------------------------------------------------------\r
-SetJump     PROC\r
-    push    rcx\r
-    add     rsp, -20h\r
-    call    InternalAssertJumpBuffer\r
-    add     rsp, 20h\r
-    pop     rcx\r
-    pop     rdx\r
-    mov     [rcx], rbx\r
-    mov     [rcx + 8], rsp\r
-    mov     [rcx + 10h], rbp\r
-    mov     [rcx + 18h], rdi\r
-    mov     [rcx + 20h], rsi\r
-    mov     [rcx + 28h], r12\r
-    mov     [rcx + 30h], r13\r
-    mov     [rcx + 38h], r14\r
-    mov     [rcx + 40h], r15\r
-    mov     [rcx + 48h], rdx\r
-    ; save non-volatile fp registers\r
-    stmxcsr [rcx + 50h]\r
-    movdqu  [rcx + 58h], xmm6\r
-    movdqu  [rcx + 68h], xmm7\r
-    movdqu  [rcx + 78h], xmm8\r
-    movdqu  [rcx + 88h], xmm9\r
-    movdqu  [rcx + 98h], xmm10\r
-    movdqu  [rcx + 0A8h], xmm11\r
-    movdqu  [rcx + 0B8h], xmm12\r
-    movdqu  [rcx + 0C8h], xmm13\r
-    movdqu  [rcx + 0D8h], xmm14\r
-    movdqu  [rcx + 0E8h], xmm15\r
-    xor     rax, rax\r
-    jmp     rdx\r
-SetJump     ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/SwitchStack.asm b/MdePkg/Library/BaseLib/X64/SwitchStack.asm
deleted file mode 100644 (file)
index 0f802b0..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SwitchStack.Asm\r
-;\r
-; Abstract:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; Routine Description:\r
-;\r
-;   Routine for switching stacks with 2 parameters\r
-;\r
-; Arguments:\r
-;\r
-;   (rcx) EntryPoint    - Entry point with new stack.\r
-;   (rdx) Context1      - Parameter1 for entry point.\r
-;   (r8)  Context2      - Parameter2 for entry point.\r
-;   (r9)  NewStack      - The pointer to new stack.\r
-;\r
-; Returns:\r
-;\r
-;   None\r
-;\r
-;------------------------------------------------------------------------------\r
-InternalSwitchStack PROC\r
-    mov     rax, rcx\r
-    mov     rcx, rdx\r
-    mov     rdx, r8\r
-    ;\r
-    ; Reserve space for register parameters (rcx, rdx, r8 & r9) on the stack,\r
-    ; in case the callee wishes to spill them.\r
-    ;\r
-    lea     rsp, [r9 - 20h]\r
-    call    rax\r
-InternalSwitchStack ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/Thunk16.asm b/MdePkg/Library/BaseLib/X64/Thunk16.asm
deleted file mode 100644 (file)
index e01de27..0000000
+++ /dev/null
@@ -1,315 +0,0 @@
-\r
-#include "BaseLibInternals.h"\r
-\r
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2013, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   Thunk.asm\r
-;\r
-; Abstract:\r
-;\r
-;   Real mode thunk\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-EXTERNDEF   m16Start:BYTE\r
-EXTERNDEF   m16Size:WORD\r
-EXTERNDEF   mThunk16Attr:WORD\r
-EXTERNDEF   m16Gdt:WORD\r
-EXTERNDEF   m16GdtrBase:WORD\r
-EXTERNDEF   mTransition:WORD\r
-\r
-IA32_REGS   STRUC   4t\r
-_EDI        DD      ?\r
-_ESI        DD      ?\r
-_EBP        DD      ?\r
-_ESP        DD      ?\r
-_EBX        DD      ?\r
-_EDX        DD      ?\r
-_ECX        DD      ?\r
-_EAX        DD      ?\r
-_DS         DW      ?\r
-_ES         DW      ?\r
-_FS         DW      ?\r
-_GS         DW      ?\r
-_EFLAGS     DQ      ?\r
-_EIP        DD      ?\r
-_CS         DW      ?\r
-_SS         DW      ?\r
-IA32_REGS   ENDS\r
-\r
-    .const\r
-\r
-m16Size         DW      InternalAsmThunk16 - m16Start\r
-mThunk16Attr    DW      _ThunkAttr - m16Start\r
-m16Gdt          DW      _NullSeg - m16Start\r
-m16GdtrBase     DW      _16GdtrBase - m16Start\r
-mTransition     DW      _EntryPoint - m16Start\r
-\r
-    .code\r
-\r
-m16Start    LABEL   BYTE\r
-\r
-SavedGdt    LABEL   FWORD\r
-            DW      ?\r
-            DQ      ?\r
-\r
-;------------------------------------------------------------------------------\r
-; _BackFromUserCode() takes control in real mode after 'retf' has been executed\r
-; by user code. It will be shadowed to somewhere in memory below 1MB.\r
-;------------------------------------------------------------------------------\r
-_BackFromUserCode   PROC\r
-    ;\r
-    ; The order of saved registers on the stack matches the order they appears\r
-    ; in IA32_REGS structure. This facilitates wrapper function to extract them\r
-    ; into that structure.\r
-    ;\r
-    ; Some instructions for manipulation of segment registers have to be written\r
-    ; in opcode since 64-bit MASM prevents accesses to those registers.\r
-    ;\r
-    DB      16h                         ; push ss\r
-    DB      0eh                         ; push cs\r
-    DB      66h\r
-    call    @Base                       ; push eip\r
-@Base:\r
-    DB      66h\r
-    push    0                           ; reserved high order 32 bits of EFlags\r
-    pushf                               ; pushfd actually\r
-    cli                                 ; disable interrupts\r
-    push    gs\r
-    push    fs\r
-    DB      6                           ; push es\r
-    DB      1eh                         ; push ds\r
-    DB      66h, 60h                    ; pushad\r
-    DB      66h, 0bah                   ; mov edx, imm32\r
-_ThunkAttr  DD      ?\r
-    test    dl, THUNK_ATTRIBUTE_DISABLE_A20_MASK_INT_15\r
-    jz      @1\r
-    mov     eax, 15cd2401h              ; mov ax, 2401h & int 15h\r
-    cli                                 ; disable interrupts\r
-    jnc     @2\r
-@1:\r
-    test    dl, THUNK_ATTRIBUTE_DISABLE_A20_MASK_KBD_CTRL\r
-    jz      @2\r
-    in      al, 92h\r
-    or      al, 2\r
-    out     92h, al                     ; deactivate A20M#\r
-@2:\r
-    xor     ax, ax                      ; xor eax, eax\r
-    mov     eax, ss                     ; mov ax, ss\r
-    lea     bp, [esp + sizeof (IA32_REGS)]\r
-    ;\r
-    ; rsi in the following 2 instructions is indeed bp in 16-bit code\r
-    ;\r
-    mov     word ptr (IA32_REGS ptr [rsi - sizeof (IA32_REGS)])._ESP, bp\r
-    DB      66h\r
-    mov     ebx, (IA32_REGS ptr [rsi - sizeof (IA32_REGS)])._EIP\r
-    shl     ax, 4                       ; shl eax, 4\r
-    add     bp, ax                      ; add ebp, eax\r
-    mov     ax, cs\r
-    shl     ax, 4\r
-    lea     ax, [eax + ebx + (@64BitCode - @Base)]\r
-    DB      66h, 2eh, 89h, 87h          ; mov cs:[bx + (@64Eip - @Base)], eax\r
-    DW      @64Eip - @Base\r
-    DB      66h, 0b8h                   ; mov eax, imm32\r
-SavedCr4    DD      ?\r
-    mov     cr4, rax\r
-    ;\r
-    ; rdi in the instruction below is indeed bx in 16-bit code\r
-    ;\r
-    DB      66h, 2eh                    ; 2eh is "cs:" segment override\r
-    lgdt    fword ptr [rdi + (SavedGdt - @Base)]\r
-    DB      66h\r
-    mov     ecx, 0c0000080h\r
-    rdmsr\r
-    or      ah, 1\r
-    wrmsr\r
-    DB      66h, 0b8h                   ; mov eax, imm32\r
-SavedCr0    DD      ?\r
-    mov     cr0, rax\r
-    DB      66h, 0eah                   ; jmp far cs:@64Bit\r
-@64Eip      DD      ?\r
-SavedCs     DW      ?\r
-@64BitCode:\r
-    db      090h \r
-    db      048h, 0bch                 ; mov rsp, imm64\r
-SavedSp     DQ   ?                     ; restore stack\r
-    nop\r
-    ret\r
-_BackFromUserCode   ENDP\r
-\r
-_EntryPoint DD      _ToUserCode - m16Start\r
-            DW      CODE16\r
-_16Gdtr     LABEL   FWORD\r
-            DW      GDT_SIZE - 1\r
-_16GdtrBase DQ      _NullSeg\r
-_16Idtr     FWORD   (1 SHL 10) - 1\r
-\r
-;------------------------------------------------------------------------------\r
-; _ToUserCode() takes control in real mode before passing control to user code.\r
-; It will be shadowed to somewhere in memory below 1MB.\r
-;------------------------------------------------------------------------------\r
-_ToUserCode PROC\r
-    mov     ss, edx                     ; set new segment selectors\r
-    mov     ds, edx\r
-    mov     es, edx\r
-    mov     fs, edx\r
-    mov     gs, edx\r
-    DB      66h\r
-    mov     ecx, 0c0000080h\r
-    mov     cr0, rax                    ; real mode starts at next instruction\r
-    rdmsr\r
-    and     ah, NOT 1\r
-    wrmsr\r
-    mov     cr4, rbp\r
-    mov     ss, esi                     ; set up 16-bit stack segment\r
-    mov     sp, bx                      ; set up 16-bit stack pointer\r
-    DB      66h                         ; make the following call 32-bit\r
-    call    @Base                       ; push eip\r
-@Base:\r
-    pop     bp                          ; ebp <- address of @Base\r
-    push    [esp + sizeof (IA32_REGS) + 2]\r
-    lea     eax, [rsi + (@RealMode - @Base)]    ; rsi is "bp" in 16-bit code\r
-    push    rax\r
-    retf                                ; execution begins at next instruction\r
-@RealMode:\r
-    DB      66h, 2eh                    ; CS and operand size override\r
-    lidt    fword ptr [rsi + (_16Idtr - @Base)]\r
-    DB      66h, 61h                    ; popad\r
-    DB      1fh                         ; pop ds\r
-    DB      07h                         ; pop es\r
-    pop     fs\r
-    pop     gs\r
-    popf                                ; popfd\r
-    lea     sp, [esp + 4]               ; skip high order 32 bits of EFlags\r
-    DB      66h                         ; make the following retf 32-bit\r
-    retf                                ; transfer control to user code\r
-_ToUserCode ENDP\r
-\r
-CODE16  = _16Code - $\r
-DATA16  = _16Data - $\r
-DATA32  = _32Data - $\r
-\r
-_NullSeg    DQ      0\r
-_16Code     LABEL   QWORD\r
-            DW      -1\r
-            DW      0\r
-            DB      0\r
-            DB      9bh\r
-            DB      8fh                 ; 16-bit segment, 4GB limit\r
-            DB      0\r
-_16Data     LABEL   QWORD\r
-            DW      -1\r
-            DW      0\r
-            DB      0\r
-            DB      93h\r
-            DB      8fh                 ; 16-bit segment, 4GB limit\r
-            DB      0\r
-_32Data     LABEL   QWORD\r
-            DW      -1\r
-            DW      0\r
-            DB      0\r
-            DB      93h\r
-            DB      0cfh                ; 16-bit segment, 4GB limit\r
-            DB      0\r
-\r
-GDT_SIZE = $ - _NullSeg\r
-\r
-;------------------------------------------------------------------------------\r
-; IA32_REGISTER_SET *\r
-; EFIAPI\r
-; InternalAsmThunk16 (\r
-;   IN      IA32_REGISTER_SET         *RegisterSet,\r
-;   IN OUT  VOID                      *Transition\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalAsmThunk16  PROC    USES    rbp rbx rsi rdi\r
-    mov     rbx, ds\r
-    push    rbx          ; Save ds segment register on the stack\r
-    mov     rbx, es\r
-    push    rbx          ; Save es segment register on the stack\r
-    mov     rbx, ss\r
-    push    rbx          ; Save ss segment register on the stack\r
-    \r
-    push    fs\r
-    push    gs\r
-    mov     rsi, rcx\r
-    movzx   r8d, (IA32_REGS ptr [rsi])._SS\r
-    mov     edi, (IA32_REGS ptr [rsi])._ESP\r
-    lea     rdi, [edi - (sizeof (IA32_REGS) + 4)]\r
-    imul    eax, r8d, 16                ; eax <- r8d(stack segment) * 16\r
-    mov     ebx, edi                    ; ebx <- stack for 16-bit code\r
-    push    sizeof (IA32_REGS) / 4\r
-    add     edi, eax                    ; edi <- linear address of 16-bit stack\r
-    pop     rcx\r
-    rep     movsd                       ; copy RegSet\r
-    lea     ecx, [rdx + (SavedCr4 - m16Start)]\r
-    mov     eax, edx                    ; eax <- transition code address\r
-    and     edx, 0fh\r
-    shl     eax, 12                     ; segment address in high order 16 bits\r
-    lea     ax, [rdx + (_BackFromUserCode - m16Start)]  ; offset address\r
-    stosd                               ; [edi] <- return address of user code\r
-  \r
-    sgdt    fword ptr [rsp + 60h]       ; save GDT stack in argument space\r
-    movzx   r10, word ptr [rsp + 60h]   ; r10 <- GDT limit \r
-    lea     r11, [rcx + (InternalAsmThunk16 - SavedCr4) + 0xf]\r
-    and     r11, 0xfffffff0             ; r11 <- 16-byte aligned shadowed GDT table in real mode buffer\r
-    \r
-    mov     word ptr [rcx + (SavedGdt - SavedCr4)], r10w      ; save the limit of shadowed GDT table\r
-    mov     qword ptr [rcx + (SavedGdt - SavedCr4) + 2], r11  ; save the base address of shadowed GDT table\r
-    \r
-    mov     rsi, qword ptr [rsp + 62h]  ; rsi <- the original GDT base address\r
-    xchg    rcx, r10                    ; save rcx to r10 and initialize rcx to be the limit of GDT table\r
-    inc     rcx                         ; rcx <- the size of memory to copy\r
-    xchg    rdi, r11                    ; save rdi to r11 and initialize rdi to the base address of shadowed GDT table\r
-    rep     movsb                       ; perform memory copy to shadow GDT table\r
-    mov     rcx, r10                    ; restore the orignal rcx before memory copy\r
-    mov     rdi, r11                    ; restore the original rdi before memory copy\r
-    \r
-    sidt    fword ptr [rsp + 50h]       ; save IDT stack in argument space\r
-    mov     rax, cr0\r
-    mov     [rcx + (SavedCr0 - SavedCr4)], eax\r
-    and     eax, 7ffffffeh              ; clear PE, PG bits\r
-    mov     rbp, cr4\r
-    mov     [rcx], ebp                  ; save CR4 in SavedCr4\r
-    and     ebp, NOT 30h                ; clear PAE, PSE bits\r
-    mov     esi, r8d                    ; esi <- 16-bit stack segment\r
-    DB      6ah, DATA32                 ; push DATA32\r
-    pop     rdx                         ; rdx <- 32-bit data segment selector\r
-    lgdt    fword ptr [rcx + (_16Gdtr - SavedCr4)]\r
-    mov     ss, edx\r
-    pushfq\r
-    lea     edx, [rdx + DATA16 - DATA32]\r
-    lea     r8, @RetFromRealMode\r
-    push    r8\r
-    mov     r8d, cs\r
-    mov     [rcx + (SavedCs - SavedCr4)], r8w\r
-    mov     [rcx + (SavedSp - SavedCr4)], rsp\r
-    jmp     fword ptr [rcx + (_EntryPoint - SavedCr4)]\r
-@RetFromRealMode:\r
-    popfq\r
-    lgdt    fword ptr [rsp + 60h]       ; restore protected mode GDTR\r
-    lidt    fword ptr [rsp + 50h]       ; restore protected mode IDTR\r
-    lea     eax, [rbp - sizeof (IA32_REGS)]\r
-    pop     gs\r
-    pop     fs\r
-    pop     rbx\r
-    mov     ss, rbx\r
-    pop     rbx\r
-    mov     es, rbx\r
-    pop     rbx\r
-    mov     ds, rbx\r
-    ret\r
-InternalAsmThunk16  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/Wbinvd.asm b/MdePkg/Library/BaseLib/X64/Wbinvd.asm
deleted file mode 100644 (file)
index b0807e0..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   Wbinvd.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWbinvd function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWbinvd (\r
-;   VOID\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWbinvd   PROC\r
-    wbinvd\r
-    ret\r
-AsmWbinvd   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteCr0.asm b/MdePkg/Library/BaseLib/X64/WriteCr0.asm
deleted file mode 100644 (file)
index 98fef9c..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteCr0.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteCr0 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteCr0 (\r
-;   UINTN  Cr0\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteCr0 PROC\r
-    mov     cr0, rcx\r
-    mov     rax, rcx\r
-    ret\r
-AsmWriteCr0 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteCr2.asm b/MdePkg/Library/BaseLib/X64/WriteCr2.asm
deleted file mode 100644 (file)
index 3d77d6a..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteCr2.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteCr2 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteCr2 (\r
-;   UINTN  Cr2\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteCr2 PROC\r
-    mov     cr2, rcx\r
-    mov     rax, rcx\r
-    ret\r
-AsmWriteCr2 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteCr3.asm b/MdePkg/Library/BaseLib/X64/WriteCr3.asm
deleted file mode 100644 (file)
index 9b39938..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteCr3.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteCr3 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteCr3 (\r
-;   UINTN  Cr3\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteCr3 PROC\r
-    mov     cr3, rcx\r
-    mov     rax, rcx\r
-    ret\r
-AsmWriteCr3 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteCr4.asm b/MdePkg/Library/BaseLib/X64/WriteCr4.asm
deleted file mode 100644 (file)
index 1455842..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteCr4.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteCr4 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteCr4 (\r
-;   UINTN  Cr4\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteCr4 PROC\r
-    mov     cr4, rcx\r
-    mov     rax, rcx\r
-    ret\r
-AsmWriteCr4 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteDr0.asm b/MdePkg/Library/BaseLib/X64/WriteDr0.asm
deleted file mode 100644 (file)
index dafe9ab..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr0.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr0 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr0 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr0 PROC\r
-    mov     dr0, rcx\r
-    mov     rax, rcx\r
-    ret\r
-AsmWriteDr0 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteDr1.asm b/MdePkg/Library/BaseLib/X64/WriteDr1.asm
deleted file mode 100644 (file)
index 7167f5e..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr1.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr1 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr1 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr1 PROC\r
-    mov     dr1, rcx\r
-    mov     rax, rcx\r
-    ret\r
-AsmWriteDr1 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteDr2.asm b/MdePkg/Library/BaseLib/X64/WriteDr2.asm
deleted file mode 100644 (file)
index c14ba34..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr2.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr2 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr2 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr2 PROC\r
-    mov     dr2, rcx\r
-    mov     rax, rcx\r
-    ret\r
-AsmWriteDr2 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteDr3.asm b/MdePkg/Library/BaseLib/X64/WriteDr3.asm
deleted file mode 100644 (file)
index 8873916..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr3.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr3 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr3 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr3 PROC\r
-    mov     dr3, rcx\r
-    mov     rax, rcx\r
-    ret\r
-AsmWriteDr3 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteDr4.asm b/MdePkg/Library/BaseLib/X64/WriteDr4.asm
deleted file mode 100644 (file)
index 4803525..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr4.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr4 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr4 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr4 PROC\r
-    ;\r
-    ; There's no obvious reason to access this register, since it's aliased to\r
-    ; DR6 when DE=0 or an exception generated when DE=1\r
-    ;\r
-    DB      0fh, 23h, 0e1h\r
-    mov     rax, rcx\r
-    ret\r
-AsmWriteDr4 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteDr5.asm b/MdePkg/Library/BaseLib/X64/WriteDr5.asm
deleted file mode 100644 (file)
index 2cdb328..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr5.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr5 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr5 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr5 PROC\r
-    ;\r
-    ; There's no obvious reason to access this register, since it's aliased to\r
-    ; DR7 when DE=0 or an exception generated when DE=1\r
-    ;\r
-    DB      0fh, 23h, 0e9h\r
-    mov     rax, rcx\r
-    ret\r
-AsmWriteDr5 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteDr6.asm b/MdePkg/Library/BaseLib/X64/WriteDr6.asm
deleted file mode 100644 (file)
index 22c9c87..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr6.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr6 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr6 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr6 PROC\r
-    mov     dr6, rcx\r
-    mov     rax, rcx\r
-    ret\r
-AsmWriteDr6 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteDr7.asm b/MdePkg/Library/BaseLib/X64/WriteDr7.asm
deleted file mode 100644 (file)
index b55afd3..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteDr7.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteDr7 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINTN\r
-; EFIAPI\r
-; AsmWriteDr7 (\r
-;   IN UINTN Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteDr7 PROC\r
-    mov     dr7, rcx\r
-    mov     rax, rcx\r
-    ret\r
-AsmWriteDr7 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteGdtr.asm b/MdePkg/Library/BaseLib/X64/WriteGdtr.asm
deleted file mode 100644 (file)
index 0cc8b7a..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteGdtr.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteGdtr function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86WriteGdtr (\r
-;   IN      CONST IA32_DESCRIPTOR     *Idtr\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86WriteGdtr  PROC\r
-    lgdt    fword ptr [rcx]\r
-    ret\r
-InternalX86WriteGdtr  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteIdtr.asm b/MdePkg/Library/BaseLib/X64/WriteIdtr.asm
deleted file mode 100644 (file)
index 01ca1c0..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2010, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteIdtr.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteIdtr function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; InternalX86WriteIdtr (\r
-;   IN      CONST IA32_DESCRIPTOR     *Idtr\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalX86WriteIdtr  PROC\r
-    pushfq\r
-    cli\r
-    lidt    fword ptr [rcx]\r
-    popfq\r
-    ret\r
-InternalX86WriteIdtr  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteLdtr.asm b/MdePkg/Library/BaseLib/X64/WriteLdtr.asm
deleted file mode 100644 (file)
index af67863..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteLdtr.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteLdtr function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteLdtr (\r
-;   IN UINT16 Ldtr\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteLdtr    PROC\r
-    lldt    cx\r
-    ret\r
-AsmWriteLdtr    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteMm0.asm b/MdePkg/Library/BaseLib/X64/WriteMm0.asm
deleted file mode 100644 (file)
index f40db03..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm0.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm0 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm0 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm0 PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 6eh, 0c1h\r
-    ret\r
-AsmWriteMm0 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteMm1.asm b/MdePkg/Library/BaseLib/X64/WriteMm1.asm
deleted file mode 100644 (file)
index ec17208..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm1.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm1 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm1 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm1 PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 6eh, 0c9h\r
-    ret\r
-AsmWriteMm1 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteMm2.asm b/MdePkg/Library/BaseLib/X64/WriteMm2.asm
deleted file mode 100644 (file)
index 38c0d5e..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm2.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm2 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm2 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm2 PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 6eh, 0d1h\r
-    ret\r
-AsmWriteMm2 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteMm3.asm b/MdePkg/Library/BaseLib/X64/WriteMm3.asm
deleted file mode 100644 (file)
index 5f5bbdd..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm3.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm3 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm3 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm3 PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 6eh, 0d9h\r
-    ret\r
-AsmWriteMm3 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteMm4.asm b/MdePkg/Library/BaseLib/X64/WriteMm4.asm
deleted file mode 100644 (file)
index 7f53313..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm4.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm4 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm4 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm4 PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 6eh, 0e1h\r
-    ret\r
-AsmWriteMm4 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteMm5.asm b/MdePkg/Library/BaseLib/X64/WriteMm5.asm
deleted file mode 100644 (file)
index ea30bc1..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm5.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm5 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm5 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm5 PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 6eh, 0e9h\r
-    ret\r
-AsmWriteMm5 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteMm6.asm b/MdePkg/Library/BaseLib/X64/WriteMm6.asm
deleted file mode 100644 (file)
index aa926ae..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm6.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm6 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm6 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm6 PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 6eh, 0f1h\r
-    ret\r
-AsmWriteMm6 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteMm7.asm b/MdePkg/Library/BaseLib/X64/WriteMm7.asm
deleted file mode 100644 (file)
index 652e041..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMm7.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMm7 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID\r
-; EFIAPI\r
-; AsmWriteMm7 (\r
-;   IN UINT64   Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMm7 PROC\r
-    ;\r
-    ; 64-bit MASM doesn't support MMX instructions, so use opcode here\r
-    ;\r
-    DB      48h, 0fh, 6eh, 0f9h\r
-    ret\r
-AsmWriteMm7 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseLib/X64/WriteMsr64.asm b/MdePkg/Library/BaseLib/X64/WriteMsr64.asm
deleted file mode 100644 (file)
index 19ef572..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   WriteMsr64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   AsmWriteMsr64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; AsmWriteMsr64 (\r
-;   IN UINT32  Index,\r
-;   IN UINT64  Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-AsmWriteMsr64   PROC\r
-    mov     rax, rdx                    ; meanwhile, rax <- return value\r
-    shr     rdx, 20h                    ; edx:eax contains the value to write\r
-    wrmsr\r
-    ret\r
-AsmWriteMsr64   ENDP\r
-\r
-    END\r
index af08b7d6d9bf8c315468ea843b953df36ecf00e8..da6589a6a4494450b0d26c7860b0b16615dbd4ec 100644 (file)
@@ -4,7 +4,7 @@
 #  Base Memory Library that uses MMX registers for high performance.\r
 #  Optimized for use in DXE.\r
 #\r
-#  Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
   Ia32/CopyMem.nasm\r
   Ia32/CopyMem.S\r
   Ia32/ScanMem64.nasm\r
-  Ia32/ScanMem64.asm\r
   Ia32/ScanMem32.nasm\r
-  Ia32/ScanMem32.asm\r
   Ia32/ScanMem16.nasm\r
-  Ia32/ScanMem16.asm\r
   Ia32/ScanMem8.nasm\r
-  Ia32/ScanMem8.asm\r
   Ia32/CompareMem.nasm\r
-  Ia32/CompareMem.asm\r
   Ia32/SetMem64.nasm\r
-  Ia32/SetMem64.asm\r
   Ia32/SetMem32.nasm\r
-  Ia32/SetMem32.asm\r
   Ia32/SetMem16.nasm\r
-  Ia32/SetMem16.asm\r
   Ia32/ZeroMem.nasm\r
-  Ia32/ZeroMem.asm\r
   Ia32/SetMem.nasm\r
-  Ia32/SetMem.asm\r
   Ia32/CopyMem.nasm\r
-  Ia32/CopyMem.asm\r
   Ia32/IsZeroBuffer.nasm\r
 \r
 [Sources.X64]\r
   X64/ZeroMem.nasm\r
-  X64/ZeroMem.asm\r
   X64/ScanMem64.nasm\r
-  X64/ScanMem64.asm\r
   X64/ScanMem32.nasm\r
-  X64/ScanMem32.asm\r
   X64/ScanMem16.nasm\r
-  X64/ScanMem16.asm\r
   X64/ScanMem8.nasm\r
-  X64/ScanMem8.asm\r
   X64/CompareMem.nasm\r
-  X64/CompareMem.asm\r
   X64/SetMem64.nasm\r
-  X64/SetMem64.asm\r
   X64/SetMem32.nasm\r
-  X64/SetMem32.asm\r
   X64/SetMem16.nasm\r
-  X64/SetMem16.asm\r
   X64/SetMem.nasm\r
-  X64/SetMem.asm\r
   X64/CopyMem.nasm\r
-  X64/CopyMem.asm\r
   X64/ScanMem64.nasm\r
   X64/ScanMem64.S\r
   X64/ScanMem32.nasm\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/CompareMem.asm b/MdePkg/Library/BaseMemoryLibMmx/Ia32/CompareMem.asm
deleted file mode 100644 (file)
index 5a0792d..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CompareMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CompareMem function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; INTN\r
-; EFIAPI\r
-; InternalMemCompareMem (\r
-;   IN      CONST VOID                *DestinationBuffer,\r
-;   IN      CONST VOID                *SourceBuffer,\r
-;   IN      UINTN                     Length\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemCompareMem   PROC    USES    esi edi\r
-    mov     esi, [esp + 12]\r
-    mov     edi, [esp + 16]\r
-    mov     ecx, [esp + 20]\r
-    repe    cmpsb\r
-    movzx   eax, byte ptr [esi - 1]\r
-    movzx   edx, byte ptr [edi - 1]\r
-    sub     eax, edx\r
-    ret\r
-InternalMemCompareMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.asm b/MdePkg/Library/BaseMemoryLibMmx/Ia32/CopyMem.asm
deleted file mode 100644 (file)
index 38e1da7..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CopyMem.asm\r
-;\r
-; Abstract:\r
-;\r
-;   CopyMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemCopyMem (\r
-;    IN VOID   *Destination,\r
-;    IN VOID   *Source,\r
-;    IN UINTN  Count\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemCopyMem  PROC    USES    esi edi\r
-    mov     esi, [esp + 16]             ; esi <- Source\r
-    mov     edi, [esp + 12]             ; edi <- Destination\r
-    mov     edx, [esp + 20]             ; edx <- Count\r
-    lea     eax, [esi + edx - 1]        ; eax <- End of Source\r
-    cmp     esi, edi\r
-    jae     @F\r
-    cmp     eax, edi                    ; Overlapped?\r
-    jae     @CopyBackward               ; Copy backward if overlapped\r
-@@:\r
-    mov     ecx, edx\r
-    and     edx, 7\r
-    shr     ecx, 3                      ; ecx <- # of Qwords to copy\r
-    jz      @CopyBytes\r
-    push    eax\r
-    push    eax\r
-    movq    [esp], mm0                  ; save mm0\r
-@@:\r
-    movq    mm0, [esi]\r
-    movq    [edi], mm0\r
-    add     esi, 8\r
-    add     edi, 8\r
-    loop    @B\r
-    movq    mm0, [esp]                  ; restore mm0\r
-    pop     ecx                         ; stack cleanup\r
-    pop     ecx                         ; stack cleanup\r
-    jmp     @CopyBytes\r
-@CopyBackward:\r
-    mov     esi, eax                    ; esi <- Last byte in Source\r
-    lea     edi, [edi + edx - 1]        ; edi <- Last byte in Destination\r
-    std\r
-@CopyBytes:\r
-    mov     ecx, edx\r
-    rep     movsb\r
-    cld\r
-    mov     eax, [esp + 12]\r
-    ret\r
-InternalMemCopyMem  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem16.asm b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem16.asm
deleted file mode 100644 (file)
index 0ee190e..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem16 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem16 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT16                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem16    PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     eax, [esp + 16]\r
-    repne   scasw\r
-    lea     eax, [edi - 2]\r
-    cmovnz  eax, ecx\r
-    ret\r
-InternalMemScanMem16    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem32.asm b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem32.asm
deleted file mode 100644 (file)
index adbf295..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem32 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem32 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT32                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem32    PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     eax, [esp + 16]\r
-    repne   scasd\r
-    lea     eax, [edi - 4]\r
-    cmovnz  eax, ecx\r
-    ret\r
-InternalMemScanMem32    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem64.asm b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem64.asm
deleted file mode 100644 (file)
index 0a0f5d0..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem64 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem64 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT64                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem64    PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     eax, [esp + 16]\r
-    mov     edx, [esp + 20]\r
-    mov     edi, [esp + 8]\r
-@@:\r
-    cmp     eax, [edi]\r
-    lea     edi, [edi + 8]\r
-    loopne  @B\r
-    jne     @F\r
-    cmp     edx, [edi - 4]\r
-    jecxz   @F\r
-    jne     @B\r
-@@:\r
-    lea     eax, [edi - 8]\r
-    cmovne  eax, ecx\r
-    ret\r
-InternalMemScanMem64    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem8.asm b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ScanMem8.asm
deleted file mode 100644 (file)
index c64d41d..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem8.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem8 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem8 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT8                     Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem8 PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     al, [esp + 16]\r
-    repne   scasb\r
-    lea     eax, [edi - 1]\r
-    cmovnz  eax, ecx\r
-    ret\r
-InternalMemScanMem8 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.asm b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem.asm
deleted file mode 100644 (file)
index e43ea08..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT8  Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem   PROC    USES    edi\r
-    mov     al, [esp + 16]\r
-    mov     ah, al\r
-    shrd    edx, eax, 16\r
-    shld    eax, edx, 16\r
-    mov     ecx, [esp + 12]             ; ecx <- Count\r
-    mov     edi, [esp + 8]              ; edi <- Buffer\r
-    mov     edx, ecx\r
-    and     edx, 7\r
-    shr     ecx, 3                      ; # of Qwords to set\r
-    jz      @SetBytes\r
-    add     esp, -10h\r
-    movq    [esp], mm0                  ; save mm0\r
-    movq    [esp + 8], mm1              ; save mm1\r
-    movd    mm0, eax\r
-    movd    mm1, eax\r
-    psllq   mm0, 32\r
-    por     mm0, mm1                    ; fill mm0 with 8 Value's\r
-@@:\r
-    movq    [edi], mm0\r
-    add     edi, 8\r
-    loop    @B\r
-    movq    mm0, [esp]                  ; restore mm0\r
-    movq    mm1, [esp + 8]              ; restore mm1\r
-    add     esp, 10h                    ; stack cleanup\r
-@SetBytes:\r
-    mov     ecx, edx\r
-    rep     stosb\r
-    mov     eax, [esp + 8]              ; eax <- Buffer as return value\r
-    ret\r
-InternalMemSetMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.asm b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem16.asm
deleted file mode 100644 (file)
index 8d5bca0..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem16.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem16 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem16 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT16 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem16 PROC    USES    edi\r
-    mov     eax, [esp + 16]\r
-    shrd    edx, eax, 16\r
-    shld    eax, edx, 16\r
-    mov     edx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     ecx, edx\r
-    and     edx, 3\r
-    shr     ecx, 2\r
-    jz      @SetWords\r
-    movd    mm0, eax\r
-    movd    mm1, eax\r
-    psllq   mm0, 32\r
-    por     mm0, mm1\r
-@@:\r
-    movq    [edi], mm0\r
-    add     edi, 8\r
-    loop    @B\r
-@SetWords:\r
-    mov     ecx, edx\r
-    rep     stosw\r
-    mov     eax, [esp + 8]\r
-    ret\r
-InternalMemSetMem16 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.asm b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem32.asm
deleted file mode 100644 (file)
index 031c48a..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem32.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem32 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem32 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT32 Value\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem32 PROC\r
-    mov     eax, [esp + 4]              ; eax <- Buffer as return value\r
-    mov     ecx, [esp + 8]              ; ecx <- Count\r
-    movd    mm0, dword ptr [esp + 12]             ; mm0 <- Value\r
-    shr     ecx, 1                      ; ecx <- number of qwords to set\r
-    mov     edx, eax                    ; edx <- Buffer\r
-    jz      @SetDwords\r
-    movq    mm1, mm0\r
-    psllq   mm1, 32\r
-    por     mm0, mm1\r
-@@:\r
-    movq    qword ptr [edx], mm0\r
-    lea     edx, [edx + 8]              ; use "lea" to avoid change in flags\r
-    loop    @B\r
-@SetDwords:\r
-    jnc     @F\r
-    movd    dword ptr [edx], mm0\r
-@@:\r
-    ret\r
-InternalMemSetMem32 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.asm b/MdePkg/Library/BaseMemoryLibMmx/Ia32/SetMem64.asm
deleted file mode 100644 (file)
index 42870bd..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem64.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem64 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT64 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem64 PROC\r
-    mov     eax, [esp + 4]\r
-    mov     ecx, [esp + 8]\r
-    movq    mm0, [esp + 12]\r
-    mov     edx, eax\r
-@@:\r
-    movq    [edx], mm0\r
-    add     edx, 8\r
-    loop    @B\r
-    ret\r
-InternalMemSetMem64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/Ia32/ZeroMem.asm b/MdePkg/Library/BaseMemoryLibMmx/Ia32/ZeroMem.asm
deleted file mode 100644 (file)
index 1676b35..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ZeroMem.asm\r
-;\r
-; Abstract:\r
-;\r
-;   ZeroMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .mmx\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemZeroMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemZeroMem  PROC    USES    edi\r
-    mov     edi, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    mov     edx, ecx\r
-    shr     ecx, 3\r
-    jz      @ZeroBytes\r
-    pxor    mm0, mm0\r
-@@:\r
-    movq    [edi], mm0\r
-    add     edi, 8\r
-    loop    @B\r
-@ZeroBytes:\r
-    and     edx, 7\r
-    xor     eax, eax\r
-    mov     ecx, edx\r
-    rep     stosb\r
-    mov     eax, [esp + 8]\r
-    ret\r
-InternalMemZeroMem  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.asm b/MdePkg/Library/BaseMemoryLibMmx/X64/CompareMem.asm
deleted file mode 100644 (file)
index 0ef05b2..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CompareMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CompareMem function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; INTN\r
-; EFIAPI\r
-; InternalMemCompareMem (\r
-;   IN      CONST VOID                *DestinationBuffer,\r
-;   IN      CONST VOID                *SourceBuffer,\r
-;   IN      UINTN                     Length\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemCompareMem   PROC    USES    rsi rdi\r
-    mov     rsi, rcx\r
-    mov     rdi, rdx\r
-    mov     rcx, r8\r
-    repe    cmpsb\r
-    movzx   rax, byte ptr [rsi - 1]\r
-    movzx   rdx, byte ptr [rdi - 1]\r
-    sub     rax, rdx\r
-    ret\r
-InternalMemCompareMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/CopyMem.asm b/MdePkg/Library/BaseMemoryLibMmx/X64/CopyMem.asm
deleted file mode 100644 (file)
index 6e74985..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CopyMem.asm\r
-;\r
-; Abstract:\r
-;\r
-;   CopyMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID *\r
-; EFIAPI\r
-; InternalMemCopyMem (\r
-;   OUT     VOID                      *DestinationBuffer,\r
-;   IN      CONST VOID                *SourceBuffer,\r
-;   IN      UINTN                     Length\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemCopyMem  PROC    USES    rsi rdi\r
-    mov     rsi, rdx                    ; rsi <- Source\r
-    mov     rdi, rcx                    ; rdi <- Destination\r
-    lea     r9, [rsi + r8 - 1]          ; r9 <- End of Source\r
-    cmp     rsi, rdi\r
-    mov     rax, rdi                    ; rax <- Destination as return value\r
-    jae     @F\r
-    cmp     r9, rdi\r
-    jae     @CopyBackward               ; Copy backward if overlapped\r
-@@:\r
-    mov     rcx, r8\r
-    and     r8, 7\r
-    shr     rcx, 3                      ; rcx <- # of Qwords to copy\r
-    jz      @CopyBytes\r
-    DB      49h, 0fh, 7eh, 0c2h         ; movd r10, mm0 (Save mm0 in r10)\r
-@@:\r
-    DB      0fh, 6fh, 06h               ; movd mm0, [rsi]\r
-    DB      0fh, 0e7h, 07h              ; movntq [rdi], mm0\r
-    add     rsi, 8\r
-    add     rdi, 8\r
-    loop    @B\r
-    mfence\r
-    DB      49h, 0fh, 6eh, 0c2h         ; movd mm0, r10 (Restore mm0)\r
-    jmp     @CopyBytes\r
-@CopyBackward:\r
-    mov     rsi, r9                     ; rsi <- End of Source\r
-    lea     rdi, [rdi + r8 - 1]         ; rdi <- End of Destination\r
-    std                                 ; set direction flag\r
-@CopyBytes:\r
-    mov     rcx, r8\r
-    rep     movsb                       ; Copy bytes backward\r
-    cld\r
-    ret\r
-InternalMemCopyMem  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem16.asm b/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem16.asm
deleted file mode 100644 (file)
index a6114db..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem16 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem16 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT16                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem16    PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasw\r
-    lea     rax, [rdi - 2]\r
-    cmovnz  rax, rcx\r
-    ret\r
-InternalMemScanMem16    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem32.asm b/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem32.asm
deleted file mode 100644 (file)
index 40ff6c9..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem32 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem32 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT32                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem32    PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasd\r
-    lea     rax, [rdi - 4]\r
-    cmovnz  rax, rcx\r
-    ret\r
-InternalMemScanMem32    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem64.asm b/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem64.asm
deleted file mode 100644 (file)
index e78da7d..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem64 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem64 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT64                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem64    PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasq\r
-    lea     rax, [rdi - 8]\r
-    cmovnz  rax, rcx\r
-    ret\r
-InternalMemScanMem64    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem8.asm b/MdePkg/Library/BaseMemoryLibMmx/X64/ScanMem8.asm
deleted file mode 100644 (file)
index fee2397..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem8.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem8 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem8 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT8                     Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem8 PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    mov     rax, r8\r
-    repne   scasb\r
-    lea     rax, [rdi - 1]\r
-    cmovnz  rax, rcx                    ; set rax to 0 if not found\r
-    ret\r
-InternalMemScanMem8 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem.asm b/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem.asm
deleted file mode 100644 (file)
index 9ff949c..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID *\r
-; EFIAPI\r
-; InternalMemSetMem (\r
-;   OUT     VOID                      *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT8                     Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem   PROC    USES    rdi\r
-    mov     rax, r8\r
-    mov     ah, al\r
-    DB      48h, 0fh, 6eh, 0c0h         ; movd mm0, rax\r
-    mov     r8, rcx\r
-    mov     rdi, r8                     ; rdi <- Buffer\r
-    mov     rcx, rdx\r
-    and     edx, 7\r
-    shr     rcx, 3\r
-    jz      @SetBytes\r
-    DB      0fh, 70h, 0C0h, 00h         ; pshufw mm0, mm0, 0h\r
-@@:\r
-    DB      0fh, 0e7h, 07h              ; movntq [rdi], mm0\r
-    add     rdi, 8\r
-    loop    @B\r
-    mfence\r
-@SetBytes:\r
-    mov     ecx, edx\r
-    rep     stosb\r
-    mov     rax, r8\r
-    ret\r
-InternalMemSetMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem16.asm b/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem16.asm
deleted file mode 100644 (file)
index fbd98b0..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem16.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem16 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; VOID *\r
-; EFIAPI\r
-; InternalMemSetMem16 (\r
-;   OUT     VOID                      *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT16                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem16 PROC    USES    rdi\r
-    mov     rax, r8\r
-    DB      48h, 0fh, 6eh, 0c0h         ; movd mm0, rax\r
-    mov     r8, rcx\r
-    mov     rdi, r8\r
-    mov     rcx, rdx\r
-    and     edx, 3\r
-    shr     rcx, 2\r
-    jz      @SetWords\r
-    DB      0fh, 70h, 0C0h, 00h         ; pshufw mm0, mm0, 0h\r
-@@:\r
-    DB      0fh, 0e7h, 07h              ; movntq [rdi], mm0\r
-    add     rdi, 8\r
-    loop    @B\r
-    mfence\r
-@SetWords:\r
-    mov     ecx, edx\r
-    rep     stosw\r
-    mov     rax, r8\r
-    ret\r
-InternalMemSetMem16 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem32.asm b/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem32.asm
deleted file mode 100644 (file)
index a0bdd89..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem32.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem32 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem32 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT32 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem32 PROC\r
-    DB      49h, 0fh, 6eh, 0c0h         ; movd mm0, r8 (Value)\r
-    mov     rax, rcx                    ; rax <- Buffer\r
-    xchg    rcx, rdx                    ; rcx <- Count  rdx <- Buffer\r
-    shr     rcx, 1                      ; rcx <- # of qwords to set\r
-    jz      @SetDwords\r
-    DB      0fh, 70h, 0C0h, 44h         ; pshufw mm0, mm0, 44h\r
-@@:\r
-    DB      0fh, 0e7h, 02h              ; movntq [rdx], mm0\r
-    lea     rdx, [rdx + 8]              ; use "lea" to avoid flag changes\r
-    loop    @B\r
-    mfence\r
-@SetDwords:\r
-    jnc     @F\r
-    DB      0fh, 7eh, 02h               ; movd [rdx], mm0\r
-@@:\r
-    ret\r
-InternalMemSetMem32 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem64.asm b/MdePkg/Library/BaseMemoryLibMmx/X64/SetMem64.asm
deleted file mode 100644 (file)
index f26177f..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem64.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem64 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT64 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem64 PROC\r
-    DB      49h, 0fh, 6eh, 0c0h         ; movd mm0, r8 (Value)\r
-    mov     rax, rcx                    ; rax <- Buffer\r
-    xchg    rcx, rdx                    ; rcx <- Count\r
-@@:\r
-    DB      0fh, 0e7h, 02h              ; movntq  [rdx], mm0\r
-    add     rdx, 8\r
-    loop    @B\r
-    mfence\r
-    ret\r
-InternalMemSetMem64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibMmx/X64/ZeroMem.asm b/MdePkg/Library/BaseMemoryLibMmx/X64/ZeroMem.asm
deleted file mode 100644 (file)
index 0fcf50c..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ZeroMem.asm\r
-;\r
-; Abstract:\r
-;\r
-;   ZeroMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemZeroMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemZeroMem  PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    mov     r8, rdi\r
-    and     edx, 7\r
-    shr     rcx, 3\r
-    jz      @ZeroBytes\r
-    DB      0fh, 0efh, 0c0h             ; pxor mm0, mm0\r
-@@:\r
-    DB      0fh, 0e7h, 7                ; movntq [rdi], mm0\r
-    add     rdi, 8\r
-    loop    @B\r
-    DB      0fh, 0aeh, 0f0h             ; mfence\r
-@ZeroBytes:\r
-    xor     eax, eax\r
-    mov     ecx, edx\r
-    rep     stosb\r
-    mov     rax, r8\r
-    ret\r
-InternalMemZeroMem  ENDP\r
-\r
-    END\r
index bc5ec2f2531052eccab5d59f21a5f9e9f4fda0de..fa9e6d21b689df63af3dd3a76a82bf46c37a2cea 100644 (file)
@@ -4,7 +4,7 @@
 #  Base Memory Library that is optimized for use in DXE phase.  \r
 #  Uses REP, MMX, XMM registers as required for best performance.\r
 #\r
-#  Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
   Ia32/CopyMem.nasm\r
   Ia32/CopyMem.S\r
   Ia32/ScanMem64.nasm\r
-  Ia32/ScanMem64.asm\r
   Ia32/ScanMem32.nasm\r
-  Ia32/ScanMem32.asm\r
   Ia32/ScanMem16.nasm\r
-  Ia32/ScanMem16.asm\r
   Ia32/ScanMem8.nasm\r
-  Ia32/ScanMem8.asm\r
   Ia32/CompareMem.nasm\r
-  Ia32/CompareMem.asm\r
   Ia32/ZeroMem.nasm\r
-  Ia32/ZeroMem.asm\r
   Ia32/SetMem64.nasm\r
-  Ia32/SetMem64.asm\r
   Ia32/SetMem32.nasm\r
-  Ia32/SetMem32.asm\r
   Ia32/SetMem16.nasm\r
-  Ia32/SetMem16.asm\r
   Ia32/SetMem.nasm\r
-  Ia32/SetMem.asm\r
   Ia32/CopyMem.nasm\r
-  Ia32/CopyMem.asm\r
   Ia32/IsZeroBuffer.nasm\r
   MemLibGuid.c\r
 \r
 [Sources.X64]\r
   X64/ScanMem64.nasm\r
-  X64/ScanMem64.asm\r
   X64/ScanMem64.S\r
   X64/ScanMem32.nasm\r
-  X64/ScanMem32.asm\r
   X64/ScanMem32.S\r
   X64/ScanMem16.nasm\r
-  X64/ScanMem16.asm\r
   X64/ScanMem16.S\r
   X64/ScanMem8.nasm\r
-  X64/ScanMem8.asm\r
   X64/ScanMem8.S\r
   X64/CompareMem.nasm\r
-  X64/CompareMem.asm\r
   X64/CompareMem.S\r
   X64/ZeroMem.nasm\r
-  X64/ZeroMem.asm\r
   X64/ZeroMem.S\r
   X64/SetMem64.nasm\r
-  X64/SetMem64.asm\r
   X64/SetMem64.S\r
   X64/SetMem32.nasm\r
-  X64/SetMem32.asm\r
   X64/SetMem32.S\r
   X64/SetMem16.nasm\r
-  X64/SetMem16.asm\r
   X64/SetMem16.S\r
   X64/SetMem.nasm\r
-  X64/SetMem.asm\r
   X64/SetMem.S\r
   X64/CopyMem.nasm\r
-  X64/CopyMem.asm\r
   X64/CopyMem.S\r
   X64/IsZeroBuffer.nasm\r
   MemLibGuid.c\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CompareMem.asm b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CompareMem.asm
deleted file mode 100644 (file)
index 5a0792d..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CompareMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CompareMem function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; INTN\r
-; EFIAPI\r
-; InternalMemCompareMem (\r
-;   IN      CONST VOID                *DestinationBuffer,\r
-;   IN      CONST VOID                *SourceBuffer,\r
-;   IN      UINTN                     Length\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemCompareMem   PROC    USES    esi edi\r
-    mov     esi, [esp + 12]\r
-    mov     edi, [esp + 16]\r
-    mov     ecx, [esp + 20]\r
-    repe    cmpsb\r
-    movzx   eax, byte ptr [esi - 1]\r
-    movzx   edx, byte ptr [edi - 1]\r
-    sub     eax, edx\r
-    ret\r
-InternalMemCompareMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CopyMem.asm b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/CopyMem.asm
deleted file mode 100644 (file)
index a57a628..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CopyMem.asm\r
-;\r
-; Abstract:\r
-;\r
-;   CopyMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .xmm\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemCopyMem (\r
-;    IN VOID   *Destination,\r
-;    IN VOID   *Source,\r
-;    IN UINTN  Count\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemCopyMem  PROC    USES    esi edi\r
-    mov     esi, [esp + 16]             ; esi <- Source\r
-    mov     edi, [esp + 12]             ; edi <- Destination\r
-    mov     edx, [esp + 20]             ; edx <- Count\r
-    lea     eax, [esi + edx - 1]        ; eax <- End of Source\r
-    cmp     esi, edi\r
-    jae     @F\r
-    cmp     eax, edi                    ; Overlapped?\r
-    jae     @CopyBackward               ; Copy backward if overlapped\r
-@@:\r
-    xor     ecx, ecx\r
-    sub     ecx, edi\r
-    and     ecx, 15                     ; ecx + edi aligns on 16-byte boundary\r
-    jz      @F\r
-    cmp     ecx, edx\r
-    cmova   ecx, edx\r
-    sub     edx, ecx                    ; edx <- remaining bytes to copy\r
-    rep     movsb\r
-@@:\r
-    mov     ecx, edx\r
-    and     edx, 15\r
-    shr     ecx, 4                      ; ecx <- # of DQwords to copy\r
-    jz      @CopyBytes\r
-    add     esp, -16\r
-    movdqu  [esp], xmm0                 ; save xmm0\r
-@@:\r
-    movdqu  xmm0, [esi]                 ; esi may not be 16-bytes aligned\r
-    movntdq [edi], xmm0                 ; edi should be 16-bytes aligned\r
-    add     esi, 16\r
-    add     edi, 16\r
-    loop    @B\r
-    mfence\r
-    movdqu  xmm0, [esp]                 ; restore xmm0\r
-    add     esp, 16                     ; stack cleanup\r
-    jmp     @CopyBytes\r
-@CopyBackward:\r
-    mov     esi, eax                    ; esi <- Last byte in Source\r
-    lea     edi, [edi + edx - 1]        ; edi <- Last byte in Destination\r
-    std\r
-@CopyBytes:\r
-    mov     ecx, edx\r
-    rep     movsb\r
-    cld\r
-    mov     eax, [esp + 12]             ; eax <- Destination as return value\r
-    ret\r
-InternalMemCopyMem  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem16.asm b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem16.asm
deleted file mode 100644 (file)
index 0ee190e..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem16 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem16 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT16                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem16    PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     eax, [esp + 16]\r
-    repne   scasw\r
-    lea     eax, [edi - 2]\r
-    cmovnz  eax, ecx\r
-    ret\r
-InternalMemScanMem16    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem32.asm b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem32.asm
deleted file mode 100644 (file)
index adbf295..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem32 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem32 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT32                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem32    PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     eax, [esp + 16]\r
-    repne   scasd\r
-    lea     eax, [edi - 4]\r
-    cmovnz  eax, ecx\r
-    ret\r
-InternalMemScanMem32    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem64.asm b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem64.asm
deleted file mode 100644 (file)
index 0a0f5d0..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem64 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem64 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT64                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem64    PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     eax, [esp + 16]\r
-    mov     edx, [esp + 20]\r
-    mov     edi, [esp + 8]\r
-@@:\r
-    cmp     eax, [edi]\r
-    lea     edi, [edi + 8]\r
-    loopne  @B\r
-    jne     @F\r
-    cmp     edx, [edi - 4]\r
-    jecxz   @F\r
-    jne     @B\r
-@@:\r
-    lea     eax, [edi - 8]\r
-    cmovne  eax, ecx\r
-    ret\r
-InternalMemScanMem64    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem8.asm b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ScanMem8.asm
deleted file mode 100644 (file)
index c64d41d..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem8.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem8 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem8 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT8                     Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem8 PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     al, [esp + 16]\r
-    repne   scasb\r
-    lea     eax, [edi - 1]\r
-    cmovnz  eax, ecx\r
-    ret\r
-InternalMemScanMem8 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.asm b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem.asm
deleted file mode 100644 (file)
index 663d238..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT8  Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem   PROC    USES    edi\r
-    mov         ecx, [esp + 12]\r
-    mov         al,  [esp + 16]\r
-    mov         ah,  al\r
-    shrd        edx, eax, 16\r
-    shld        eax, edx, 16\r
-    mov         edx, ecx\r
-    mov         edi, [esp + 8]\r
-    shr         ecx, 2\r
-    rep stosd\r
-    mov         ecx, edx\r
-    and         ecx, 3\r
-    rep stosb\r
-    mov         eax, [esp + 8]\r
-    ret\r
-InternalMemSetMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.asm b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem16.asm
deleted file mode 100644 (file)
index 3f3350d..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem16 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem16 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT16 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem16 PROC    USES    edi\r
-    mov     eax, [esp + 16]\r
-    mov     edi, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    rep     stosw\r
-    mov     eax, [esp + 8]\r
-    ret\r
-InternalMemSetMem16 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem32.asm b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem32.asm
deleted file mode 100644 (file)
index b27b85b..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem32 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem32 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT32 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem32 PROC    USES    edi\r
-    mov     eax, [esp + 16]\r
-    mov     edi, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    rep     stosd\r
-    mov     eax, [esp + 8]\r
-    ret\r
-InternalMemSetMem32 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem64.asm b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/SetMem64.asm
deleted file mode 100644 (file)
index 146f3b9..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem64 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT64 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem64 PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     eax, [esp + 16]\r
-    mov     edx, [esp + 20]\r
-    mov     edi, [esp + 8]\r
-@@:\r
-    mov     [edi + ecx*8 - 8], eax\r
-    mov     [edi + ecx*8 - 4], edx\r
-    loop    @B\r
-    mov     eax, edi\r
-    ret\r
-InternalMemSetMem64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ZeroMem.asm b/MdePkg/Library/BaseMemoryLibOptDxe/Ia32/ZeroMem.asm
deleted file mode 100644 (file)
index 722bf67..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ZeroMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ZeroMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemZeroMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemZeroMem  PROC    USES    edi\r
-    xor     eax, eax\r
-    mov     edi, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    mov     edx, ecx\r
-    shr     ecx, 2\r
-    and     edx, 3\r
-    push    edi\r
-    rep     stosd\r
-    mov     ecx, edx\r
-    rep     stosb\r
-    pop     eax\r
-    ret\r
-InternalMemZeroMem  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/CompareMem.asm b/MdePkg/Library/BaseMemoryLibOptDxe/X64/CompareMem.asm
deleted file mode 100644 (file)
index 0ef05b2..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CompareMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CompareMem function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; INTN\r
-; EFIAPI\r
-; InternalMemCompareMem (\r
-;   IN      CONST VOID                *DestinationBuffer,\r
-;   IN      CONST VOID                *SourceBuffer,\r
-;   IN      UINTN                     Length\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemCompareMem   PROC    USES    rsi rdi\r
-    mov     rsi, rcx\r
-    mov     rdi, rdx\r
-    mov     rcx, r8\r
-    repe    cmpsb\r
-    movzx   rax, byte ptr [rsi - 1]\r
-    movzx   rdx, byte ptr [rdi - 1]\r
-    sub     rax, rdx\r
-    ret\r
-InternalMemCompareMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/CopyMem.asm b/MdePkg/Library/BaseMemoryLibOptDxe/X64/CopyMem.asm
deleted file mode 100644 (file)
index 8bcaca7..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CopyMem.asm\r
-;\r
-; Abstract:\r
-;\r
-;   CopyMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemCopyMem (\r
-;    IN VOID   *Destination,\r
-;    IN VOID   *Source,\r
-;    IN UINTN  Count\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemCopyMem  PROC    USES    rsi rdi\r
-    mov     rsi, rdx                    ; rsi <- Source\r
-    mov     rdi, rcx                    ; rdi <- Destination\r
-    lea     r9, [rsi + r8 - 1]          ; r9 <- Last byte of Source\r
-    cmp     rsi, rdi\r
-    mov     rax, rdi                    ; rax <- Destination as return value\r
-    jae     @F                          ; Copy forward if Source > Destination\r
-    cmp     r9, rdi                     ; Overlapped?\r
-    jae     @CopyBackward               ; Copy backward if overlapped\r
-@@:\r
-    xor     rcx, rcx\r
-    sub     rcx, rdi                    ; rcx <- -rdi\r
-    and     rcx, 15                     ; rcx + rsi should be 16 bytes aligned\r
-    jz      @F                          ; skip if rcx == 0\r
-    cmp     rcx, r8\r
-    cmova   rcx, r8\r
-    sub     r8, rcx\r
-    rep     movsb\r
-@@:\r
-    mov     rcx, r8\r
-    and     r8, 15\r
-    shr     rcx, 4                      ; rcx <- # of DQwords to copy\r
-    jz      @CopyBytes\r
-    movdqa  [rsp + 18h], xmm0           ; save xmm0 on stack\r
-@@:\r
-    movdqu  xmm0, [rsi]                 ; rsi may not be 16-byte aligned\r
-    movntdq [rdi], xmm0                 ; rdi should be 16-byte aligned\r
-    add     rsi, 16\r
-    add     rdi, 16\r
-    loop    @B\r
-    mfence\r
-    movdqa  xmm0, [rsp + 18h]           ; restore xmm0\r
-    jmp     @CopyBytes                  ; copy remaining bytes\r
-@CopyBackward:\r
-    mov     rsi, r9                     ; rsi <- Last byte of Source\r
-    lea     rdi, [rdi + r8 - 1]         ; rdi <- Last byte of Destination\r
-    std\r
-@CopyBytes:\r
-    mov     rcx, r8\r
-    rep     movsb\r
-    cld\r
-    ret\r
-InternalMemCopyMem  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem16.asm b/MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem16.asm
deleted file mode 100644 (file)
index a6114db..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem16 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem16 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT16                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem16    PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasw\r
-    lea     rax, [rdi - 2]\r
-    cmovnz  rax, rcx\r
-    ret\r
-InternalMemScanMem16    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem32.asm b/MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem32.asm
deleted file mode 100644 (file)
index 40ff6c9..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem32 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem32 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT32                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem32    PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasd\r
-    lea     rax, [rdi - 4]\r
-    cmovnz  rax, rcx\r
-    ret\r
-InternalMemScanMem32    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem64.asm b/MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem64.asm
deleted file mode 100644 (file)
index e78da7d..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem64 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem64 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT64                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem64    PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasq\r
-    lea     rax, [rdi - 8]\r
-    cmovnz  rax, rcx\r
-    ret\r
-InternalMemScanMem64    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem8.asm b/MdePkg/Library/BaseMemoryLibOptDxe/X64/ScanMem8.asm
deleted file mode 100644 (file)
index fee2397..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem8.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem8 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem8 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT8                     Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem8 PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    mov     rax, r8\r
-    repne   scasb\r
-    lea     rax, [rdi - 1]\r
-    cmovnz  rax, rcx                    ; set rax to 0 if not found\r
-    ret\r
-InternalMemScanMem8 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.asm b/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem.asm
deleted file mode 100644 (file)
index 5ca1571..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT8  Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem   PROC    USES    rdi rbx\r
-    push    rcx       ; push Buffer\r
-    mov     rax, r8   ; rax = Value\r
-    and     rax, 0ffh ; rax = lower 8 bits of r8, upper 56 bits are 0\r
-    mov     ah,  al   ; ah  = al\r
-    mov     bx,  ax   ; bx  = ax\r
-    shl     rax, 10h  ; rax = ax << 16\r
-    mov     ax,  bx   ; ax  = bx\r
-    mov     rbx, rax  ; ebx = eax\r
-    shl     rax, 20h  ; rax = rax << 32\r
-    or      rax, rbx  ; eax = ebx\r
-    mov     rdi, rcx  ; rdi = Buffer\r
-    mov     rcx, rdx  ; rcx = Count\r
-    shr     rcx, 3    ; rcx = rcx / 8\r
-    cld\r
-    rep     stosq \r
-    mov     rcx, rdx  ; rcx = rdx\r
-    and     rcx, 7    ; rcx = rcx & 7\r
-    rep     stosb \r
-    pop     rax       ; rax = Buffer\r
-    ret\r
-InternalMemSetMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem16.asm b/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem16.asm
deleted file mode 100644 (file)
index 1ac3b8d..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem16 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem16 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT16 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem16 PROC    USES    rdi\r
-    push    rcx\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
-    rep     stosw\r
-    pop     rax\r
-    ret\r
-InternalMemSetMem16 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem32.asm b/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem32.asm
deleted file mode 100644 (file)
index 4a42b2f..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem32 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem32 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT32 Value\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem32 PROC    USES    rdi\r
-    push    rcx\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
-    rep     stosd\r
-    pop     rax\r
-    ret\r
-InternalMemSetMem32 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem64.asm b/MdePkg/Library/BaseMemoryLibOptDxe/X64/SetMem64.asm
deleted file mode 100644 (file)
index 9611c4c..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem64 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT64 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem64 PROC    USES    rdi\r
-    push    rcx\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
-    rep     stosq\r
-    pop     rax\r
-    ret\r
-InternalMemSetMem64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptDxe/X64/ZeroMem.asm b/MdePkg/Library/BaseMemoryLibOptDxe/X64/ZeroMem.asm
deleted file mode 100644 (file)
index 29398fb..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ZeroMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ZeroMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemZeroMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemZeroMem  PROC    USES    rdi\r
-    push    rcx       ; push Buffer\r
-    xor     rax, rax  ; rax = 0\r
-    mov     rdi, rcx  ; rdi = Buffer\r
-    mov     rcx, rdx  ; rcx = Count\r
-    shr     rcx, 3    ; rcx = rcx / 8\r
-    and     rdx, 7    ; rdx = rdx & 7\r
-    cld\r
-    rep     stosq\r
-    mov     rcx, rdx  ; rcx = rdx\r
-    rep     stosb\r
-    pop     rax       ; rax = Buffer\r
-    ret\r
-InternalMemZeroMem  ENDP\r
-\r
-    END\r
index 21f060ebcf67d0d14f1356cf3fd64c0ecd52cf24..bcbf2cd0eaaf571dab91cb0163bb3b81e37cd875 100644 (file)
@@ -4,7 +4,7 @@
 #  Base Memory Library that is optimized for use in PEI phase.  \r
 #  Uses REP, MMX, XMM registers as required for best performance.\r
 #\r
-#  Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
   Ia32/CopyMem.nasm\r
   Ia32/CopyMem.S\r
   Ia32/ScanMem64.nasm\r
-  Ia32/ScanMem64.asm\r
   Ia32/ScanMem32.nasm\r
-  Ia32/ScanMem32.asm\r
   Ia32/ScanMem16.nasm\r
-  Ia32/ScanMem16.asm\r
   Ia32/ScanMem8.nasm\r
-  Ia32/ScanMem8.asm\r
   Ia32/CompareMem.nasm\r
-  Ia32/CompareMem.asm\r
   Ia32/ZeroMem.nasm\r
-  Ia32/ZeroMem.asm\r
   Ia32/SetMem64.nasm\r
-  Ia32/SetMem64.asm\r
   Ia32/SetMem32.nasm\r
-  Ia32/SetMem32.asm\r
   Ia32/SetMem16.nasm\r
-  Ia32/SetMem16.asm\r
   Ia32/SetMem.nasm\r
-  Ia32/SetMem.asm\r
   Ia32/CopyMem.nasm\r
-  Ia32/CopyMem.asm\r
   Ia32/IsZeroBuffer.nasm\r
   ScanMem64Wrapper.c\r
   ScanMem32Wrapper.c\r
 \r
 [Sources.X64]\r
   X64/ScanMem64.nasm\r
-  X64/ScanMem64.asm\r
   X64/ScanMem64.S\r
   X64/ScanMem32.nasm\r
-  X64/ScanMem32.asm\r
   X64/ScanMem32.S\r
   X64/ScanMem16.nasm\r
-  X64/ScanMem16.asm\r
   X64/ScanMem16.S\r
   X64/ScanMem8.nasm\r
-  X64/ScanMem8.asm\r
   X64/ScanMem8.S\r
   X64/CompareMem.nasm\r
-  X64/CompareMem.asm\r
   X64/CompareMem.S\r
   X64/ZeroMem.nasm\r
-  X64/ZeroMem.asm\r
   X64/ZeroMem.S\r
   X64/SetMem64.nasm\r
-  X64/SetMem64.asm\r
   X64/SetMem64.S\r
   X64/SetMem32.nasm\r
-  X64/SetMem32.asm\r
   X64/SetMem32.S\r
   X64/SetMem16.nasm\r
-  X64/SetMem16.asm\r
   X64/SetMem16.S\r
   X64/SetMem.nasm\r
-  X64/SetMem.asm\r
   X64/SetMem.S\r
   X64/CopyMem.nasm\r
-  X64/CopyMem.asm\r
   X64/CopyMem.S\r
   X64/IsZeroBuffer.nasm\r
   ScanMem64Wrapper.c\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/CompareMem.asm b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/CompareMem.asm
deleted file mode 100644 (file)
index 5a0792d..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CompareMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CompareMem function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; INTN\r
-; EFIAPI\r
-; InternalMemCompareMem (\r
-;   IN      CONST VOID                *DestinationBuffer,\r
-;   IN      CONST VOID                *SourceBuffer,\r
-;   IN      UINTN                     Length\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemCompareMem   PROC    USES    esi edi\r
-    mov     esi, [esp + 12]\r
-    mov     edi, [esp + 16]\r
-    mov     ecx, [esp + 20]\r
-    repe    cmpsb\r
-    movzx   eax, byte ptr [esi - 1]\r
-    movzx   edx, byte ptr [edi - 1]\r
-    sub     eax, edx\r
-    ret\r
-InternalMemCompareMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/CopyMem.asm b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/CopyMem.asm
deleted file mode 100644 (file)
index 6f8d007..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CopyMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CopyMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemCopyMem (\r
-;    IN VOID   *Destination,\r
-;    IN VOID   *Source,\r
-;    IN UINTN  Count\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemCopyMem  PROC    USES    esi edi\r
-    mov     esi, [esp+16]                ; esi <- Source\r
-    mov     edi, [esp+12]                ; edi <- Destination\r
-    mov     edx, [esp+20]                ; edx <- Count\r
-    cmp     esi, edi\r
-    je      @CopyDone\r
-    cmp     edx, 0\r
-    je      @CopyDone\r
-    lea     eax, [esi + edx - 1]         ; eax <- End of Source\r
-    cmp     esi, edi\r
-    jae     @CopyBytes\r
-    cmp     eax, edi\r
-    jb      @CopyBytes                   ; Copy backward if overlapped\r
-    mov     esi, eax                     ; esi <- End of Source\r
-    lea     edi, [edi + edx - 1]         ; edi <- End of Destination\r
-    std\r
-@CopyBytes:\r
-    mov     ecx, edx\r
-    rep     movsb                        ; Copy bytes backward\r
-    cld\r
-@CopyDone:\r
-    mov     eax, [esp + 12]             ; eax <- Destination as return value\r
-    ret\r
-InternalMemCopyMem  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem16.asm b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem16.asm
deleted file mode 100644 (file)
index 0ee190e..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem16 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem16 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT16                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem16    PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     eax, [esp + 16]\r
-    repne   scasw\r
-    lea     eax, [edi - 2]\r
-    cmovnz  eax, ecx\r
-    ret\r
-InternalMemScanMem16    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem32.asm b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem32.asm
deleted file mode 100644 (file)
index adbf295..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem32 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem32 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT32                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem32    PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     eax, [esp + 16]\r
-    repne   scasd\r
-    lea     eax, [edi - 4]\r
-    cmovnz  eax, ecx\r
-    ret\r
-InternalMemScanMem32    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem64.asm b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem64.asm
deleted file mode 100644 (file)
index 0a0f5d0..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem64 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem64 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT64                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem64    PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     eax, [esp + 16]\r
-    mov     edx, [esp + 20]\r
-    mov     edi, [esp + 8]\r
-@@:\r
-    cmp     eax, [edi]\r
-    lea     edi, [edi + 8]\r
-    loopne  @B\r
-    jne     @F\r
-    cmp     edx, [edi - 4]\r
-    jecxz   @F\r
-    jne     @B\r
-@@:\r
-    lea     eax, [edi - 8]\r
-    cmovne  eax, ecx\r
-    ret\r
-InternalMemScanMem64    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem8.asm b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ScanMem8.asm
deleted file mode 100644 (file)
index c64d41d..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem8.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem8 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem8 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT8                     Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem8 PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     al, [esp + 16]\r
-    repne   scasb\r
-    lea     eax, [edi - 1]\r
-    cmovnz  eax, ecx\r
-    ret\r
-InternalMemScanMem8 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem.asm b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem.asm
deleted file mode 100644 (file)
index 663d238..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT8  Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem   PROC    USES    edi\r
-    mov         ecx, [esp + 12]\r
-    mov         al,  [esp + 16]\r
-    mov         ah,  al\r
-    shrd        edx, eax, 16\r
-    shld        eax, edx, 16\r
-    mov         edx, ecx\r
-    mov         edi, [esp + 8]\r
-    shr         ecx, 2\r
-    rep stosd\r
-    mov         ecx, edx\r
-    and         ecx, 3\r
-    rep stosb\r
-    mov         eax, [esp + 8]\r
-    ret\r
-InternalMemSetMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem16.asm b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem16.asm
deleted file mode 100644 (file)
index 3f3350d..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem16 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem16 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT16 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem16 PROC    USES    edi\r
-    mov     eax, [esp + 16]\r
-    mov     edi, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    rep     stosw\r
-    mov     eax, [esp + 8]\r
-    ret\r
-InternalMemSetMem16 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem32.asm b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem32.asm
deleted file mode 100644 (file)
index b27b85b..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem32 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem32 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT32 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem32 PROC    USES    edi\r
-    mov     eax, [esp + 16]\r
-    mov     edi, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    rep     stosd\r
-    mov     eax, [esp + 8]\r
-    ret\r
-InternalMemSetMem32 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem64.asm b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/SetMem64.asm
deleted file mode 100644 (file)
index 146f3b9..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem64 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT64 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem64 PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     eax, [esp + 16]\r
-    mov     edx, [esp + 20]\r
-    mov     edi, [esp + 8]\r
-@@:\r
-    mov     [edi + ecx*8 - 8], eax\r
-    mov     [edi + ecx*8 - 4], edx\r
-    loop    @B\r
-    mov     eax, edi\r
-    ret\r
-InternalMemSetMem64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ZeroMem.asm b/MdePkg/Library/BaseMemoryLibOptPei/Ia32/ZeroMem.asm
deleted file mode 100644 (file)
index 722bf67..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ZeroMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ZeroMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemZeroMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemZeroMem  PROC    USES    edi\r
-    xor     eax, eax\r
-    mov     edi, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    mov     edx, ecx\r
-    shr     ecx, 2\r
-    and     edx, 3\r
-    push    edi\r
-    rep     stosd\r
-    mov     ecx, edx\r
-    rep     stosb\r
-    pop     eax\r
-    ret\r
-InternalMemZeroMem  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/X64/CompareMem.asm b/MdePkg/Library/BaseMemoryLibOptPei/X64/CompareMem.asm
deleted file mode 100644 (file)
index 0ef05b2..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CompareMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CompareMem function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; INTN\r
-; EFIAPI\r
-; InternalMemCompareMem (\r
-;   IN      CONST VOID                *DestinationBuffer,\r
-;   IN      CONST VOID                *SourceBuffer,\r
-;   IN      UINTN                     Length\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemCompareMem   PROC    USES    rsi rdi\r
-    mov     rsi, rcx\r
-    mov     rdi, rdx\r
-    mov     rcx, r8\r
-    repe    cmpsb\r
-    movzx   rax, byte ptr [rsi - 1]\r
-    movzx   rdx, byte ptr [rdi - 1]\r
-    sub     rax, rdx\r
-    ret\r
-InternalMemCompareMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/X64/CopyMem.asm b/MdePkg/Library/BaseMemoryLibOptPei/X64/CopyMem.asm
deleted file mode 100644 (file)
index df2e7cc..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CopyMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CopyMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemCopyMem (\r
-;    IN VOID   *Destination,\r
-;    IN VOID   *Source,\r
-;    IN UINTN  Count\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemCopyMem  PROC    USES    rsi rdi\r
-    mov     rsi, rdx                    ; rsi <- Source\r
-    mov     rdi, rcx                    ; rdi <- Destination\r
-    lea     r9, [rsi + r8 - 1]          ; r9 <- End of Source\r
-    cmp     rsi, rdi\r
-    mov     rax, rdi                    ; rax <- Destination as return value\r
-    jae     @F\r
-    cmp     r9, rdi\r
-    jae     @CopyBackward               ; Copy backward if overlapped\r
-@@:\r
-    mov     rcx, r8\r
-    and     r8, 7\r
-    shr     rcx, 3\r
-    rep     movsq                       ; Copy as many Qwords as possible\r
-    jmp     @CopyBytes\r
-@CopyBackward:\r
-    mov     rsi, r9                     ; rsi <- End of Source\r
-    lea     rdi, [rdi + r8 - 1]         ; esi <- End of Destination\r
-    std                                 ; set direction flag\r
-@CopyBytes:\r
-    mov     rcx, r8\r
-    rep     movsb                       ; Copy bytes backward\r
-    cld\r
-    ret\r
-InternalMemCopyMem  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem16.asm b/MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem16.asm
deleted file mode 100644 (file)
index a6114db..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem16 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem16 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT16                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem16    PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasw\r
-    lea     rax, [rdi - 2]\r
-    cmovnz  rax, rcx\r
-    ret\r
-InternalMemScanMem16    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem32.asm b/MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem32.asm
deleted file mode 100644 (file)
index 40ff6c9..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem32 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem32 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT32                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem32    PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasd\r
-    lea     rax, [rdi - 4]\r
-    cmovnz  rax, rcx\r
-    ret\r
-InternalMemScanMem32    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem64.asm b/MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem64.asm
deleted file mode 100644 (file)
index e78da7d..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem64 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem64 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT64                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem64    PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasq\r
-    lea     rax, [rdi - 8]\r
-    cmovnz  rax, rcx\r
-    ret\r
-InternalMemScanMem64    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem8.asm b/MdePkg/Library/BaseMemoryLibOptPei/X64/ScanMem8.asm
deleted file mode 100644 (file)
index fee2397..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem8.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem8 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem8 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT8                     Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem8 PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    mov     rax, r8\r
-    repne   scasb\r
-    lea     rax, [rdi - 1]\r
-    cmovnz  rax, rcx                    ; set rax to 0 if not found\r
-    ret\r
-InternalMemScanMem8 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem.asm b/MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem.asm
deleted file mode 100644 (file)
index 72b6405..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT8  Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem   PROC    USES    rdi\r
-    push    rcx         ; push Buffer\r
-    mov     rax, r8     ; rax = Value\r
-    mov     rdi, rcx    ; rdi = Buffer\r
-    mov     rcx, rdx    ; rcx = Count\r
-    rep     stosb\r
-    pop     rax         ; rax = Buffer\r
-    ret\r
-InternalMemSetMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem16.asm b/MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem16.asm
deleted file mode 100644 (file)
index 446e3a3..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem16 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem16 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT16 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem16 PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
-    rep     stosw\r
-    mov     rax, rdx\r
-    ret\r
-InternalMemSetMem16 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem32.asm b/MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem32.asm
deleted file mode 100644 (file)
index abe733e..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem32 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem32 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT32 Value\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem32 PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
-    rep     stosd\r
-    mov     rax, rdx\r
-    ret\r
-InternalMemSetMem32 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem64.asm b/MdePkg/Library/BaseMemoryLibOptPei/X64/SetMem64.asm
deleted file mode 100644 (file)
index 0a91105..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem64 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT64 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem64 PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
-    rep     stosq\r
-    mov     rax, rdx\r
-    ret\r
-InternalMemSetMem64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibOptPei/X64/ZeroMem.asm b/MdePkg/Library/BaseMemoryLibOptPei/X64/ZeroMem.asm
deleted file mode 100644 (file)
index fc4403a..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ZeroMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ZeroMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemZeroMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemZeroMem  PROC    USES    rdi\r
-    push    rcx\r
-    xor     rax, rax\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    shr     rcx, 3\r
-    and     rdx, 7\r
-    rep     stosq\r
-    mov     ecx, edx\r
-    rep     stosb\r
-    pop     rax\r
-    ret\r
-InternalMemZeroMem  ENDP\r
-\r
-    END\r
index 729e26a492c359b3f7ca409ae47a9b918074aa3d..aa78fe37b5267cc104caa94a2133f0f41e42c79d 100644 (file)
@@ -4,7 +4,7 @@
 #  Base Memory Library that uses REP string instructions for\r
 #  high performance and small size. Optimized for use in PEI.\r
 #\r
-#  Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
   Ia32/CopyMem.nasm\r
   Ia32/CopyMem.S\r
   Ia32/ScanMem64.nasm\r
-  Ia32/ScanMem64.asm\r
   Ia32/ScanMem32.nasm\r
-  Ia32/ScanMem32.asm\r
   Ia32/ScanMem16.nasm\r
-  Ia32/ScanMem16.asm\r
   Ia32/ScanMem8.nasm\r
-  Ia32/ScanMem8.asm\r
   Ia32/CompareMem.nasm\r
-  Ia32/CompareMem.asm\r
   Ia32/ZeroMem.nasm\r
-  Ia32/ZeroMem.asm\r
   Ia32/SetMem64.nasm\r
-  Ia32/SetMem64.asm\r
   Ia32/SetMem32.nasm\r
-  Ia32/SetMem32.asm\r
   Ia32/SetMem16.nasm\r
-  Ia32/SetMem16.asm\r
   Ia32/SetMem.nasm\r
-  Ia32/SetMem.asm\r
   Ia32/CopyMem.nasm\r
-  Ia32/CopyMem.asm\r
   Ia32/IsZeroBuffer.nasm\r
 \r
 [Sources.X64]\r
   X64/CopyMem.nasm\r
   X64/CopyMem.S\r
   X64/ScanMem64.nasm\r
-  X64/ScanMem64.asm\r
   X64/ScanMem32.nasm\r
-  X64/ScanMem32.asm\r
   X64/ScanMem16.nasm\r
-  X64/ScanMem16.asm\r
   X64/ScanMem8.nasm\r
-  X64/ScanMem8.asm\r
   X64/CompareMem.nasm\r
-  X64/CompareMem.asm\r
   X64/ZeroMem.nasm\r
-  X64/ZeroMem.asm\r
   X64/SetMem64.nasm\r
-  X64/SetMem64.asm\r
   X64/SetMem32.nasm\r
-  X64/SetMem32.asm\r
   X64/SetMem16.nasm\r
-  X64/SetMem16.asm\r
   X64/SetMem.nasm\r
-  X64/SetMem.asm\r
   X64/CopyMem.nasm\r
-  X64/CopyMem.asm\r
   X64/IsZeroBuffer.nasm\r
 \r
 [Packages]\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CompareMem.asm b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CompareMem.asm
deleted file mode 100644 (file)
index 5a0792d..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CompareMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CompareMem function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; INTN\r
-; EFIAPI\r
-; InternalMemCompareMem (\r
-;   IN      CONST VOID                *DestinationBuffer,\r
-;   IN      CONST VOID                *SourceBuffer,\r
-;   IN      UINTN                     Length\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemCompareMem   PROC    USES    esi edi\r
-    mov     esi, [esp + 12]\r
-    mov     edi, [esp + 16]\r
-    mov     ecx, [esp + 20]\r
-    repe    cmpsb\r
-    movzx   eax, byte ptr [esi - 1]\r
-    movzx   edx, byte ptr [edi - 1]\r
-    sub     eax, edx\r
-    ret\r
-InternalMemCompareMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.asm b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/CopyMem.asm
deleted file mode 100644 (file)
index cdb3520..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CopyMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CopyMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemCopyMem (\r
-;    IN VOID   *Destination,\r
-;    IN VOID   *Source,\r
-;    IN UINTN  Count\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemCopyMem  PROC    USES    esi edi\r
-    mov     esi, [esp + 16]             ; esi <- Source\r
-    mov     edi, [esp + 12]             ; edi <- Destination\r
-    mov     edx, [esp + 20]             ; edx <- Count\r
-    lea     eax, [esi + edx - 1]        ; eax <- End of Source\r
-    cmp     esi, edi\r
-    jae     @F\r
-    cmp     eax, edi\r
-    jae     @CopyBackward               ; Copy backward if overlapped\r
-@@:\r
-    mov     ecx, edx\r
-    and     edx, 3\r
-    shr     ecx, 2\r
-    rep     movsd                       ; Copy as many Dwords as possible\r
-    jmp     @CopyBytes\r
-@CopyBackward:\r
-    mov     esi, eax                    ; esi <- End of Source\r
-    lea     edi, [edi + edx - 1]        ; edi <- End of Destination\r
-    std\r
-@CopyBytes:\r
-    mov     ecx, edx\r
-    rep     movsb                       ; Copy bytes backward\r
-    cld\r
-    mov     eax, [esp + 12]             ; eax <- Destination as return value\r
-    ret\r
-InternalMemCopyMem  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem16.asm b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem16.asm
deleted file mode 100644 (file)
index c12eaff..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2015, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem16 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem16 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT16                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem16    PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     eax, [esp + 16]\r
-    repne   scasw\r
-    lea     eax, [edi - 2]\r
-    jz      @F\r
-    mov     eax, ecx\r
-@@:    \r
-    ret\r
-InternalMemScanMem16    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem32.asm b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem32.asm
deleted file mode 100644 (file)
index b065620..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2015, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem32 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem32 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT32                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem32    PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     eax, [esp + 16]\r
-    repne   scasd\r
-    lea     eax, [edi - 4]\r
-    jz      @F\r
-    mov     eax, ecx\r
-@@:    \r
-    ret\r
-InternalMemScanMem32    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.asm b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem64.asm
deleted file mode 100644 (file)
index 96e3b99..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2015, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem64 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem64 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT64                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem64    PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     eax, [esp + 16]\r
-    mov     edx, [esp + 20]\r
-    mov     edi, [esp + 8]\r
-@@:\r
-    cmp     eax, [edi]\r
-    lea     edi, [edi + 8]\r
-    loopne  @B\r
-    jne     @F\r
-    cmp     edx, [edi - 4]\r
-    jecxz   @F\r
-    jne     @B\r
-@@:\r
-    lea     eax, [edi - 8]\r
-    jz      @F\r
-    mov     eax, ecx\r
-@@:    \r
-    ret\r
-InternalMemScanMem64    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.asm b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ScanMem8.asm
deleted file mode 100644 (file)
index 202d58f..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2015, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem8.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem8 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem8 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT8                     Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem8 PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     al, [esp + 16]\r
-    repne   scasb\r
-    lea     eax, [edi - 1]\r
-    jz      @F\r
-    mov     eax, ecx\r
-@@:    \r
-    ret\r
-InternalMemScanMem8 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.asm b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem.asm
deleted file mode 100644 (file)
index 3fdaba9..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT8  Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem   PROC    USES    edi\r
-    mov     eax, [esp + 16]\r
-    mov     edi, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    rep     stosb\r
-    mov     eax, [esp + 8]\r
-    ret\r
-InternalMemSetMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem16.asm b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem16.asm
deleted file mode 100644 (file)
index 3f3350d..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem16 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem16 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT16 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem16 PROC    USES    edi\r
-    mov     eax, [esp + 16]\r
-    mov     edi, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    rep     stosw\r
-    mov     eax, [esp + 8]\r
-    ret\r
-InternalMemSetMem16 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem32.asm b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem32.asm
deleted file mode 100644 (file)
index b27b85b..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem32 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem32 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT32 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem32 PROC    USES    edi\r
-    mov     eax, [esp + 16]\r
-    mov     edi, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    rep     stosd\r
-    mov     eax, [esp + 8]\r
-    ret\r
-InternalMemSetMem32 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.asm b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/SetMem64.asm
deleted file mode 100644 (file)
index 146f3b9..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem64 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT64 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem64 PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     eax, [esp + 16]\r
-    mov     edx, [esp + 20]\r
-    mov     edi, [esp + 8]\r
-@@:\r
-    mov     [edi + ecx*8 - 8], eax\r
-    mov     [edi + ecx*8 - 4], edx\r
-    loop    @B\r
-    mov     eax, edi\r
-    ret\r
-InternalMemSetMem64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ZeroMem.asm b/MdePkg/Library/BaseMemoryLibRepStr/Ia32/ZeroMem.asm
deleted file mode 100644 (file)
index 722bf67..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ZeroMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ZeroMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemZeroMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemZeroMem  PROC    USES    edi\r
-    xor     eax, eax\r
-    mov     edi, [esp + 8]\r
-    mov     ecx, [esp + 12]\r
-    mov     edx, ecx\r
-    shr     ecx, 2\r
-    and     edx, 3\r
-    push    edi\r
-    rep     stosd\r
-    mov     ecx, edx\r
-    rep     stosb\r
-    pop     eax\r
-    ret\r
-InternalMemZeroMem  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/CompareMem.asm b/MdePkg/Library/BaseMemoryLibRepStr/X64/CompareMem.asm
deleted file mode 100644 (file)
index 0ef05b2..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CompareMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CompareMem function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; INTN\r
-; EFIAPI\r
-; InternalMemCompareMem (\r
-;   IN      CONST VOID                *DestinationBuffer,\r
-;   IN      CONST VOID                *SourceBuffer,\r
-;   IN      UINTN                     Length\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemCompareMem   PROC    USES    rsi rdi\r
-    mov     rsi, rcx\r
-    mov     rdi, rdx\r
-    mov     rcx, r8\r
-    repe    cmpsb\r
-    movzx   rax, byte ptr [rsi - 1]\r
-    movzx   rdx, byte ptr [rdi - 1]\r
-    sub     rax, rdx\r
-    ret\r
-InternalMemCompareMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/CopyMem.asm b/MdePkg/Library/BaseMemoryLibRepStr/X64/CopyMem.asm
deleted file mode 100644 (file)
index df2e7cc..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CopyMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CopyMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemCopyMem (\r
-;    IN VOID   *Destination,\r
-;    IN VOID   *Source,\r
-;    IN UINTN  Count\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemCopyMem  PROC    USES    rsi rdi\r
-    mov     rsi, rdx                    ; rsi <- Source\r
-    mov     rdi, rcx                    ; rdi <- Destination\r
-    lea     r9, [rsi + r8 - 1]          ; r9 <- End of Source\r
-    cmp     rsi, rdi\r
-    mov     rax, rdi                    ; rax <- Destination as return value\r
-    jae     @F\r
-    cmp     r9, rdi\r
-    jae     @CopyBackward               ; Copy backward if overlapped\r
-@@:\r
-    mov     rcx, r8\r
-    and     r8, 7\r
-    shr     rcx, 3\r
-    rep     movsq                       ; Copy as many Qwords as possible\r
-    jmp     @CopyBytes\r
-@CopyBackward:\r
-    mov     rsi, r9                     ; rsi <- End of Source\r
-    lea     rdi, [rdi + r8 - 1]         ; esi <- End of Destination\r
-    std                                 ; set direction flag\r
-@CopyBytes:\r
-    mov     rcx, r8\r
-    rep     movsb                       ; Copy bytes backward\r
-    cld\r
-    ret\r
-InternalMemCopyMem  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem16.asm b/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem16.asm
deleted file mode 100644 (file)
index a6114db..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem16 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem16 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT16                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem16    PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasw\r
-    lea     rax, [rdi - 2]\r
-    cmovnz  rax, rcx\r
-    ret\r
-InternalMemScanMem16    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem32.asm b/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem32.asm
deleted file mode 100644 (file)
index 40ff6c9..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem32 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem32 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT32                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem32    PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasd\r
-    lea     rax, [rdi - 4]\r
-    cmovnz  rax, rcx\r
-    ret\r
-InternalMemScanMem32    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem64.asm b/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem64.asm
deleted file mode 100644 (file)
index e78da7d..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem64 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem64 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT64                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem64    PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasq\r
-    lea     rax, [rdi - 8]\r
-    cmovnz  rax, rcx\r
-    ret\r
-InternalMemScanMem64    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem8.asm b/MdePkg/Library/BaseMemoryLibRepStr/X64/ScanMem8.asm
deleted file mode 100644 (file)
index fee2397..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem8.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem8 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem8 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT8                     Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem8 PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    mov     rax, r8\r
-    repne   scasb\r
-    lea     rax, [rdi - 1]\r
-    cmovnz  rax, rcx                    ; set rax to 0 if not found\r
-    ret\r
-InternalMemScanMem8 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem.asm b/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem.asm
deleted file mode 100644 (file)
index ef15710..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT8  Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem   PROC    USES    rdi\r
-    mov     rax, r8    ; rax = Value\r
-    mov     rdi, rcx   ; rdi = Buffer\r
-    xchg    rcx, rdx   ; rcx = Count, rdx = Buffer\r
-    rep     stosb\r
-    mov     rax, rdx   ; rax = Buffer\r
-    ret\r
-InternalMemSetMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem16.asm b/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem16.asm
deleted file mode 100644 (file)
index 446e3a3..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem16 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem16 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT16 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem16 PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
-    rep     stosw\r
-    mov     rax, rdx\r
-    ret\r
-InternalMemSetMem16 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem32.asm b/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem32.asm
deleted file mode 100644 (file)
index abe733e..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem32 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem32 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT32 Value\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem32 PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
-    rep     stosd\r
-    mov     rax, rdx\r
-    ret\r
-InternalMemSetMem32 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem64.asm b/MdePkg/Library/BaseMemoryLibRepStr/X64/SetMem64.asm
deleted file mode 100644 (file)
index 0a91105..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem64 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT64 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem64 PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    xchg    rcx, rdx\r
-    rep     stosq\r
-    mov     rax, rdx\r
-    ret\r
-InternalMemSetMem64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibRepStr/X64/ZeroMem.asm b/MdePkg/Library/BaseMemoryLibRepStr/X64/ZeroMem.asm
deleted file mode 100644 (file)
index fc4403a..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ZeroMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ZeroMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemZeroMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemZeroMem  PROC    USES    rdi\r
-    push    rcx\r
-    xor     rax, rax\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    shr     rcx, 3\r
-    and     rdx, 7\r
-    rep     stosq\r
-    mov     ecx, edx\r
-    rep     stosb\r
-    pop     rax\r
-    ret\r
-InternalMemZeroMem  ENDP\r
-\r
-    END\r
index fc82b1630513bfa6aa2812f0dc9ec3c9c96adcfc..5b2417a9b008f1edaa4049f58e60bc1201f7a847 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 #  Base Memory Library that uses SSE2 registers for high performance.\r
 #\r
-#  Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
   Ia32/CopyMem.nasm\r
   Ia32/CopyMem.S\r
   Ia32/ScanMem64.nasm\r
-  Ia32/ScanMem64.asm\r
   Ia32/ScanMem32.nasm\r
-  Ia32/ScanMem32.asm\r
   Ia32/ScanMem16.nasm\r
-  Ia32/ScanMem16.asm\r
   Ia32/ScanMem8.nasm\r
-  Ia32/ScanMem8.asm\r
   Ia32/CompareMem.nasm\r
-  Ia32/CompareMem.asm\r
   Ia32/ZeroMem.nasm\r
-  Ia32/ZeroMem.asm\r
   Ia32/SetMem64.nasm\r
-  Ia32/SetMem64.asm\r
   Ia32/SetMem32.nasm\r
-  Ia32/SetMem32.asm\r
   Ia32/SetMem16.nasm\r
-  Ia32/SetMem16.asm\r
   Ia32/SetMem.nasm\r
-  Ia32/SetMem.asm\r
   Ia32/CopyMem.nasm\r
-  Ia32/CopyMem.asm\r
   Ia32/IsZeroBuffer.nasm\r
 \r
 [Sources.X64]\r
   X64/ScanMem64.nasm\r
-  X64/ScanMem64.asm\r
   X64/ScanMem32.nasm\r
-  X64/ScanMem32.asm\r
   X64/ScanMem16.nasm\r
-  X64/ScanMem16.asm\r
   X64/ScanMem8.nasm\r
-  X64/ScanMem8.asm\r
   X64/CompareMem.nasm\r
-  X64/CompareMem.asm\r
   X64/ZeroMem.nasm\r
-  X64/ZeroMem.asm\r
   X64/SetMem64.nasm\r
-  X64/SetMem64.asm\r
   X64/SetMem32.nasm\r
-  X64/SetMem32.asm\r
   X64/SetMem16.nasm\r
-  X64/SetMem16.asm\r
   X64/SetMem.nasm\r
-  X64/SetMem.asm\r
   X64/CopyMem.nasm\r
-  X64/CopyMem.asm\r
   X64/ScanMem64.nasm\r
   X64/ScanMem64.S\r
   X64/ScanMem32.nasm\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/CompareMem.asm b/MdePkg/Library/BaseMemoryLibSse2/Ia32/CompareMem.asm
deleted file mode 100644 (file)
index 5a0792d..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CompareMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CompareMem function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; INTN\r
-; EFIAPI\r
-; InternalMemCompareMem (\r
-;   IN      CONST VOID                *DestinationBuffer,\r
-;   IN      CONST VOID                *SourceBuffer,\r
-;   IN      UINTN                     Length\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemCompareMem   PROC    USES    esi edi\r
-    mov     esi, [esp + 12]\r
-    mov     edi, [esp + 16]\r
-    mov     ecx, [esp + 20]\r
-    repe    cmpsb\r
-    movzx   eax, byte ptr [esi - 1]\r
-    movzx   edx, byte ptr [edi - 1]\r
-    sub     eax, edx\r
-    ret\r
-InternalMemCompareMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/CopyMem.asm b/MdePkg/Library/BaseMemoryLibSse2/Ia32/CopyMem.asm
deleted file mode 100644 (file)
index a57a628..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CopyMem.asm\r
-;\r
-; Abstract:\r
-;\r
-;   CopyMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .xmm\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemCopyMem (\r
-;    IN VOID   *Destination,\r
-;    IN VOID   *Source,\r
-;    IN UINTN  Count\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemCopyMem  PROC    USES    esi edi\r
-    mov     esi, [esp + 16]             ; esi <- Source\r
-    mov     edi, [esp + 12]             ; edi <- Destination\r
-    mov     edx, [esp + 20]             ; edx <- Count\r
-    lea     eax, [esi + edx - 1]        ; eax <- End of Source\r
-    cmp     esi, edi\r
-    jae     @F\r
-    cmp     eax, edi                    ; Overlapped?\r
-    jae     @CopyBackward               ; Copy backward if overlapped\r
-@@:\r
-    xor     ecx, ecx\r
-    sub     ecx, edi\r
-    and     ecx, 15                     ; ecx + edi aligns on 16-byte boundary\r
-    jz      @F\r
-    cmp     ecx, edx\r
-    cmova   ecx, edx\r
-    sub     edx, ecx                    ; edx <- remaining bytes to copy\r
-    rep     movsb\r
-@@:\r
-    mov     ecx, edx\r
-    and     edx, 15\r
-    shr     ecx, 4                      ; ecx <- # of DQwords to copy\r
-    jz      @CopyBytes\r
-    add     esp, -16\r
-    movdqu  [esp], xmm0                 ; save xmm0\r
-@@:\r
-    movdqu  xmm0, [esi]                 ; esi may not be 16-bytes aligned\r
-    movntdq [edi], xmm0                 ; edi should be 16-bytes aligned\r
-    add     esi, 16\r
-    add     edi, 16\r
-    loop    @B\r
-    mfence\r
-    movdqu  xmm0, [esp]                 ; restore xmm0\r
-    add     esp, 16                     ; stack cleanup\r
-    jmp     @CopyBytes\r
-@CopyBackward:\r
-    mov     esi, eax                    ; esi <- Last byte in Source\r
-    lea     edi, [edi + edx - 1]        ; edi <- Last byte in Destination\r
-    std\r
-@CopyBytes:\r
-    mov     ecx, edx\r
-    rep     movsb\r
-    cld\r
-    mov     eax, [esp + 12]             ; eax <- Destination as return value\r
-    ret\r
-InternalMemCopyMem  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem16.asm b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem16.asm
deleted file mode 100644 (file)
index 0ee190e..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem16 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem16 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT16                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem16    PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     eax, [esp + 16]\r
-    repne   scasw\r
-    lea     eax, [edi - 2]\r
-    cmovnz  eax, ecx\r
-    ret\r
-InternalMemScanMem16    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem32.asm b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem32.asm
deleted file mode 100644 (file)
index adbf295..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem32 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem32 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT32                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem32    PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     eax, [esp + 16]\r
-    repne   scasd\r
-    lea     eax, [edi - 4]\r
-    cmovnz  eax, ecx\r
-    ret\r
-InternalMemScanMem32    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem64.asm b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem64.asm
deleted file mode 100644 (file)
index 0a0f5d0..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem64 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem64 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT64                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem64    PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     eax, [esp + 16]\r
-    mov     edx, [esp + 20]\r
-    mov     edi, [esp + 8]\r
-@@:\r
-    cmp     eax, [edi]\r
-    lea     edi, [edi + 8]\r
-    loopne  @B\r
-    jne     @F\r
-    cmp     edx, [edi - 4]\r
-    jecxz   @F\r
-    jne     @B\r
-@@:\r
-    lea     eax, [edi - 8]\r
-    cmovne  eax, ecx\r
-    ret\r
-InternalMemScanMem64    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem8.asm b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ScanMem8.asm
deleted file mode 100644 (file)
index c64d41d..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem8.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem8 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem8 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT8                     Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem8 PROC    USES    edi\r
-    mov     ecx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    mov     al, [esp + 16]\r
-    repne   scasb\r
-    lea     eax, [edi - 1]\r
-    cmovnz  eax, ecx\r
-    ret\r
-InternalMemScanMem8 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem.asm b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem.asm
deleted file mode 100644 (file)
index 369cc00..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .xmm\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT8  Value\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem   PROC    USES    edi\r
-    mov     edx, [esp + 12]             ; edx <- Count\r
-    mov     edi, [esp + 8]              ; edi <- Buffer\r
-    mov     al, [esp + 16]              ; al <- Value\r
-    xor     ecx, ecx\r
-    sub     ecx, edi\r
-    and     ecx, 15                     ; ecx + edi aligns on 16-byte boundary\r
-    jz      @F\r
-    cmp     ecx, edx\r
-    cmova   ecx, edx\r
-    sub     edx, ecx\r
-    rep     stosb\r
-@@:\r
-    mov     ecx, edx\r
-    and     edx, 15\r
-    shr     ecx, 4                      ; ecx <- # of DQwords to set\r
-    jz      @SetBytes\r
-    mov     ah, al                      ; ax <- Value | (Value << 8)\r
-    add     esp, -16\r
-    movdqu  [esp], xmm0                 ; save xmm0\r
-    movd    xmm0, eax\r
-    pshuflw xmm0, xmm0, 0               ; xmm0[0..63] <- Value repeats 8 times\r
-    movlhps xmm0, xmm0                  ; xmm0 <- Value repeats 16 times\r
-@@:\r
-    movntdq [edi], xmm0                 ; edi should be 16-byte aligned\r
-    add     edi, 16\r
-    loop    @B\r
-    mfence\r
-    movdqu  xmm0, [esp]                 ; restore xmm0\r
-    add     esp, 16                     ; stack cleanup\r
-@SetBytes:\r
-    mov     ecx, edx\r
-    rep     stosb\r
-    mov     eax, [esp + 8]              ; eax <- Buffer as return value\r
-    ret\r
-InternalMemSetMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem16.asm b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem16.asm
deleted file mode 100644 (file)
index 3725512..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem16.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem16 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .xmm\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem16 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT16 Value\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem16 PROC    USES    edi\r
-    mov     edx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    xor     ecx, ecx\r
-    sub     ecx, edi\r
-    and     ecx, 15                     ; ecx + edi aligns on 16-byte boundary\r
-    mov     eax, [esp + 16]\r
-    jz      @F\r
-    shr     ecx, 1\r
-    cmp     ecx, edx\r
-    cmova   ecx, edx\r
-    sub     edx, ecx\r
-    rep     stosw\r
-@@:\r
-    mov     ecx, edx\r
-    and     edx, 7\r
-    shr     ecx, 3\r
-    jz      @SetWords\r
-    movd    xmm0, eax\r
-    pshuflw xmm0, xmm0, 0\r
-    movlhps xmm0, xmm0\r
-@@:\r
-    movntdq [edi], xmm0                 ; edi should be 16-byte aligned\r
-    add     edi, 16\r
-    loop    @B\r
-    mfence\r
-@SetWords:\r
-    mov     ecx, edx\r
-    rep     stosw\r
-    mov     eax, [esp + 8]\r
-    ret\r
-InternalMemSetMem16 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem32.asm b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem32.asm
deleted file mode 100644 (file)
index 4c3aa42..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem32.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem32 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .xmm\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem32 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT32 Value\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem32 PROC    USES    edi\r
-    mov     edx, [esp + 12]\r
-    mov     edi, [esp + 8]\r
-    xor     ecx, ecx\r
-    sub     ecx, edi\r
-    and     ecx, 15                     ; ecx + edi aligns on 16-byte boundary\r
-    mov     eax, [esp + 16]\r
-    jz      @F\r
-    shr     ecx, 2\r
-    cmp     ecx, edx\r
-    cmova   ecx, edx\r
-    sub     edx, ecx\r
-    rep     stosd\r
-@@:\r
-    mov     ecx, edx\r
-    and     edx, 3\r
-    shr     ecx, 2\r
-    jz      @SetDwords\r
-    movd    xmm0, eax\r
-    pshufd  xmm0, xmm0, 0\r
-@@:\r
-    movntdq [edi], xmm0\r
-    add     edi, 16\r
-    loop    @B\r
-    mfence\r
-@SetDwords:\r
-    mov     ecx, edx\r
-    rep     stosd\r
-    mov     eax, [esp + 8]\r
-    ret\r
-InternalMemSetMem32 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.asm b/MdePkg/Library/BaseMemoryLibSse2/Ia32/SetMem64.asm
deleted file mode 100644 (file)
index d6f52a0..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem64.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .xmm\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemSetMem64 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT64 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem64 PROC\r
-    mov     eax, [esp + 4]              ; eax <- Buffer\r
-    mov     ecx, [esp + 8]              ; ecx <- Count\r
-    test    al, 8\r
-    mov     edx, eax\r
-    movq    xmm0, qword ptr [esp + 12]\r
-    jz      @F\r
-    movq    qword ptr [edx], xmm0\r
-    add     edx, 8\r
-    dec     ecx\r
-@@:\r
-    shr     ecx, 1\r
-    jz      @SetQwords\r
-    movlhps xmm0, xmm0\r
-@@:\r
-    movntdq [edx], xmm0\r
-    lea     edx, [edx + 16]\r
-    loop    @B\r
-    mfence\r
-@SetQwords:\r
-    jnc     @F\r
-    movq    qword ptr [edx], xmm0\r
-@@:\r
-    ret\r
-InternalMemSetMem64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/Ia32/ZeroMem.asm b/MdePkg/Library/BaseMemoryLibSse2/Ia32/ZeroMem.asm
deleted file mode 100644 (file)
index 97252b1..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ZeroMem.asm\r
-;\r
-; Abstract:\r
-;\r
-;   ZeroMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .686\r
-    .model  flat,C\r
-    .xmm\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemZeroMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemZeroMem  PROC    USES    edi\r
-    mov     edi, [esp + 8]\r
-    mov     edx, [esp + 12]\r
-    xor     ecx, ecx\r
-    sub     ecx, edi\r
-    xor     eax, eax\r
-    and     ecx, 15\r
-    jz      @F\r
-    cmp     ecx, edx\r
-    cmova   ecx, edx\r
-    sub     edx, ecx\r
-    rep     stosb\r
-@@:\r
-    mov     ecx, edx\r
-    and     edx, 15\r
-    shr     ecx, 4\r
-    jz      @ZeroBytes\r
-    pxor    xmm0, xmm0\r
-@@:\r
-    movntdq [edi], xmm0\r
-    add     edi, 16\r
-    loop    @B\r
-    mfence\r
-@ZeroBytes:\r
-    mov     ecx, edx\r
-    rep     stosb\r
-    mov     eax, [esp + 8]\r
-    ret\r
-InternalMemZeroMem  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/X64/CompareMem.asm b/MdePkg/Library/BaseMemoryLibSse2/X64/CompareMem.asm
deleted file mode 100644 (file)
index 0ef05b2..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CompareMem.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   CompareMem function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; INTN\r
-; EFIAPI\r
-; InternalMemCompareMem (\r
-;   IN      CONST VOID                *DestinationBuffer,\r
-;   IN      CONST VOID                *SourceBuffer,\r
-;   IN      UINTN                     Length\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemCompareMem   PROC    USES    rsi rdi\r
-    mov     rsi, rcx\r
-    mov     rdi, rdx\r
-    mov     rcx, r8\r
-    repe    cmpsb\r
-    movzx   rax, byte ptr [rsi - 1]\r
-    movzx   rdx, byte ptr [rdi - 1]\r
-    sub     rax, rdx\r
-    ret\r
-InternalMemCompareMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/X64/CopyMem.asm b/MdePkg/Library/BaseMemoryLibSse2/X64/CopyMem.asm
deleted file mode 100644 (file)
index 8bcaca7..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   CopyMem.asm\r
-;\r
-; Abstract:\r
-;\r
-;   CopyMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  EFIAPI\r
-;  InternalMemCopyMem (\r
-;    IN VOID   *Destination,\r
-;    IN VOID   *Source,\r
-;    IN UINTN  Count\r
-;    );\r
-;------------------------------------------------------------------------------\r
-InternalMemCopyMem  PROC    USES    rsi rdi\r
-    mov     rsi, rdx                    ; rsi <- Source\r
-    mov     rdi, rcx                    ; rdi <- Destination\r
-    lea     r9, [rsi + r8 - 1]          ; r9 <- Last byte of Source\r
-    cmp     rsi, rdi\r
-    mov     rax, rdi                    ; rax <- Destination as return value\r
-    jae     @F                          ; Copy forward if Source > Destination\r
-    cmp     r9, rdi                     ; Overlapped?\r
-    jae     @CopyBackward               ; Copy backward if overlapped\r
-@@:\r
-    xor     rcx, rcx\r
-    sub     rcx, rdi                    ; rcx <- -rdi\r
-    and     rcx, 15                     ; rcx + rsi should be 16 bytes aligned\r
-    jz      @F                          ; skip if rcx == 0\r
-    cmp     rcx, r8\r
-    cmova   rcx, r8\r
-    sub     r8, rcx\r
-    rep     movsb\r
-@@:\r
-    mov     rcx, r8\r
-    and     r8, 15\r
-    shr     rcx, 4                      ; rcx <- # of DQwords to copy\r
-    jz      @CopyBytes\r
-    movdqa  [rsp + 18h], xmm0           ; save xmm0 on stack\r
-@@:\r
-    movdqu  xmm0, [rsi]                 ; rsi may not be 16-byte aligned\r
-    movntdq [rdi], xmm0                 ; rdi should be 16-byte aligned\r
-    add     rsi, 16\r
-    add     rdi, 16\r
-    loop    @B\r
-    mfence\r
-    movdqa  xmm0, [rsp + 18h]           ; restore xmm0\r
-    jmp     @CopyBytes                  ; copy remaining bytes\r
-@CopyBackward:\r
-    mov     rsi, r9                     ; rsi <- Last byte of Source\r
-    lea     rdi, [rdi + r8 - 1]         ; rdi <- Last byte of Destination\r
-    std\r
-@CopyBytes:\r
-    mov     rcx, r8\r
-    rep     movsb\r
-    cld\r
-    ret\r
-InternalMemCopyMem  ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem16.asm b/MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem16.asm
deleted file mode 100644 (file)
index a6114db..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem16 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem16 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT16                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem16    PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasw\r
-    lea     rax, [rdi - 2]\r
-    cmovnz  rax, rcx\r
-    ret\r
-InternalMemScanMem16    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem32.asm b/MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem32.asm
deleted file mode 100644 (file)
index 40ff6c9..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem32 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem32 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT32                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem32    PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasd\r
-    lea     rax, [rdi - 4]\r
-    cmovnz  rax, rcx\r
-    ret\r
-InternalMemScanMem32    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem64.asm b/MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem64.asm
deleted file mode 100644 (file)
index e78da7d..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem64 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem64 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT64                    Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem64    PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rax, r8\r
-    mov     rcx, rdx\r
-    repne   scasq\r
-    lea     rax, [rdi - 8]\r
-    cmovnz  rax, rcx\r
-    ret\r
-InternalMemScanMem64    ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem8.asm b/MdePkg/Library/BaseMemoryLibSse2/X64/ScanMem8.asm
deleted file mode 100644 (file)
index fee2397..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2008, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ScanMem8.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   ScanMem8 function\r
-;\r
-; Notes:\r
-;\r
-;   The following BaseMemoryLib instances contain the same copy of this file:\r
-;\r
-;       BaseMemoryLibRepStr\r
-;       BaseMemoryLibMmx\r
-;       BaseMemoryLibSse2\r
-;       BaseMemoryLibOptDxe\r
-;       BaseMemoryLibOptPei\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; CONST VOID *\r
-; EFIAPI\r
-; InternalMemScanMem8 (\r
-;   IN      CONST VOID                *Buffer,\r
-;   IN      UINTN                     Length,\r
-;   IN      UINT8                     Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalMemScanMem8 PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     rcx, rdx\r
-    mov     rax, r8\r
-    repne   scasb\r
-    lea     rax, [rdi - 1]\r
-    cmovnz  rax, rcx                    ; set rax to 0 if not found\r
-    ret\r
-InternalMemScanMem8 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/X64/SetMem.asm b/MdePkg/Library/BaseMemoryLibSse2/X64/SetMem.asm
deleted file mode 100644 (file)
index 52b069c..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT8  Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem   PROC    USES    rdi\r
-    mov     rdi, rcx                    ; rdi <- Buffer\r
-    mov     al, r8b                     ; al <- Value\r
-    mov     r9, rdi                     ; r9 <- Buffer as return value\r
-    xor     rcx, rcx\r
-    sub     rcx, rdi\r
-    and     rcx, 15                     ; rcx + rdi aligns on 16-byte boundary\r
-    jz      @F\r
-    cmp     rcx, rdx\r
-    cmova   rcx, rdx\r
-    sub     rdx, rcx\r
-    rep     stosb\r
-@@:\r
-    mov     rcx, rdx\r
-    and     rdx, 15\r
-    shr     rcx, 4\r
-    jz      @SetBytes\r
-    mov     ah, al                      ; ax <- Value repeats twice\r
-    movdqa  [rsp + 10h], xmm0           ; save xmm0\r
-    movd    xmm0, eax                   ; xmm0[0..16] <- Value repeats twice\r
-    pshuflw xmm0, xmm0, 0               ; xmm0[0..63] <- Value repeats 8 times\r
-    movlhps xmm0, xmm0                  ; xmm0 <- Value repeats 16 times\r
-@@:\r
-    movntdq [rdi], xmm0                 ; rdi should be 16-byte aligned\r
-    add     rdi, 16\r
-    loop    @B\r
-    mfence\r
-    movdqa  xmm0, [rsp + 10h]           ; restore xmm0\r
-@SetBytes:\r
-    mov     ecx, edx                    ; high 32 bits of rcx are always zero\r
-    rep     stosb\r
-    mov     rax, r9                     ; rax <- Return value\r
-    ret\r
-InternalMemSetMem   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/X64/SetMem16.asm b/MdePkg/Library/BaseMemoryLibSse2/X64/SetMem16.asm
deleted file mode 100644 (file)
index 8cb09ac..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem16.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem16 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem16 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT16 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem16 PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     r9, rdi\r
-    xor     rcx, rcx\r
-    sub     rcx, rdi\r
-    and     rcx, 15\r
-    mov     rax, r8\r
-    jz      @F\r
-    shr     rcx, 1\r
-    cmp     rcx, rdx\r
-    cmova   rcx, rdx\r
-    sub     rdx, rcx\r
-    rep     stosw\r
-@@:\r
-    mov     rcx, rdx\r
-    and     edx, 7\r
-    shr     rcx, 3\r
-    jz      @SetWords\r
-    movd    xmm0, eax\r
-    pshuflw xmm0, xmm0, 0\r
-    movlhps xmm0, xmm0\r
-@@:\r
-    movntdq [rdi], xmm0\r
-    add     rdi, 16\r
-    loop    @B\r
-    mfence\r
-@SetWords:\r
-    mov     ecx, edx\r
-    rep     stosw\r
-    mov     rax, r9\r
-    ret\r
-InternalMemSetMem16 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/X64/SetMem32.asm b/MdePkg/Library/BaseMemoryLibSse2/X64/SetMem32.asm
deleted file mode 100644 (file)
index 92404a0..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem32.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem32 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem32 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT8  Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem32 PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    mov     r9, rdi\r
-    xor     rcx, rcx\r
-    sub     rcx, rdi\r
-    and     rcx, 15\r
-    mov     rax, r8\r
-    jz      @F\r
-    shr     rcx, 2\r
-    cmp     rcx, rdx\r
-    cmova   rcx, rdx\r
-    sub     rdx, rcx\r
-    rep     stosd\r
-@@:\r
-    mov     rcx, rdx\r
-    and     edx, 3\r
-    shr     rcx, 2\r
-    jz      @SetDwords\r
-    movd    xmm0, eax\r
-    pshufd  xmm0, xmm0, 0\r
-@@:\r
-    movntdq [rdi], xmm0\r
-    add     rdi, 16\r
-    loop    @B\r
-    mfence\r
-@SetDwords:\r
-    mov     ecx, edx\r
-    rep     stosd\r
-    mov     rax, r9\r
-    ret\r
-InternalMemSetMem32 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/X64/SetMem64.asm b/MdePkg/Library/BaseMemoryLibSse2/X64/SetMem64.asm
deleted file mode 100644 (file)
index 5071f67..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   SetMem64.asm\r
-;\r
-; Abstract:\r
-;\r
-;   SetMem64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemSetMem64 (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count,\r
-;    IN UINT64 Value\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemSetMem64 PROC\r
-    mov     rax, rcx                    ; rax <- Buffer\r
-    xchg    rcx, rdx                    ; rcx <- Count & rdx <- Buffer\r
-    test    dl, 8\r
-    movd    xmm0, r8\r
-    jz      @F\r
-    mov     [rdx], r8\r
-    add     rdx, 8\r
-    dec     rcx\r
-@@:\r
-    shr     rcx, 1\r
-    jz      @SetQwords\r
-    movlhps xmm0, xmm0\r
-@@:\r
-    movntdq [rdx], xmm0\r
-    lea     rdx, [rdx + 16]\r
-    loop    @B\r
-    mfence\r
-@SetQwords:\r
-    jnc     @F\r
-    mov     [rdx], r8\r
-@@:\r
-    ret\r
-InternalMemSetMem64 ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseMemoryLibSse2/X64/ZeroMem.asm b/MdePkg/Library/BaseMemoryLibSse2/X64/ZeroMem.asm
deleted file mode 100644 (file)
index d304729..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006, 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   ZeroMem.asm\r
-;\r
-; Abstract:\r
-;\r
-;   ZeroMem function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-;  VOID *\r
-;  InternalMemZeroMem (\r
-;    IN VOID   *Buffer,\r
-;    IN UINTN  Count\r
-;    )\r
-;------------------------------------------------------------------------------\r
-InternalMemZeroMem  PROC    USES    rdi\r
-    mov     rdi, rcx\r
-    xor     rcx, rcx\r
-    xor     eax, eax\r
-    sub     rcx, rdi\r
-    and     rcx, 15\r
-    mov     r8, rdi\r
-    jz      @F\r
-    cmp     rcx, rdx\r
-    cmova   rcx, rdx\r
-    sub     rdx, rcx\r
-    rep     stosb\r
-@@:\r
-    mov     rcx, rdx\r
-    and     edx, 15\r
-    shr     rcx, 4\r
-    jz      @ZeroBytes\r
-    pxor    xmm0, xmm0\r
-@@:\r
-    movntdq [rdi], xmm0                 ; rdi should be 16-byte aligned\r
-    add     rdi, 16\r
-    loop    @B\r
-    mfence\r
-@ZeroBytes:\r
-    mov     ecx, edx\r
-    rep     stosb\r
-    mov     rax, r8\r
-    ret\r
-InternalMemZeroMem  ENDP\r
-\r
-    END\r
index 6fca7dd29360ab59e20e6f3ad3540217a58e2197..03562c6e5608a7b4838403dab5aa56ad9fa35822 100755 (executable)
@@ -1,7 +1,7 @@
 ## @file\r
 #  Base Synchronization Library implementation.\r
 #\r
-#  Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
+#  Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
 #  Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
 #\r
 #  This program and the accompanying materials\r
   SynchronizationMsc.c  | MSFT\r
 \r
   Ia32/InterlockedCompareExchange64.nasm| INTEL\r
-  Ia32/InterlockedCompareExchange64.asm | INTEL \r
   Ia32/InterlockedCompareExchange32.nasm| INTEL\r
-  Ia32/InterlockedCompareExchange32.asm | INTEL \r
   Ia32/InterlockedCompareExchange16.nasm| INTEL\r
-  Ia32/InterlockedCompareExchange16.asm | INTEL\r
   Ia32/InterlockedDecrement.nasm| INTEL\r
-  Ia32/InterlockedDecrement.asm | INTEL \r
   Ia32/InterlockedIncrement.nasm| INTEL\r
-  Ia32/InterlockedIncrement.asm | INTEL \r
   Synchronization.c | INTEL\r
 \r
   Ia32/InternalGetSpinLockProperties.c | GCC\r
   X64/InterlockedCompareExchange16.c | MSFT\r
   \r
   X64/InterlockedCompareExchange64.nasm| INTEL\r
-  X64/InterlockedCompareExchange64.asm | INTEL\r
   X64/InterlockedCompareExchange32.nasm| INTEL\r
-  X64/InterlockedCompareExchange32.asm | INTEL\r
   X64/InterlockedCompareExchange16.nasm| INTEL\r
-  X64/InterlockedCompareExchange16.asm | INTEL\r
   \r
   X64/InterlockedDecrement.c | MSFT \r
   X64/InterlockedIncrement.c | MSFT \r
   SynchronizationMsc.c | MSFT \r
 \r
   X64/InterlockedDecrement.nasm| INTEL\r
-  X64/InterlockedDecrement.asm | INTEL \r
   X64/InterlockedIncrement.nasm| INTEL\r
-  X64/InterlockedIncrement.asm | INTEL \r
   Synchronization.c | INTEL \r
 \r
   Ia32/InternalGetSpinLockProperties.c | GCC\r
diff --git a/MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedCompareExchange16.asm b/MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedCompareExchange16.asm
deleted file mode 100644 (file)
index 7362fe9..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
-; Copyright (c) 2015, Linaro Ltd. 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   InterlockedCompareExchange16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   InterlockedCompareExchange16 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .486\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; InternalSyncCompareExchange16 (\r
-;   IN      volatile UINT16           *Value,\r
-;   IN      UINT16                    CompareValue,\r
-;   IN      UINT16                    ExchangeValue\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalSyncCompareExchange16   PROC\r
-    mov     ecx, [esp + 4]\r
-    mov     ax, [esp + 8]\r
-    mov     dx, [esp + 12]\r
-    lock    cmpxchg [ecx], dx\r
-    ret\r
-InternalSyncCompareExchange16   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedCompareExchange32.asm b/MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedCompareExchange32.asm
deleted file mode 100644 (file)
index 1a4a611..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   InterlockedCompareExchange32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   InterlockedCompareExchange32 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .486\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT32\r
-; EFIAPI\r
-; InternalSyncCompareExchange32 (\r
-;   IN      volatile UINT32           *Value,\r
-;   IN      UINT32                    CompareValue,\r
-;   IN      UINT32                    ExchangeValue\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalSyncCompareExchange32   PROC\r
-    mov     ecx, [esp + 4]\r
-    mov     eax, [esp + 8]\r
-    mov     edx, [esp + 12]\r
-    lock    cmpxchg [ecx], edx\r
-    ret\r
-InternalSyncCompareExchange32   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedCompareExchange64.asm b/MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedCompareExchange64.asm
deleted file mode 100644 (file)
index e7b02db..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   InterlockedCompareExchange64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   InterlockedCompareExchange64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .586P\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; InternalSyncCompareExchange64 (\r
-;   IN      volatile UINT64           *Value,\r
-;   IN      UINT64                    CompareValue,\r
-;   IN      UINT64                    ExchangeValue\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalSyncCompareExchange64   PROC    USES    esi ebx\r
-    mov     esi, [esp + 12]\r
-    mov     eax, [esp + 16]\r
-    mov     edx, [esp + 20]\r
-    mov     ebx, [esp + 24]\r
-    mov     ecx, [esp + 28]\r
-    lock    cmpxchg8b   qword ptr [esi]\r
-    ret\r
-InternalSyncCompareExchange64   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedDecrement.asm b/MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedDecrement.asm
deleted file mode 100644 (file)
index b5fa447..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   InterlockedDecrement.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   InterlockedDecrement function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT32\r
-; EFIAPI\r
-; InternalSyncDecrement (\r
-;   IN      volatile UINT32           *Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalSyncDecrement   PROC\r
-    mov     eax, [esp + 4]\r
-    lock    dec     dword ptr [eax]\r
-    mov     eax, [eax]\r
-    ret\r
-InternalSyncDecrement   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedIncrement.asm b/MdePkg/Library/BaseSynchronizationLib/Ia32/InterlockedIncrement.asm
deleted file mode 100644 (file)
index 61c2533..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   InterlockedIncrement.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   InterlockedIncrement function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .386\r
-    .model  flat,C\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT32\r
-; EFIAPI\r
-; InternalSyncIncrement (\r
-;   IN      volatile UINT32           *Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalSyncIncrement   PROC\r
-    mov     eax, [esp + 4]\r
-    lock    inc     dword ptr [eax]\r
-    mov     eax, [eax]\r
-    ret\r
-InternalSyncIncrement   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange16.asm b/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange16.asm
deleted file mode 100644 (file)
index 262adeb..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\r
-; Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
-; Copyright (c) 2015, Linaro Ltd. 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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   InterlockedCompareExchange16.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   InterlockedCompareExchange16 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT16\r
-; EFIAPI\r
-; InternalSyncCompareExchange16 (\r
-;   IN      volatile UINT16           *Value,\r
-;   IN      UINT16                    CompareValue,\r
-;   IN      UINT16                    ExchangeValue\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalSyncCompareExchange16   PROC\r
-    mov     ax, dx\r
-    lock    cmpxchg [rcx], r8w\r
-    ret\r
-InternalSyncCompareExchange16   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange32.asm b/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange32.asm
deleted file mode 100644 (file)
index 711b399..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   InterlockedCompareExchange32.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   InterlockedCompareExchange32 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT32\r
-; EFIAPI\r
-; InternalSyncCompareExchange32 (\r
-;   IN      volatile UINT32           *Value,\r
-;   IN      UINT32                    CompareValue,\r
-;   IN      UINT32                    ExchangeValue\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalSyncCompareExchange32   PROC\r
-    mov     eax, edx\r
-    lock    cmpxchg [rcx], r8d\r
-    ret\r
-InternalSyncCompareExchange32   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange64.asm b/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedCompareExchange64.asm
deleted file mode 100644 (file)
index be429d8..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   InterlockedCompareExchange64.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   InterlockedCompareExchange64 function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT64\r
-; EFIAPI\r
-; InternalSyncCompareExchange64 (\r
-;   IN      volatile UINT64           *Value,\r
-;   IN      UINT64                    CompareValue,\r
-;   IN      UINT64                    ExchangeValue\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalSyncCompareExchange64   PROC\r
-    mov     rax, rdx\r
-    lock    cmpxchg [rcx], r8\r
-    ret\r
-InternalSyncCompareExchange64   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedDecrement.asm b/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedDecrement.asm
deleted file mode 100644 (file)
index 4dc3886..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   InterlockedDecrement.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   InterlockedDecrement function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT32\r
-; EFIAPI\r
-; InternalSyncDecrement (\r
-;   IN      volatile UINT32           *Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalSyncDecrement   PROC\r
-    lock    dec     dword ptr [rcx]\r
-    mov     eax, [rcx]\r
-    ret\r
-InternalSyncDecrement   ENDP\r
-\r
-    END\r
diff --git a/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedIncrement.asm b/MdePkg/Library/BaseSynchronizationLib/X64/InterlockedIncrement.asm
deleted file mode 100644 (file)
index fc086b6..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-;------------------------------------------------------------------------------\r
-;\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
-; http://opensource.org/licenses/bsd-license.php.\r
-;\r
-; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-;\r
-; Module Name:\r
-;\r
-;   InterlockedIncrement.Asm\r
-;\r
-; Abstract:\r
-;\r
-;   InterlockedIncrement function\r
-;\r
-; Notes:\r
-;\r
-;------------------------------------------------------------------------------\r
-\r
-    .code\r
-\r
-;------------------------------------------------------------------------------\r
-; UINT32\r
-; EFIAPI\r
-; InternalSyncIncrement (\r
-;   IN      volatile UINT32           *Value\r
-;   );\r
-;------------------------------------------------------------------------------\r
-InternalSyncIncrement   PROC\r
-    lock    inc     dword ptr [rcx]\r
-    mov     eax, [rcx]\r
-    ret\r
-InternalSyncIncrement   ENDP\r
-\r
-    END\r