From d7d5db96491c4c3182a76808ba5a0f09449b827f Mon Sep 17 00:00:00 2001 From: mdkinney Date: Thu, 4 Jun 2009 22:51:21 +0000 Subject: [PATCH] Remove #define for MAX_BBS_ENTRIES git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8470 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Include/Common/MaxBbsEntries.h | 24 ------------------- .../Universal/BdsDxe/BootMaint/BBSsupport.c | 7 +++--- .../Universal/BdsDxe/BootMaint/BBSsupport.h | 2 -- 3 files changed, 4 insertions(+), 29 deletions(-) delete mode 100644 IntelFrameworkModulePkg/Include/Common/MaxBbsEntries.h 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. -- 2.39.2