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

/freebsd-10.3-release/usr.bin/mkimg/
H A Dscheme.c68 static void *bootcode; variable
111 if (scheme == NULL || scheme->bootcode == 0)
116 if (sb.st_size > scheme->bootcode)
119 bootcode = malloc(scheme->bootcode);
120 if (bootcode == NULL)
122 memset(bootcode, 0, scheme->bootcode);
123 if (read(fd, bootcode, sb.st_size) != sb.st_size) {
124 free(bootcode);
[all...]
H A Dmbr.c82 mbr_write(lba_t imgsz __unused, void *bootcode) argument
93 if (bootcode != NULL) {
94 memcpy(mbr, bootcode, DOSPARTOFF);
103 dp->dp_flag = (part->index == 0 && bootcode != NULL) ? 0x80 : 0;
123 .bootcode = 512,
H A Dpc98.c82 pc98_write(lba_t imgsz __unused, void *bootcode) argument
93 if (bootcode != NULL) {
94 memcpy(buf, bootcode, PC98_BOOTCODESZ);
124 .bootcode = PC98_BOOTCODESZ,
H A Dbsd.c69 bsd_write(lba_t imgsz, void *bootcode) argument
81 if (bootcode != NULL) {
82 memcpy(buf, bootcode, BBSIZE);
135 .bootcode = BBSIZE,
H A Dscheme.h75 u_int bootcode; member in struct:mkimg_scheme
H A Dgpt.c170 gpt_write_pmbr(lba_t blks, void *bootcode) argument
181 if (bootcode != NULL) {
182 memcpy(pmbr, bootcode, DOSPARTOFF);
244 gpt_write(lba_t imgsz, void *bootcode) argument
254 error = gpt_write_pmbr(imgsz, bootcode);
306 .bootcode = 512,
H A Dapm.c69 apm_write(lba_t imgsz, void *bootcode __unused)
H A Debr.c76 ebr_write(lba_t imgsz __unused, void *bootcode __unused)
H A Dvtoc8.c65 vtoc8_write(lba_t imgsz, void *bootcode __unused)
/freebsd-10.3-release/release/amd64/
H A Dmake-memstick.sh47 gpart bootcode -b ${1}/boot/boot ${unit}
/freebsd-10.3-release/sys/amd64/amd64/
H A Dmpboot.S75 * ljmpl $bootcode-gdt, $protmode-mptramp_start
83 .word bootcode-gdt /* index in gdt for 32 bit code */
184 bootcode: label
/freebsd-10.3-release/usr.sbin/bsdinstall/partedit/
H A Dpartedit.h49 int bootcode; member in struct:partition_metadata
H A Dgpart_ops.c304 get_part_metadata(lg_name, 1)->bootcode = 1;
378 const char *bootcode; local
387 * Write default bootcode to the newly partitioned disk, if that
397 bootcode = bootcode_path(scheme);
398 if (bootcode == NULL)
401 bootfd = open(bootcode, O_RDONLY);
419 gctl_ro_param(r, "verb", -1, "bootcode");
420 gctl_ro_param(r, "bootcode", bootsize, boot);
456 sprintf(command, "gpart bootcode -p %s -i %s %s",
698 md->bootcode
[all...]
/freebsd-10.3-release/tools/tools/nanobsd/rescue/Files/root/
H A DGPT4ZFS_Create.sh34 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 $dsk
/freebsd-10.3-release/sys/geom/
H A Dgeom_bsd.c240 g_bsd_writelabel(struct g_geom *gp, u_char *bootcode) argument
257 if (bootcode == NULL) {
263 buf = bootcode;
272 if (bootcode == NULL) {
276 error = g_write_data(cp, 0, bootcode, BBSIZE);
675 } else if (!strcmp(verb, "write bootcode")) {
676 label = gctl_get_paraml(req, "bootcode", BBSIZE);
/freebsd-10.3-release/sys/i386/i386/
H A Dmpboot.s242 bootcode: /* offset = 0x18 */ label
/freebsd-10.3-release/sbin/geom/class/part/
H A Dgeom_part.c70 #define GPART_PARAM_BOOTCODE "bootcode"
110 { "bootcode", 0, gpart_bootcode, {
116 "[-b bootcode] [-p partcode -i index] [-f flags] geom"
1173 void *bootcode, *partcode; local
1180 bootcode = gpart_bootfile_read(s, &bootsize);
1182 bootcode);
1186 bootcode = NULL;
1247 errx(EXIT_FAILURE, "invalid bootcode");
1251 if (bootcode == NULL)
1254 if (bootcode !
[all...]
/freebsd-10.3-release/sbin/newfs_msdos/
H A Dnewfs_msdos.c185 static const u_int8_t bootcode[] = { variable
703 memcpy(img + x1, bootcode, sizeof(bootcode));

Completed in 160 milliseconds