BaseMemoryLibVstm.inf 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. ## @file
  2. # Instance of Base Memory Library with some ARM vldm/vstm assembly.
  3. #
  4. # This is a copy of the MdePkg BaseMemoryLib with the CopyMem and
  5. # SetMem worker functions replaced with assembler that uses
  6. # vldm/vstm (part of NEON SIMD, optional in ARMv7-A).
  7. #
  8. # Note: You need to enable NEON in SEC to use this library
  9. # // Enable NEON register in case folks want to use them for optimizations (CopyMem)
  10. # mrc p15, 0, r0, c1, c0, 2
  11. # orr r0, r0, #0x00f00000 // Enable VPF access (V* instructions)
  12. # mcr p15, 0, r0, c1, c0, 2
  13. # mov r0, #0x40000000 // Set EN bit in FPEXC
  14. # msr FPEXC,r0
  15. #
  16. # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
  17. # Portions copyright (c) 2010, Apple Inc. All rights reserved.<BR>
  18. #
  19. # This program and the accompanying materials
  20. # are licensed and made available under the terms and conditions of the BSD License
  21. # which accompanies this distribution. The full text of the license may be found at
  22. # http://opensource.org/licenses/bsd-license.php
  23. # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  24. # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
  25. #
  26. #
  27. ##
  28. [Defines]
  29. INF_VERSION = 0x00010005
  30. BASE_NAME = BaseMemoryLibVstm
  31. FILE_GUID = 09EE1E8D-7A2E-4573-8117-68A18569C1F5
  32. MODULE_TYPE = BASE
  33. VERSION_STRING = 1.0
  34. LIBRARY_CLASS = BaseMemoryLib
  35. #
  36. # VALID_ARCHITECTURES = ARM
  37. #
  38. [Sources.ARM]
  39. ScanMem64Wrapper.c
  40. ScanMem32Wrapper.c
  41. ScanMem16Wrapper.c
  42. ScanMem8Wrapper.c
  43. ZeroMemWrapper.c
  44. CompareMemWrapper.c
  45. SetMem64Wrapper.c
  46. SetMem32Wrapper.c
  47. SetMem16Wrapper.c
  48. SetMemWrapper.c
  49. CopyMemWrapper.c
  50. MemLibGeneric.c
  51. MemLibGuid.c
  52. MemLibInternals.h
  53. Arm/CopyMem.asm
  54. Arm/CopyMem.S
  55. Arm/SetMem.asm
  56. Arm/SetMem.S
  57. [Packages]
  58. MdePkg/MdePkg.dec
  59. [LibraryClasses]
  60. DebugLib
  61. BaseLib