summaryrefslogtreecommitdiffstats
path: root/OvmfPkg
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2019-06-26 12:37:39 +0100
committerLaszlo Ersek <lersek@redhat.com>2019-06-26 15:06:44 +0200
commit0ca62507681309be8247675c8fc500fb94f928ed (patch)
treed64505a5c5328263166440b31219e7f468e8e49b /OvmfPkg
parent2f3435c2343f63e008cc536456266261f657452e (diff)
downloadedk2-0ca62507681309be8247675c8fc500fb94f928ed.tar.gz
edk2-0ca62507681309be8247675c8fc500fb94f928ed.tar.bz2
edk2-0ca62507681309be8247675c8fc500fb94f928ed.zip
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>
Diffstat (limited to 'OvmfPkg')
-rw-r--r--OvmfPkg/Csm/LegacyBiosDxe/LegacyBios.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/OvmfPkg/Csm/LegacyBiosDxe/LegacyBios.c b/OvmfPkg/Csm/LegacyBiosDxe/LegacyBios.c
index 05e3ffd2bb..5e795bfe65 100644
--- a/OvmfPkg/Csm/LegacyBiosDxe/LegacyBios.c
+++ b/OvmfPkg/Csm/LegacyBiosDxe/LegacyBios.c
@@ -565,12 +565,13 @@ ShadowAndStartLegacy16 (
EfiToLegacy16BootTable->BbsTable = (UINT32)(UINTN)BbsTable;
Private->BbsTablePtr = (VOID *) BbsTable;
+
//
- // Skip Floppy and possible onboard IDE drives
+ // Populate entire table with BBS_IGNORE_ENTRY
//
- EfiToLegacy16BootTable->NumberBbsEntries = 1 + 2 * MAX_IDE_CONTROLLER;
+ EfiToLegacy16BootTable->NumberBbsEntries = MAX_BBS_ENTRIES;
- for (Index = 0; Index < (sizeof (Private->IntThunk->BbsTable) / sizeof (BBS_TABLE)); Index++) {
+ for (Index = 0; Index < MAX_BBS_ENTRIES; Index++) {
BbsTable[Index].BootPriority = BBS_IGNORE_ENTRY;
}
//