Searched refs:bootcode (Results 1 - 17 of 17) sorted by relevance

/freebsd-current/usr.bin/mkimg/
H A Dscheme.c64 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 Dmbr.c72 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 Dbsd.c63 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 Dscheme.h75 u_int bootcode; member in struct:mkimg_scheme
H A Dgpt.c156 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 Dapm.c60 apm_write(lba_t imgsz, void *bootcode __unused)
H A Debr.c68 ebr_write(lba_t imgsz __unused, void *bootcode __unused)
/freebsd-current/tools/boot/
H A Dinstall-boot.sh220 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 Dmpboot.S73 * 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 Dpartedit.h51 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 Dgpart_ops.c338 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 DGPT4ZFS_Create.sh33 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 $dsk
/freebsd-current/usr.bin/mkimg/tests/
H A Dmkimg_test.sh7 bootcode() function
44 bootsz=`bootcode $scheme`
/freebsd-current/tools/tools/nanobsd/
H A Dlegacy.sh122 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 Dgeom_part.c69 #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 Dmpboot.S244 bootcode: /* offset = 0x18 */ label
/freebsd-current/sbin/newfs_msdos/
H A Dmkfs_msdos.c185 static const u_int8_t bootcode[] = { variable
726 memcpy(img + x1, bootcode, sizeof(bootcode));

Completed in 122 milliseconds