From c87b13cdb572a1b91e16104dd62cc6250ed57c1d Mon Sep 17 00:00:00 2001 From: Dandan Bi Date: Wed, 20 Apr 2016 12:59:47 +0800 Subject: MdeModulePkg: Export ConfigResp only for form Package after ReadyToBoot The Hii runtime support feature will export the content of HiiDatabase and the ConfigResp string to runtime buffer after ReadyToBoot event is triggered. If some drivers add/update/remove packages from Hiidatabase after ReadyToBoot: Originally we will both export the content of HiiDatabase and the ConfigResp string for all packages. But now after investigation, we found only for form packages need to export the content of HiiDatabase and the ConfigResp string, for other packages just need to export the content of HiiDatabase. Now to enhance this logic. Cc: Liming Gao Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi Reviewed-by: Eric Dong Reviewed-by: Liming Gao Reviewed-by: Samer El-Haj-Mahmoud --- MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseEntry.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseEntry.c') diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseEntry.c b/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseEntry.c index 63f8793821..03a4184c45 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseEntry.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseEntry.c @@ -146,6 +146,8 @@ OnReadyToBoot ( // HiiGetConfigurationSetting(&mPrivate.HiiDatabase); gExportAfterReadyToBoot = TRUE; + + gBS->CloseEvent (Event); } /** -- cgit v1.2.3