Home
last modified time | relevance | path

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

/freebsd-13.1/usr.bin/mkimg/
H A Dscheme.c66 static void *bootcode; variable
123 if (scheme == NULL || scheme->bootcode == 0) in scheme_bootcode()
128 if (sb.st_size > scheme->bootcode) in scheme_bootcode()
131 bootcode = malloc(scheme->bootcode); in scheme_bootcode()
132 if (bootcode == NULL) in scheme_bootcode()
134 memset(bootcode, 0, scheme->bootcode); in scheme_bootcode()
135 if (read(fd, bootcode, sb.st_size) != sb.st_size) { in scheme_bootcode()
136 free(bootcode); in scheme_bootcode()
137 bootcode = NULL; in scheme_bootcode()
200 return ((scheme == NULL) ? 0 : scheme->write(end, bootcode)); in scheme_write()
H A Dmbr.c74 mbr_write(lba_t imgsz __unused, void *bootcode) in mbr_write() argument
85 if (bootcode != NULL) { in mbr_write()
86 memcpy(mbr, bootcode, DOSPARTOFF); in mbr_write()
100 (part->index == 0 && bootcode != NULL) ? 0x80 : 0; in mbr_write()
120 .bootcode = 512,
H A Dgpt.c150 gpt_write_pmbr(lba_t blks, void *bootcode) in gpt_write_pmbr() argument
161 if (bootcode != NULL) { in gpt_write_pmbr()
162 memcpy(pmbr, bootcode, DOSPARTOFF); in gpt_write_pmbr()
224 gpt_write(lba_t imgsz, void *bootcode) in gpt_write() argument
234 error = gpt_write_pmbr(imgsz, bootcode); in gpt_write()
286 .bootcode = 512,
H A Dbsd.c65 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 Dscheme.h77 u_int bootcode; member
H A Dapm.c62 apm_write(lba_t imgsz, void *bootcode __unused) in apm_write()
H A Dvtoc8.c60 vtoc8_write(lba_t imgsz, void *bootcode __unused) in vtoc8_write()
H A Debr.c70 ebr_write(lba_t imgsz __unused, void *bootcode __unused) in ebr_write()
/freebsd-13.1/tools/boot/
H A Dinstall-boot.sh222 doit gpart bootcode -b ${gpt0} -p ${gpt2} -i $idx $dev
242 doit gpart bootcode -b ${gpt0} -p ${gptzfs2} -i $idx $dev
258 doit gpart bootcode -b ${mbr0} ${dev}
263 doit gpart bootcode -p ${mbr2} ${dev}s${s}
290 doit gpart bootcode -b ${dst}/boot/mbr ${dev}
292 doit gpart bootcode -b /tmp/zfsboot1 ${dev}s${s} # Put boot1 into the start of part
362 doit gpart bootcode -p ${vtoc8} ${dev}
/freebsd-13.1/sys/amd64/amd64/
H A Dmpboot.S83 .word bootcode-gdt /* index in gdt for 32 bit code */
202 bootcode: label
/freebsd-13.1/usr.bin/mkimg/tests/
H A Dmkimg_test.sh8 bootcode() function
45 bootsz=`bootcode $scheme`
/freebsd-13.1/usr.sbin/bsdinstall/partedit/
H A Dgpart_ops.c302 get_part_metadata(lg_name, 1)->bootcode = 1; in gpart_partition()
375 const char *bootcode; in gpart_bootcode() local
394 bootcode = bootcode_path(scheme); in gpart_bootcode()
395 if (bootcode == NULL) in gpart_bootcode()
398 bootfd = open(bootcode, O_RDONLY); in gpart_bootcode()
711 md->bootcode = 1; in set_default_part_metadata()
916 if (bootmount == NULL && (md == NULL || !md->bootcode)) in add_boot_partition()
1427 if (md != NULL && md->bootcode) in gpart_commit()
1433 if (md == NULL || !md->bootcode) in gpart_commit()
H A Dpartedit.h51 int bootcode; member
/freebsd-13.1/tools/tools/nanobsd/
H A Dlegacy.sh123 gpart bootcode -b ${NANO_WORLDDIR}/boot/boot ${MD}
193 gpart bootcode -b ${NANO_WORLDDIR}/${NANO_BOOTLOADER} ${NANO_BOOTFLAGS} ${MD}
/freebsd-13.1/tools/tools/nanobsd/rescue/Files/root/
H A DGPT4ZFS_Create.sh34 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 $dsk
/freebsd-13.1/sys/geom/part/
H A Dg_part_if.m128 # bootcode() - scheme specific processing for the bootcode verb.
129 METHOD int bootcode {
/freebsd-13.1/lib/geom/part/
H A Dgeom_part.c1205 void *bootcode, *partcode; in gpart_bootcode() local
1212 bootcode = gpart_bootfile_read(s, &bootsize); in gpart_bootcode()
1214 bootcode); in gpart_bootcode()
1218 bootcode = NULL; in gpart_bootcode()
1283 if (bootcode == NULL) in gpart_bootcode()
1286 if (bootcode != NULL) in gpart_bootcode()
/freebsd-13.1/share/examples/csh/
H A Ddot.cshrc45 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-13.1/sys/i386/i386/
H A Dmpboot.s246 bootcode: /* offset = 0x18 */ label
/freebsd-13.1/sbin/newfs_msdos/
H A Dmkfs_msdos.c190 static const u_int8_t bootcode[] = { variable
729 memcpy(img + x1, bootcode, sizeof(bootcode)); in mkfs_msdos()
/freebsd-13.1/
H A DUPDATING2455 "gpart bootcode -p /boot/gptzfsboot -i $N ada0"