#include "ArmRng.h"\r
#include "BaseRngLibInternals.h"\r
\r
-STATIC BOOLEAN mRndrSupported;\r
+STATIC BOOLEAN mRndrSupported;\r
\r
//\r
// Bit mask used to determine if RNDR instruction is supported.\r
//\r
-#define RNDR_MASK ((UINT64)MAX_UINT16 << 60U)\r
+#define RNDR_MASK ((UINT64)MAX_UINT16 << 60U)\r
\r
/**\r
The constructor function checks whether or not RNDR instruction is supported\r
VOID\r
)\r
{\r
- UINT64 Isar0;\r
+ UINT64 Isar0;\r
+\r
//\r
// Determine RNDR support by examining bits 63:60 of the ISAR0 register returned by\r
// MSR. A non-zero value indicates that the processor supports the RNDR instruction.\r
BOOLEAN\r
EFIAPI\r
ArchGetRandomNumber16 (\r
- OUT UINT16 *Rand\r
+ OUT UINT16 *Rand\r
)\r
{\r
- UINT64 Rand64;\r
+ UINT64 Rand64;\r
\r
if (ArchGetRandomNumber64 (&Rand64)) {\r
*Rand = Rand64 & MAX_UINT16;\r
BOOLEAN\r
EFIAPI\r
ArchGetRandomNumber32 (\r
- OUT UINT32 *Rand\r
+ OUT UINT32 *Rand\r
)\r
{\r
- UINT64 Rand64;\r
+ UINT64 Rand64;\r
\r
if (ArchGetRandomNumber64 (&Rand64)) {\r
*Rand = Rand64 & MAX_UINT32;\r
BOOLEAN\r
EFIAPI\r
ArchGetRandomNumber64 (\r
- OUT UINT64 *Rand\r
+ OUT UINT64 *Rand\r
)\r
{\r
return ArmRndr (Rand);\r