summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Library
diff options
context:
space:
mode:
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2011-05-27 03:24:34 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2011-05-27 03:24:34 +0000
commit701e17e5209a3212e40ec7e1068ca031f2257df5 (patch)
tree9ef37aa74f354ac0fe11fe8ff74477eea29134b4 /IntelFrameworkModulePkg/Library
parent7c1fd3239d3915bb0dfb9ab2f2361acc9b67b70a (diff)
downloadedk2-platforms-701e17e5209a3212e40ec7e1068ca031f2257df5.tar.xz
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
Diffstat (limited to 'IntelFrameworkModulePkg/Library')
-rw-r--r--IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c9
1 files 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,