]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseMemoryLibOptDxe/BaseMemoryLibOptDxe.inf
MdePkg/BaseMemoryLibOptDxe ARM|AARCH64: disallow use in SEC & PEI phases
[mirror_edk2.git] / MdePkg / Library / BaseMemoryLibOptDxe / BaseMemoryLibOptDxe.inf
index 64d11b09ef0600856ec71e3c711b4b60105eadfa..5ddc0cbc2d7744094a5ee4b96e3ca2f6ec134f71 100644 (file)
   X64/CopyMem.S\r
   X64/IsZeroBuffer.nasm\r
 \r
+[Defines.ARM, Defines.AARCH64]\r
+  #\r
+  # The ARM implementations of this library may perform unaligned accesses, and\r
+  # may use DC ZVA instructions that are only allowed when the MMU and D-cache\r
+  # are on. Since SEC, PEI_CORE and PEIM modules may execute with the MMU off,\r
+  # omit them from the supported module types list for this library.\r
+  #\r
+  LIBRARY_CLASS = BaseMemoryLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER UEFI_DRIVER UEFI_APPLICATION\r
+\r
 [Sources.ARM]\r
   Arm/ScanMem.S       |GCC\r
   Arm/SetMem.S        |GCC\r