/freebsd-current/usr.bin/mkimg/ |
H A D | scheme.c | 64 static void *bootcode; variable 121 if (scheme == NULL || scheme->bootcode == 0) 126 if (sb.st_size > scheme->bootcode) 129 bootcode = malloc(scheme->bootcode); 130 if (bootcode == NULL) 132 memset(bootcode, 0, scheme->bootcode); 133 if (read(fd, bootcode, sb.st_size) != sb.st_size) { 134 free(bootcode); [all...] |
H A D | mbr.c | 72 mbr_write(lba_t imgsz __unused, void *bootcode) argument 83 if (bootcode != NULL) { 84 memcpy(mbr, bootcode, DOSPARTOFF); 98 (part->index == 0 && bootcode != NULL) ? 0x80 : 0; 118 .bootcode = 512,
|
H A D | bsd.c | 63 bsd_write(lba_t imgsz, void *bootcode) argument 75 if (bootcode != NULL) { 76 memcpy(buf, bootcode, BSD_BOOTBLOCK_SIZE); 129 .bootcode = BSD_BOOTBLOCK_SIZE,
|
H A D | scheme.h | 75 u_int bootcode; member in struct:mkimg_scheme
|
H A D | gpt.c | 156 gpt_write_pmbr(lba_t blks, void *bootcode) argument 167 if (bootcode != NULL) { 168 memcpy(pmbr, bootcode, DOSPARTOFF); 230 gpt_write(lba_t imgsz, void *bootcode) argument 240 error = gpt_write_pmbr(imgsz, bootcode); 292 .bootcode = 512,
|
H A D | apm.c | 60 apm_write(lba_t imgsz, void *bootcode __unused)
|
H A D | ebr.c | 68 ebr_write(lba_t imgsz __unused, void *bootcode __unused)
|
/freebsd-current/tools/boot/ |
H A D | install-boot.sh | 220 doit gpart bootcode -b ${gpt0} -p ${gpt2} -i $idx $dev 240 doit gpart bootcode -b ${gpt0} -p ${gptzfs2} -i $idx $dev 256 doit gpart bootcode -b ${mbr0} ${dev} 261 doit gpart bootcode -p ${mbr2} ${dev}s${s} 288 doit gpart bootcode -b ${dst}/boot/mbr ${dev} 290 doit gpart bootcode -b /tmp/zfsboot1 ${dev}s${s} # Put boot1 into the start of part
|
/freebsd-current/sys/amd64/amd64/ |
H A D | mpboot.S | 73 * ljmpl $bootcode-gdt, $protmode-mptramp_start 81 .word bootcode-gdt /* index in gdt for 32 bit code */ 200 bootcode: label
|
/freebsd-current/usr.sbin/bsdinstall/partedit/ |
H A D | partedit.h | 51 int bootcode; member in struct:partition_metadata 98 /* Path to bootcode that goes in the scheme (e.g. disk MBR). NULL if none */
|
H A D | gpart_ops.c | 338 get_part_metadata(lg_name, 1)->bootcode = 1; 411 const char *bootcode; local 421 * Write default bootcode to the newly partitioned disk, if that 431 bootcode = bootcode_path(scheme); 432 if (bootcode == NULL) 435 bootfd = open(bootcode, O_RDONLY); 454 gctl_ro_param(r, "verb", -1, "bootcode"); 455 gctl_ro_param(r, "bootcode", bootsize, boot); 492 snprintf(command, sizeof(command), "gpart bootcode -p %s -i %s %s", 761 md->bootcode [all...] |
/freebsd-current/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-current/usr.bin/mkimg/tests/ |
H A D | mkimg_test.sh | 7 bootcode() function 44 bootsz=`bootcode $scheme`
|
/freebsd-current/tools/tools/nanobsd/ |
H A D | legacy.sh | 122 gpart bootcode -b ${NANO_WORLDDIR}/boot/boot ${MD} 192 gpart bootcode -b ${NANO_WORLDDIR}/${NANO_BOOTLOADER} ${NANO_BOOTFLAGS} ${MD}
|
/freebsd-current/lib/geom/part/ |
H A D | geom_part.c | 69 #define GPART_PARAM_BOOTCODE "bootcode" 110 { "bootcode", 0, gpart_bootcode, { 117 "[-N] [-b bootcode] [-p partcode -i index] [-f flags] geom" 1180 void *bootcode, *partcode; local 1190 bootcode = gpart_bootfile_read(s, &bootsize); 1192 bootcode); 1196 bootcode = NULL; 1199 if (bootcode == NULL) 1230 if (bootcode != NULL)
|
/freebsd-current/sys/i386/i386/ |
H A D | mpboot.S | 244 bootcode: /* offset = 0x18 */ label
|
/freebsd-current/sbin/newfs_msdos/ |
H A D | mkfs_msdos.c | 185 static const u_int8_t bootcode[] = { variable 726 memcpy(img + x1, bootcode, sizeof(bootcode));
|