$OpenBSD: patch-src_optionroms_c,v 1.2 2017/07/19 19:33:51 sthen Exp $

Needed for SGABIOS option ROM for VMM. Normally these are setup based on
the qemu fw_cfg interface (or coreboot CBFS on hardware).

--- src/optionroms.c.orig	Fri Mar 31 09:34:40 2017
+++ src/optionroms.c	Fri Mar 31 09:35:35 2017
@@ -361,7 +361,7 @@ optionrom_setup(void)
 
     // All option roms found and deployed - now build BEV/BCV vectors.
 
-    u32 pos = post_vga;
+    u32 pos = BUILD_BIOS_ADDR - BUILD_ROM_START;
     while (pos < rom_get_last()) {
         struct rom_header *rom = (void*)pos;
         if (! is_valid_rom(rom)) {
