From bb30b08e76f7b1583ba201cff555b347af0b7028 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Wed, 15 Apr 2020 01:58:51 +0000 Subject: bhyve(8): Add bootrom allocation abstraction To allow more general use of the bootrom region, separate initialization from allocation, and allocation from loading a file. The bootrom segment is the high 16MB of the low 4GB region. Each allocation in the segment creates a new mapping with specified protection. By default, allocation begins at the low end of the range. However, the BOOTROM_ALLOC_TOP flag is provided to locate a provided bootrom in the high region it is expected to be in. The existing ROM-file loading code is refactored to use the new interface. Reviewed by: grehan (earlier version) Differential Revision: https://reviews.freebsd.org/D24422 --- usr.sbin/bhyve/pci_lpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/bhyve/pci_lpc.c') diff --git a/usr.sbin/bhyve/pci_lpc.c b/usr.sbin/bhyve/pci_lpc.c index deb82ae48fd6..1e4b513ec494 100644 --- a/usr.sbin/bhyve/pci_lpc.c +++ b/usr.sbin/bhyve/pci_lpc.c @@ -192,7 +192,7 @@ lpc_init(struct vmctx *ctx) int unit, error; if (romfile != NULL) { - error = bootrom_init(ctx, romfile); + error = bootrom_loadrom(ctx, romfile); if (error) return (error); } -- cgit v1.2.3