Lines Matching defs:bootcode
211 static int i_flag; /* init bootcode */
233 static struct mbr_sector bootcode[8192 / sizeof (struct mbr_sector)];
236 static int bootsize; /* actual size of bootcode */
437 case 'i': /* Always update bootcode */
485 bootsize = read_boot(optarg, bootcode,
486 sizeof bootcode, 1);
660 "%*s[-c bootcode] "
1068 warnx("%s: bootcode too large", boot_path);
1073 warnx("%s: bootcode too small", boot_path);
1106 bootsize = read_boot(DEFAULT_BOOTCODE, bootcode,
1107 sizeof bootcode, 0);
1111 && bootcode[0].mbr_bootsel_magic == LE_MBR_BS_MAGIC)
1117 memcpy(&mboot, bootcode, copy_size);
1118 mboot.mbr_bootsel_magic = bootcode[0].mbr_bootsel_magic;
1469 /* ok - we need to replace the bootcode */
1477 /* Output an explanation for the 'update bootcode' prompt. */
1484 && (bootcode[0].mbr_bootsel_magic != LE_MBR_BS_MAGIC
1485 || ((bootcode[0].mbr_bootsel.mbrbs_flags & needed) != needed))) {
1508 bootsize = read_boot(code, bootcode, sizeof bootcode, 0);
1510 /* The old bootcode is better than no bootcode at all */
1512 if ((bootcode[0].mbr_bootsel.mbrbs_flags & needed) != needed)
1515 boot_path, bootcode[0].mbr_bootsel.mbrbs_flags,
1519 if (!f_flag && !yesno("Update the bootcode from %s?", boot_path))
1525 mbs->mbrbs_flags = bootcode[0].mbr_bootsel.mbrbs_flags | ext13;
1550 * Newer bootcode always waits for 1 tick, so treats 0xffff
2798 if (write_disk(i / 0x200, &bootcode[i / 0x200]) == -1) {
2799 warn("Can't write bootcode");