From 9301e5644cef5a5234f71b178373dd508cabb9ee Mon Sep 17 00:00:00 2001 From: Rebecca Cran Date: Mon, 10 May 2021 15:53:07 -0600 Subject: 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 Reviewed-by: Liming Gao Reviewed-by: Sami Mujawar --- MdePkg/MdePkg.dec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'MdePkg/MdePkg.dec') 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 -- cgit v1.2.3