X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ArmPlatformPkg%2FBds%2FBootMenu.c;fp=ArmPlatformPkg%2FBds%2FBootMenu.c;h=3676bf02459471f26a5bc82d4db750f2701dd7c5;hp=04a2eee6f5a88217369a68533ce9345c4e85f54f;hb=5c2d456b9670cd8eeed1b06d3e50011598ade3b0;hpb=f2c730d3123c8952e2715b120e79c4ea20c73451 diff --git a/ArmPlatformPkg/Bds/BootMenu.c b/ArmPlatformPkg/Bds/BootMenu.c index 04a2eee6f5..3676bf0245 100644 --- a/ArmPlatformPkg/Bds/BootMenu.c +++ b/ArmPlatformPkg/Bds/BootMenu.c @@ -15,6 +15,7 @@ #include "BdsInternal.h" #include +#include extern BDS_LOAD_OPTION_SUPPORT *BdsLoadOptionSupportList; @@ -834,6 +835,7 @@ UpdateFdtPath ( BDS_SUPPORTED_DEVICE *SupportedBootDevice; EFI_DEVICE_PATH_PROTOCOL *FdtDevicePathNodes; EFI_DEVICE_PATH_PROTOCOL *FdtDevicePath; + EFI_EVENT UpdateFdtEvent; Status = SelectBootDevice (&SupportedBootDevice); if (EFI_ERROR(Status)) { @@ -873,6 +875,23 @@ UpdateFdtPath ( ASSERT_EFI_ERROR(Status); } + if (!EFI_ERROR (Status)) { + // + // Signal FDT has been updated + // + Status = gBS->CreateEventEx ( + EVT_NOTIFY_SIGNAL, + TPL_NOTIFY, + EmptyCallbackFunction, + NULL, + &gArmPlatformUpdateFdtEventGuid, + &UpdateFdtEvent + ); + if (!EFI_ERROR (Status)) { + gBS->SignalEvent (UpdateFdtEvent); + } + } + EXIT: if (Status == EFI_ABORTED) { Print(L"\n");