From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=mLcnEgWb; spf=none, err=permanent DNS error (domain: merlin.srs.infradead.org, ip: 205.233.59.134, mailfrom: batv+fabbcfbdfc77d37f96bb+5780+infradead.org+dwmw2@merlin.srs.infradead.org) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by groups.io with SMTP; Fri, 21 Jun 2019 15:32:01 -0700 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rv8Okvi4vbHJs0C73sH3ymg6Y5E0p9V1VbZzZuUkP7Q=; b=mLcnEgWbLd2q5AGrx6x7qAciF lCPhFJ3edXDd/qyNQNXu9N43bS24zsGcaETMkc5rn5jurj4PIfVCMgmD6lDILO1QLMVw7AVvlCKBv dD7RFwjwkpl9ztRm61gWnmHe55xWZxG07s96PbFkc3hm+OzSzQBfeclZ/q0LBtju+bpUmdadkQUfd D5Tl9aNXW9cbPWTcV8NO9KX0sAHhyItnK01Pwjc/GXatCxOutusCOcM++G98HTxaOAKB7ogmO3oTA ej2oaCoi7MfiQmb8I3u9l0y6KnDypw5R9/lyQ/TpRiq/gUSDiGIeVf4lRWjviycRM1yWdDlEgA0fp yvwsqWP+A==; Received: from [2001:8b0:10b:1::425] (helo=i7.infradead.org) by merlin.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1heS4b-0008Na-Aq; Fri, 21 Jun 2019 22:31:57 +0000 Received: from dwoodhou by i7.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1heS4a-002wVE-Hr; Fri, 21 Jun 2019 23:31:56 +0100 From: "David Woodhouse" To: devel@edk2.groups.io Cc: Laszlo Ersek , Ray Ni Subject: [PATCH 1/7] OvmfPkg/LegacyBios: set NumberBbsEntries to the size of BbsTable Date: Fri, 21 Jun 2019 23:31:50 +0100 Message-Id: <20190621223156.701502-1-dwmw2@infradead.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: David Woodhouse X-SRS-Rewrite: SMTP reverse-path rewritten from by merlin.infradead.org. See http://www.infradead.org/rpr.html Content-Transfer-Encoding: 8bit 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 Acked-by: Laszlo Ersek --- OvmfPkg/Csm/LegacyBiosDxe/LegacyBios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/Csm/LegacyBiosDxe/LegacyBios.c b/OvmfPkg/Csm/LegacyBiosDxe/LegacyBios.c index 05e3ffd2bb..69abd06c40 100644 --- a/OvmfPkg/Csm/LegacyBiosDxe/LegacyBios.c +++ b/OvmfPkg/Csm/LegacyBiosDxe/LegacyBios.c @@ -568,7 +568,7 @@ ShadowAndStartLegacy16 ( // // Skip Floppy and possible onboard IDE drives // - EfiToLegacy16BootTable->NumberBbsEntries = 1 + 2 * MAX_IDE_CONTROLLER; + EfiToLegacy16BootTable->NumberBbsEntries = sizeof(Private->IntThunk->BbsTable) / sizeof(BBS_TABLE); for (Index = 0; Index < (sizeof (Private->IntThunk->BbsTable) / sizeof (BBS_TABLE)); Index++) { BbsTable[Index].BootPriority = BBS_IGNORE_ENTRY; -- 2.21.0