Lines Matching defs:boot0
118 u_int8_t *mbr, *boot0;
127 bpath = "/boot/boot0";
204 * slice table over from the existing MBR. If not, then point boot0
205 * back at the MBR we just read in. After this, boot0 is the data to
209 boot0_size = read_mbr(bpath, &boot0, 1);
210 memcpy(boot0 + OFF_PTBL, mbr + OFF_PTBL,
213 memcpy(boot0 + OFF_SERIAL, mbr + OFF_SERIAL, 4);
215 boot0 = mbr;
221 boot0[OFF_DRIVE] = d_arg;
225 boot0[OFF_FLAGS] &= 0xf0;
226 boot0[OFF_FLAGS] |= m_arg;
229 boot0[OFF_FLAGS] &= o_and;
230 boot0[OFF_FLAGS] |= o_or;
235 boot0[OFF_OPT] = s_arg - 1;
239 mk2(boot0 + OFF_TICKS, t_arg);
242 if (o_e != -1 && set_bell(boot0, o_e, 0) != -1)
248 boot0[OFF_SERIAL] = vol_id[0];
249 boot0[OFF_SERIAL+1] = vol_id[1];
250 boot0[OFF_SERIAL+2] = vol_id[2];
251 boot0[OFF_SERIAL+3] = vol_id[3];
256 write_mbr(disk, 0, boot0, boot0_size, vol_id[4] || b0_ver == 1);
260 display_mbr(boot0);
263 if (mbr != boot0)
264 free(boot0);
302 * Read in the MBR of the disk. If it is boot0, then use the version to
480 * Return the boot0 version with the minor revision in the low byte, and
491 /* We have a newer boot0, so extract the version number and return it. */
508 * Decide if we have valid boot0 boot code by looking for
596 "usage: boot0cfg [-Bv] [-b boot0] [-d drive] [-f file] [-m mask]",