Lines Matching full:bootrom
48 #include "bootrom.h"
63 static char *romptr; /* Pointer to userspace-mapped bootrom region. */
123 romptr = vm_create_devmem(ctx, VM_BOOTROM, "bootrom", BOOTROM_SIZE);
165 warnx("No room for %zu ROM in bootrom region", len);
171 warnx("No room for %zu ROM in bootrom region", len);
202 const char *bootrom, *varfile;
207 bootrom = get_config_value("bootrom");
208 if (bootrom == NULL) {
215 * might get overwritten. For that reason, the bootrom should be
218 romfile = strdup(bootrom);
225 EPRINTLN("Error opening bootrom \"%s\": %s",
231 EPRINTLN("Could not fstat bootrom file \"%s\": %s", romfile,
243 EPRINTLN("Error opening bootrom variable file "
250 "Could not fstat bootrom variable file \"%s\": %s",
260 EPRINTLN("Invalid bootrom variable size %ld",
268 EPRINTLN("Invalid bootrom and variable aggregate size %ld",
273 /* Map the bootrom into the guest address space */
283 EPRINTLN("Incomplete read of page %d of bootrom "
298 .name = "bootrom variable",
319 * Are we relying on a bootrom to initialize the guest's CPU context?
324 return (get_config_value("bootrom") != NULL);