summaryrefslogtreecommitdiffstats
path: root/MdePkg/MdePkg.dec
diff options
context:
space:
mode:
authorRebecca Cran <rebecca@nuviainc.com>2021-05-10 15:53:07 -0600
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-05-11 16:26:05 +0000
commit9301e5644cef5a5234f71b178373dd508cabb9ee (patch)
tree6bd7cc844612c8352541d43bb0e21fe1c530add2 /MdePkg/MdePkg.dec
parentef3840c1ff320698523dd6b94ba7c86354392784 (diff)
downloadedk2-9301e5644cef5a5234f71b178373dd508cabb9ee.tar.gz
edk2-9301e5644cef5a5234f71b178373dd508cabb9ee.tar.bz2
edk2-9301e5644cef5a5234f71b178373dd508cabb9ee.zip
MdePkg/BaseRngLib: Add support for ARMv8.5 RNG instructions
Make BaseRngLib more generic by moving x86-specific functionality into 'Rand' and adding files under 'AArch64' to support the optional ARMv8.5 RNG instruction RNDR that is a part of FEAT_RNG. Signed-off-by: Rebecca Cran <rebecca@nuviainc.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
Diffstat (limited to 'MdePkg/MdePkg.dec')
-rw-r--r--MdePkg/MdePkg.dec9
1 files changed, 5 insertions, 4 deletions
diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec
index 8965e903e0..b49f88d8e1 100644
--- a/MdePkg/MdePkg.dec
+++ b/MdePkg/MdePkg.dec
@@ -267,6 +267,11 @@
#
RegisterFilterLib|Include/Library/RegisterFilterLib.h
+[LibraryClasses.IA32, LibraryClasses.X64, LibraryClasses.AARCH64]
+ ## @libraryclass Provides services to generate random number.
+ #
+ RngLib|Include/Library/RngLib.h
+
[LibraryClasses.IA32, LibraryClasses.X64]
## @libraryclass Abstracts both S/W SMI generation and detection.
##
@@ -288,10 +293,6 @@
#
SmmPeriodicSmiLib|Include/Library/SmmPeriodicSmiLib.h
- ## @libraryclass Provides services to generate random number.
- #
- RngLib|Include/Library/RngLib.h
-
## @libraryclass Provides services to log the SMI handler registration.
SmiHandlerProfileLib|Include/Library/SmiHandlerProfileLib.h