From 701e17e5209a3212e40ec7e1068ca031f2257df5 Mon Sep 17 00:00:00 2001 From: niruiyu Date: Fri, 27 May 2011 03:24:34 +0000 Subject: Update the comments to describe the purpose of Removable array. Signed-off-by: niruiyu Reviewed-by: li-elvin git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11709 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c index 71e2c9428b..4863b648f1 100644 --- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c +++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c @@ -1430,8 +1430,6 @@ BdsLibEnumerateAllBootOption ( EFI_IMAGE_OPTIONAL_HEADER_UNION HdrData; EFI_IMAGE_OPTIONAL_HEADER_PTR_UNION Hdr; - Removable[0] = FALSE; - Removable[1] = TRUE; FloppyNumber = 0; CdromNumber = 0; UsbNumber = 0; @@ -1484,8 +1482,13 @@ BdsLibEnumerateAllBootOption ( BdsDeleteAllInvalidEfiBootOption (); // - // Parse removable media followed by fixed media + // Parse removable media followed by fixed media. + // The Removable[] array is used by the for-loop below to create removable media boot options + // at first, and then to create fixed media boot options. // + Removable[0] = FALSE; + Removable[1] = TRUE; + gBS->LocateHandleBuffer ( ByProtocol, &gEfiBlockIoProtocolGuid, -- cgit v1.2.3