Home
last modified time | relevance | path

Searched refs:bootcode (Results 1 – 20 of 20) sorted by relevance

/freebsd/usr.bin/mkimg/
H A Dscheme.c64 static void *bootcode; variable
121 if (scheme == NULL || scheme->bootcode == 0) in scheme_bootcode()
126 if (sb.st_size > scheme->bootcode) in scheme_bootcode()
129 bootcode = malloc(scheme->bootcode); in scheme_bootcode()
130 if (bootcode == NULL) in scheme_bootcode()
132 memset(bootcode, 0, scheme->bootcode); in scheme_bootcode()
133 if (read(fd, bootcode, sb.st_size) != sb.st_size) { in scheme_bootcode()
134 free(bootcode); in scheme_bootcode()
135 bootcode = NULL; in scheme_bootcode()
198 return ((scheme == NULL) ? 0 : scheme->write(end, bootcode)); in scheme_write()
H A Dmbr.c72 mbr_write(lba_t imgsz __unused, void *bootcode) in mbr_write() argument
83 if (bootcode != NULL) { in mbr_write()
84 memcpy(mbr, bootcode, DOSPARTOFF); in mbr_write()
98 (part->index == 0 && bootcode != NULL) ? 0x80 : 0; in mbr_write()
118 .bootcode = 512,
H A Dgpt.c156 gpt_write_pmbr(lba_t blks, void *bootcode) in gpt_write_pmbr() argument
167 if (bootcode != NULL) { in gpt_write_pmbr()
168 memcpy(pmbr, bootcode, DOSPARTOFF); in gpt_write_pmbr()
230 gpt_write(lba_t imgsz, void *bootcode) in gpt_write() argument
240 error = gpt_write_pmbr(imgsz, bootcode); in gpt_write()
292 .bootcode = 512,
H A Dbsd.c63 bsd_write(lba_t imgsz, void *bootcode) in bsd_write() argument
75 if (bootcode != NULL) { in bsd_write()
76 memcpy(buf, bootcode, BSD_BOOTBLOCK_SIZE); in bsd_write()
129 .bootcode = BSD_BOOTBLOCK_SIZE,
H A Dscheme.h75 u_int bootcode; member
H A Dapm.c60 apm_write(lba_t imgsz, void *bootcode __unused) in apm_write()
H A Debr.c68 ebr_write(lba_t imgsz __unused, void *bootcode __unused) in ebr_write()
/freebsd/tools/tools/nanobsd/
H A Dlegacy.sh133 gpart bootcode -b ${NANO_WORLDDIR}/boot/boot ${MD}
170 bootcode="-b ${NANO_WORLDDIR}/boot/boot"
178 ${bootcode} \
230 gpart bootcode -b ${NANO_WORLDDIR}/${NANO_BOOTLOADER} ${NANO_BOOTFLAGS} ${MD}
313 bootcode="-b ${NANO_WORLDDIR}/boot/boot"
316 ${bootcode} \
/freebsd/tools/boot/
H A Dinstall-boot.sh244 doit gpart bootcode -b ${gpt0} -p ${gpt2} -i $idx $dev
264 doit gpart bootcode -b ${gpt0} -p ${gptzfs2} -i $idx $dev
280 doit gpart bootcode -b ${mbr0} ${dev}
285 doit gpart bootcode -p ${mbr2} ${dev}s${s}
/freebsd/sys/amd64/amd64/
H A Dmpboot.S81 .word bootcode-gdt /* index in gdt for 32 bit code */
200 bootcode: label
/freebsd/usr.bin/mkimg/tests/
H A Dmkimg_test.sh7 bootcode() function
44 bootsz=`bootcode $scheme`
/freebsd/usr.sbin/bsdinstall/partedit/
H A Dgpart_ops.c338 get_part_metadata(lg_name, 1)->bootcode = 1; in gpart_partition()
411 const char *bootcode; in gpart_bootcode() local
431 bootcode = bootcode_path(scheme); in gpart_bootcode()
432 if (bootcode == NULL) in gpart_bootcode()
435 bootfd = open(bootcode, O_RDONLY); in gpart_bootcode()
761 md->bootcode = 1; in set_default_part_metadata()
965 if (bootmount == NULL && (md == NULL || !md->bootcode)) in add_boot_partition()
1531 if (md != NULL && md->bootcode) in gpart_commit()
1537 if (md == NULL || !md->bootcode) in gpart_commit()
H A Dpartedit.h51 int bootcode; member
/freebsd/tools/tools/nanobsd/rescue/Files/root/
H A DGPT4ZFS_Create.sh33 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 $dsk
/freebsd/sys/geom/part/
H A Dg_part_if.m134 # bootcode() - scheme specific processing for the bootcode verb.
135 METHOD int bootcode {
/freebsd/lib/geom/part/
H A Dgeom_part.c1219 void *bootcode, *partcode; in gpart_bootcode() local
1229 bootcode = gpart_bootfile_read(s, &bootsize); in gpart_bootcode()
1231 bootcode); in gpart_bootcode()
1235 bootcode = NULL; in gpart_bootcode()
1238 if (bootcode == NULL) in gpart_bootcode()
1269 if (bootcode != NULL) in gpart_bootcode()
/freebsd/share/examples/csh/
H A Ddot.cshrc44 complete gpart 'p/1/(add backup bootcode commit create delete destroy modify recover resize restore…
47 'n/bootcode/x:[-b bootcode] [-p partcode -i index] [-f flags] geom/' \
/freebsd/sys/i386/i386/
H A Dmpboot.S244 bootcode: /* offset = 0x18 */ label
/freebsd/sbin/newfs_msdos/
H A Dmkfs_msdos.c185 static const u_int8_t bootcode[] = { variable
733 memcpy(img + x1, bootcode, sizeof(bootcode)); in mkfs_msdos()
/freebsd/
H A DUPDATING2472 gpart bootcode -p /boot/gptzfsboot -i $N ada0