Home | History | Annotate | Download | only in arch

Lines Matching defs:bpb

405 	 * preserve the BIOS Parameter Block (BPB).
411 * Unfortunately newfs(8) doesn't (yet) splat the BPB (which is
414 * Specifying 'installboot -f' will delete the old BPB info.
420 * followed by the BIOS Parameter Block (BPB).
421 * The 2nd byte (jump offset) is the size of the nop + BPB.
424 warnx("No BPB in new bootstrap %02x:%02x:%02x" USE_F,
430 * Find size of old BPB, and copy into new bootcode
442 struct mbr_bpbFAT16 *bpb = (void *)(disk_buf.b + 3 + 8);
444 u = le16toh(bpb->bpbBytesPerSec)
445 * le16toh(bpb->bpbResSectors);
451 /* Check we have enough space for the old bpb */
453 /* old BPB is larger, allow if extra zeros */
456 warnx("Old BPB too big" USE_F);
461 /* Old BPB is shorter, leave zero filled */
466 bpb->bpbHiddenSecs = htole32(params->s1start);