Platforms/AMD/Styx: switch to MdePkg versions of BaseMemoryLib

This switches Overdrive and Cello to the MdePkg versions of BaseMemoryLib,
which have recently been updated to support AARCH64 (as well as ARM).

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
diff --git a/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc b/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc
index 3cccf2d..dda107c 100644
--- a/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc
+++ b/Platforms/AMD/Styx/CelloBoard/CelloBoard.dsc
@@ -76,9 +76,7 @@
   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

   PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf

 

-  # 1/123 faster than Stm or Vstm version

-  #BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf

-  BaseMemoryLib|ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm.inf

+  BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf

 

   # Networking Requirements

   NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf

@@ -166,8 +164,10 @@
 

 [LibraryClasses.common.PEIM, LibraryClasses.common.SEC]

   MemoryInitPeiLib|OpenPlatformPkg/Platforms/AMD/Styx/Library/MemoryInitPei/MemoryInitPeiLib.inf

+  BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf

 

 [LibraryClasses.common.PEI_CORE]

+  BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf

   PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf

   HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf

   MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf

diff --git a/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc b/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc
index 7f751f1..232bab7 100644
--- a/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc
+++ b/Platforms/AMD/Styx/OverdriveBoard/OverdriveBoard.dsc
@@ -79,9 +79,7 @@
   PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf

   PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf

 

-  # 1/123 faster than Stm or Vstm version

-  #BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf

-  BaseMemoryLib|ArmPkg/Library/BaseMemoryLibStm/BaseMemoryLibStm.inf

+  BaseMemoryLib|MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf

 

   # Networking Requirements

   NetLib|MdeModulePkg/Library/DxeNetLib/DxeNetLib.inf

@@ -173,8 +171,10 @@
 

 [LibraryClasses.common.PEIM, LibraryClasses.common.SEC]

   MemoryInitPeiLib|OpenPlatformPkg/Platforms/AMD/Styx/Library/MemoryInitPei/MemoryInitPeiLib.inf

+  BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf

 

 [LibraryClasses.common.PEI_CORE]

+  BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf

   PcdLib|MdePkg/Library/PeiPcdLib/PeiPcdLib.inf

   HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf

   MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf