+++ /dev/null
-/** @file\r
- Include file for _MAX_BBS_ENTRIES_H.\r
-\r
-Copyright (c) 2006 - 2007, Intel Corporation \r
-All rights reserved. This program and the accompanying materials \r
-are licensed and made available under the terms and conditions of the BSD License \r
-which accompanies this distribution. The full text of the license may be found at \r
-http://opensource.org/licenses/bsd-license.php \r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
-\r
-**/\r
-\r
-#ifndef _MAX_BBS_ENTRIES_H_\r
-#define _MAX_BBS_ENTRIES_H_\r
-\r
-//\r
-// BUGBUG: This entry maybe changed to PCD in future and wait for\r
-// redesign of BDS library\r
-//\r
-#define MAX_BBS_ENTRIES 0x100\r
-\r
-#endif\r
**/\r
VOID\r
PrintBbsTable (\r
- IN BBS_TABLE *LocalBbsTable\r
+ IN BBS_TABLE *LocalBbsTable,\r
+ IN UINT16 BbsCount\r
)\r
{\r
UINT16 Idx;\r
DEBUG ((DEBUG_ERROR, "\n"));\r
DEBUG ((DEBUG_ERROR, " NO Prio bb/dd/ff cl/sc Type Stat segm:offs\n"));\r
DEBUG ((DEBUG_ERROR, "=============================================\n"));\r
- for (Idx = 0; Idx < MAX_BBS_ENTRIES; Idx++) {\r
+ for (Idx = 0; Idx < BbsCount; Idx++) {\r
if ((LocalBbsTable[Idx].BootPriority == BBS_IGNORE_ENTRY) ||\r
(LocalBbsTable[Idx].BootPriority == BBS_DO_NOT_BOOT_FROM) ||\r
(LocalBbsTable[Idx].BootPriority == BBS_LOWEST_PRIORITY)\r
}\r
\r
DEBUG_CODE_BEGIN();\r
- PrintBbsTable (LocalBbsTable);\r
+ PrintBbsTable (LocalBbsTable, BbsCount);\r
DEBUG_CODE_END();\r
\r
return Status;\r