aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/bhyve/pci_lpc.c
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2020-04-15 01:58:51 +0000
committerConrad Meyer <cem@FreeBSD.org>2020-04-15 01:58:51 +0000
commitbb30b08e76f7b1583ba201cff555b347af0b7028 (patch)
tree1bbcd963a9f383adc857a8da12921f5ec44932fa /usr.sbin/bhyve/pci_lpc.c
parent102acd72aa160751b5772dcfaa660035b17df865 (diff)
downloadsrc-bb30b08e76f7b1583ba201cff555b347af0b7028.tar.gz
src-bb30b08e76f7b1583ba201cff555b347af0b7028.zip
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
Notes
Notes: svn path=/head/; revision=359949
Diffstat (limited to 'usr.sbin/bhyve/pci_lpc.c')
-rw-r--r--usr.sbin/bhyve/pci_lpc.c2
1 files changed, 1 insertions, 1 deletions
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);
}