Remove #define for MAX_BBS_ENTRIES

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8470 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
mdkinney 2009-06-04 22:51:21 +00:00
parent 9226e4ee0a
commit d7d5db9649
3 changed files with 4 additions and 29 deletions

View File

@ -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

View File

@ -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;

View File

@ -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.