mirror of https://github.com/acidanthera/audk.git
OvmfPkg/LegacyBios: set NumberBbsEntries to the size of BbsTable
This is hard-coded in the IntThunk structure, and the additional entries will be needed for other devices like VirtIO and NVMe disks. So admit that they exist. Signed-off-by: David Woodhouse <dwmw2@infradead.org> Acked-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20190626113742.819933-2-dwmw2@infradead.org>
This commit is contained in:
parent
2f3435c234
commit
0ca6250768
|
@ -565,12 +565,13 @@ ShadowAndStartLegacy16 (
|
|||
|
||||
EfiToLegacy16BootTable->BbsTable = (UINT32)(UINTN)BbsTable;
|
||||
Private->BbsTablePtr = (VOID *) BbsTable;
|
||||
//
|
||||
// Skip Floppy and possible onboard IDE drives
|
||||
//
|
||||
EfiToLegacy16BootTable->NumberBbsEntries = 1 + 2 * MAX_IDE_CONTROLLER;
|
||||
|
||||
for (Index = 0; Index < (sizeof (Private->IntThunk->BbsTable) / sizeof (BBS_TABLE)); Index++) {
|
||||
//
|
||||
// Populate entire table with BBS_IGNORE_ENTRY
|
||||
//
|
||||
EfiToLegacy16BootTable->NumberBbsEntries = MAX_BBS_ENTRIES;
|
||||
|
||||
for (Index = 0; Index < MAX_BBS_ENTRIES; Index++) {
|
||||
BbsTable[Index].BootPriority = BBS_IGNORE_ENTRY;
|
||||
}
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue