diff options
Diffstat (limited to 'IntelFrameworkModulePkg')
3 files changed, 4 insertions, 29 deletions
diff --git a/IntelFrameworkModulePkg/Include/Common/MaxBbsEntries.h b/IntelFrameworkModulePkg/Include/Common/MaxBbsEntries.h deleted file mode 100644 index 6d9bb57a95..0000000000 --- a/IntelFrameworkModulePkg/Include/Common/MaxBbsEntries.h +++ /dev/null @@ -1,24 +0,0 @@ -/** @file
- Include file for _MAX_BBS_ENTRIES_H.
-
-Copyright (c) 2006 - 2007, Intel Corporation
-All rights reserved. This program and the accompanying materials
-are licensed and made available under the terms and conditions of the BSD License
-which accompanies this distribution. The full text of the license may be found at
-http://opensource.org/licenses/bsd-license.php
-
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
-**/
-
-#ifndef _MAX_BBS_ENTRIES_H_
-#define _MAX_BBS_ENTRIES_H_
-
-//
-// BUGBUG: This entry maybe changed to PCD in future and wait for
-// redesign of BDS library
-//
-#define MAX_BBS_ENTRIES 0x100
-
-#endif
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c index 5d94bc0760..765c77bf55 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c @@ -1486,7 +1486,8 @@ BdsSetBootPriority4SameTypeDev ( **/
VOID
PrintBbsTable (
- IN BBS_TABLE *LocalBbsTable
+ IN BBS_TABLE *LocalBbsTable,
+ IN UINT16 BbsCount
)
{
UINT16 Idx;
@@ -1494,7 +1495,7 @@ PrintBbsTable ( DEBUG ((DEBUG_ERROR, "\n"));
DEBUG ((DEBUG_ERROR, " NO Prio bb/dd/ff cl/sc Type Stat segm:offs\n"));
DEBUG ((DEBUG_ERROR, "=============================================\n"));
- for (Idx = 0; Idx < MAX_BBS_ENTRIES; Idx++) {
+ for (Idx = 0; Idx < BbsCount; Idx++) {
if ((LocalBbsTable[Idx].BootPriority == BBS_IGNORE_ENTRY) ||
(LocalBbsTable[Idx].BootPriority == BBS_DO_NOT_BOOT_FROM) ||
(LocalBbsTable[Idx].BootPriority == BBS_LOWEST_PRIORITY)
@@ -1660,7 +1661,7 @@ BdsRefreshBbsTableForBoot ( }
DEBUG_CODE_BEGIN();
- PrintBbsTable (LocalBbsTable);
+ PrintBbsTable (LocalBbsTable, BbsCount);
DEBUG_CODE_END();
return Status;
diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.h b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.h index 711b1096a6..69b799b8ad 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.h +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.h @@ -17,8 +17,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include "BootMaint.h"
-#define MAX_BBS_ENTRIES 0x100
-
/**
Build Legacy Device Name String according.
|