| /freebsd-12.1/usr.bin/mkimg/ |
| H A D | scheme.c | 65 static void *bootcode; variable 122 if (scheme == NULL || scheme->bootcode == 0) in scheme_bootcode() 127 if (sb.st_size > scheme->bootcode) in scheme_bootcode() 130 bootcode = malloc(scheme->bootcode); in scheme_bootcode() 131 if (bootcode == NULL) in scheme_bootcode() 133 memset(bootcode, 0, scheme->bootcode); in scheme_bootcode() 134 if (read(fd, bootcode, sb.st_size) != sb.st_size) { in scheme_bootcode() 135 free(bootcode); in scheme_bootcode() 136 bootcode = NULL; in scheme_bootcode() 199 return ((scheme == NULL) ? 0 : scheme->write(end, bootcode)); in scheme_write()
|
| H A D | mbr.c | 73 mbr_write(lba_t imgsz __unused, void *bootcode) in mbr_write() argument 84 if (bootcode != NULL) { in mbr_write() 85 memcpy(mbr, bootcode, DOSPARTOFF); in mbr_write() 99 (part->index == 0 && bootcode != NULL) ? 0x80 : 0; in mbr_write() 119 .bootcode = 512,
|
| H A D | gpt.c | 148 gpt_write_pmbr(lba_t blks, void *bootcode) in gpt_write_pmbr() argument 159 if (bootcode != NULL) { in gpt_write_pmbr() 160 memcpy(pmbr, bootcode, DOSPARTOFF); in gpt_write_pmbr() 222 gpt_write(lba_t imgsz, void *bootcode) in gpt_write() argument 232 error = gpt_write_pmbr(imgsz, bootcode); in gpt_write() 284 .bootcode = 512,
|
| H A D | bsd.c | 65 bsd_write(lba_t imgsz, void *bootcode) in bsd_write() argument 77 if (bootcode != NULL) { in bsd_write() 78 memcpy(buf, bootcode, BSD_BOOTBLOCK_SIZE); in bsd_write() 131 .bootcode = BSD_BOOTBLOCK_SIZE,
|
| H A D | scheme.h | 76 u_int bootcode; member
|
| H A D | vtoc8.c | 60 vtoc8_write(lba_t imgsz, void *bootcode __unused) in vtoc8_write()
|
| H A D | apm.c | 62 apm_write(lba_t imgsz, void *bootcode __unused) in apm_write()
|
| H A D | ebr.c | 69 ebr_write(lba_t imgsz __unused, void *bootcode __unused) in ebr_write()
|
| /freebsd-12.1/tools/boot/ |
| H A D | install-boot.sh | 78 doit gpart bootcode -b ${gpt0} -p ${gpt2} -i $idx $dev 98 doit gpart bootcode -b ${gpt0} -p ${gptzfs2} -i $idx $dev 114 doit gpart bootcode -b ${mbr0} ${dev} 119 doit gpart bootcode -p ${mbr2} ${dev}s${s} 146 doit gpart bootcode -b ${dst}/boot/mbr ${dev} 148 doit gpart bootcode -b /tmp/zfsboot1 ${dev}s${s} # Put boot1 into the start of part 218 doit gpart bootcode -p ${vtoc8} ${dev}
|
| /freebsd-12.1/sys/geom/ |
| H A D | geom_bsd.c | 244 g_bsd_writelabel(struct g_geom *gp, u_char *bootcode) in g_bsd_writelabel() argument 261 if (bootcode == NULL) { in g_bsd_writelabel() 267 buf = bootcode; in g_bsd_writelabel() 276 if (bootcode == NULL) { in g_bsd_writelabel() 280 error = g_write_data(cp, 0, bootcode, BBSIZE); in g_bsd_writelabel()
|
| /freebsd-12.1/sys/amd64/amd64/ |
| H A D | mpboot.S | 83 .word bootcode-gdt /* index in gdt for 32 bit code */ 184 bootcode: label
|
| /freebsd-12.1/usr.sbin/bsdinstall/partedit/ |
| H A D | gpart_ops.c | 301 get_part_metadata(lg_name, 1)->bootcode = 1; in gpart_partition() 374 const char *bootcode; in gpart_bootcode() local 393 bootcode = bootcode_path(scheme); in gpart_bootcode() 394 if (bootcode == NULL) in gpart_bootcode() 397 bootfd = open(bootcode, O_RDONLY); in gpart_bootcode() 710 md->bootcode = 1; in set_default_part_metadata() 718 md->bootcode = 1; in set_default_part_metadata() 920 if (bootmount == NULL && (md == NULL || !md->bootcode)) in add_boot_partition() 1431 if (md != NULL && md->bootcode) in gpart_commit() 1437 if (md == NULL || !md->bootcode) in gpart_commit()
|
| H A D | partedit.h | 51 int bootcode; member
|
| /freebsd-12.1/usr.bin/mkimg/tests/ |
| H A D | mkimg_test.sh | 8 bootcode() function 45 bootsz=`bootcode $scheme`
|
| /freebsd-12.1/sys/geom/part/ |
| H A D | g_part_if.m | 91 # bootcode() - scheme specific processing for the bootcode verb. 92 METHOD int bootcode {
|
| /freebsd-12.1/tools/tools/nanobsd/rescue/Files/root/ |
| H A D | GPT4ZFS_Create.sh | 34 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 $dsk
|
| /freebsd-12.1/lib/geom/part/ |
| H A D | geom_part.c | 1203 void *bootcode, *partcode; in gpart_bootcode() local 1210 bootcode = gpart_bootfile_read(s, &bootsize); in gpart_bootcode() 1212 bootcode); in gpart_bootcode() 1216 bootcode = NULL; in gpart_bootcode() 1281 if (bootcode == NULL) in gpart_bootcode() 1284 if (bootcode != NULL) in gpart_bootcode()
|
| /freebsd-12.1/share/examples/csh/ |
| H A D | dot.cshrc | 45 complete gpart 'p/1/(add backup bootcode commit create delete destroy modify recover resize restore… 48 'n/bootcode/x:[-b bootcode] [-p partcode -i index] [-f flags] geom/' \
|
| /freebsd-12.1/sys/i386/i386/ |
| H A D | mpboot.s | 250 bootcode: /* offset = 0x18 */ label
|
| /freebsd-12.1/sbin/newfs_msdos/ |
| H A D | mkfs_msdos.c | 182 static const u_int8_t bootcode[] = { variable 710 memcpy(img + x1, bootcode, sizeof(bootcode)); in mkfs_msdos()
|
| /freebsd-12.1/ |
| H A D | UPDATING | 1968 "gpart bootcode -p /boot/gptzfsboot -i 1 ada0"
|