PcdCpuRngSupportedAlgorithm should allow to identify the the algorithm
used by the RNDR CPU instruction to generate a random number.
Add a debug warning if the Pcd is not set.
Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Acked-by: Jiewen Yao <jiewen.yao@intel.com>
sizeof (EFI_RNG_ALGORITHM)\r
);\r
mAvailableAlgoArrayCount++;\r
+\r
+ DEBUG_CODE_BEGIN ();\r
+ if (IsZeroGuid (PcdGetPtr (PcdCpuRngSupportedAlgorithm))) {\r
+ DEBUG ((\r
+ DEBUG_WARN,\r
+ "PcdCpuRngSupportedAlgorithm should be a non-zero GUID\n"\r
+ ));\r
+ }\r
+\r
+ DEBUG_CODE_END ();\r
}\r
\r
// Raw algorithm (Trng)\r