summaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_rng.c
diff options
context:
space:
mode:
authorSughosh Ganu <sughosh.ganu@linaro.org>2019-12-29 00:01:06 +0530
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-01-07 18:08:22 +0100
commit33c37d9784168ac75be91e890329712d9a849539 (patch)
tree93a9cd5eb063946daa2b742323da1c2410845a26 /lib/efi_loader/efi_rng.c
parentf552fa496c9e738afa069dd33578558fe4eb41ee (diff)
efi_rng_protocol: Install the efi_rng_protocol on the root node
Install the EFI_RNG_PROTOCOL implementation for it's subsequent use by the kernel for features like kaslr. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'lib/efi_loader/efi_rng.c')
-rw-r--r--lib/efi_loader/efi_rng.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/efi_loader/efi_rng.c b/lib/efi_loader/efi_rng.c
index 47aaa6adca8..432c9862046 100644
--- a/lib/efi_loader/efi_rng.c
+++ b/lib/efi_loader/efi_rng.c
@@ -11,6 +11,8 @@
DECLARE_GLOBAL_DATA_PTR;
+const efi_guid_t efi_guid_rng_protocol = EFI_RNG_PROTOCOL_GUID;
+
__weak efi_status_t platform_get_rng_device(struct udevice **dev)
{
int ret;