| /freebsd/usr.bin/mkimg/ |
| H A D | scheme.c | 64 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 D | mbr.c | 72 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 D | gpt.c | 156 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 D | bsd.c | 63 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 D | scheme.h | 75 u_int bootcode; member
|
| H A D | apm.c | 60 apm_write(lba_t imgsz, void *bootcode __unused) in apm_write()
|
| H A D | ebr.c | 68 ebr_write(lba_t imgsz __unused, void *bootcode __unused) in ebr_write()
|
| /freebsd/tools/tools/nanobsd/ |
| H A D | legacy.sh | 133 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 D | install-boot.sh | 244 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 D | mpboot.S | 81 .word bootcode-gdt /* index in gdt for 32 bit code */ 200 bootcode: label
|
| /freebsd/usr.bin/mkimg/tests/ |
| H A D | mkimg_test.sh | 7 bootcode() function 44 bootsz=`bootcode $scheme`
|
| /freebsd/usr.sbin/bsdinstall/partedit/ |
| H A D | gpart_ops.c | 338 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 D | partedit.h | 51 int bootcode; member
|
| /freebsd/tools/tools/nanobsd/rescue/Files/root/ |
| H A D | GPT4ZFS_Create.sh | 33 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 $dsk
|
| /freebsd/sys/geom/part/ |
| H A D | g_part_if.m | 134 # bootcode() - scheme specific processing for the bootcode verb. 135 METHOD int bootcode {
|
| /freebsd/lib/geom/part/ |
| H A D | geom_part.c | 1219 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 D | dot.cshrc | 44 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 D | mpboot.S | 244 bootcode: /* offset = 0x18 */ label
|
| /freebsd/sbin/newfs_msdos/ |
| H A D | mkfs_msdos.c | 185 static const u_int8_t bootcode[] = { variable 733 memcpy(img + x1, bootcode, sizeof(bootcode)); in mkfs_msdos()
|
| /freebsd/ |
| H A D | UPDATING | 2472 gpart bootcode -p /boot/gptzfsboot -i $N ada0
|