Home
last modified time | relevance | path

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

/freebsd-11-stable/usr.bin/mkimg/
HDscheme.c67 static void *bootcode; variable
124 if (scheme == NULL || scheme->bootcode == 0) in scheme_bootcode()
129 if (sb.st_size > scheme->bootcode) in scheme_bootcode()
132 bootcode = malloc(scheme->bootcode); in scheme_bootcode()
133 if (bootcode == NULL) in scheme_bootcode()
135 memset(bootcode, 0, scheme->bootcode); in scheme_bootcode()
136 if (read(fd, bootcode, sb.st_size) != sb.st_size) { in scheme_bootcode()
137 free(bootcode); in scheme_bootcode()
138 bootcode = NULL; in scheme_bootcode()
201 return ((scheme == NULL) ? 0 : scheme->write(end, bootcode)); in scheme_write()
HDmbr.c87 mbr_write(lba_t imgsz __unused, void *bootcode) in mbr_write() argument
98 if (bootcode != NULL) { in mbr_write()
99 memcpy(mbr, bootcode, DOSPARTOFF); in mbr_write()
113 (part->index == 0 && bootcode != NULL) ? 0x80 : 0; in mbr_write()
133 .bootcode = 512,
HDpc98.c83 pc98_write(lba_t imgsz __unused, void *bootcode) in pc98_write() argument
94 if (bootcode != NULL) { in pc98_write()
95 memcpy(buf, bootcode, PC98_BOOTCODESZ); in pc98_write()
125 .bootcode = PC98_BOOTCODESZ,
HDgpt.c154 gpt_write_pmbr(lba_t blks, void *bootcode) in gpt_write_pmbr() argument
165 if (bootcode != NULL) { in gpt_write_pmbr()
166 memcpy(pmbr, bootcode, DOSPARTOFF); in gpt_write_pmbr()
228 gpt_write(lba_t imgsz, void *bootcode) in gpt_write() argument
238 error = gpt_write_pmbr(imgsz, bootcode); in gpt_write()
290 .bootcode = 512,
HDbsd.c70 bsd_write(lba_t imgsz, void *bootcode) in bsd_write() argument
82 if (bootcode != NULL) { in bsd_write()
83 memcpy(buf, bootcode, BBSIZE); in bsd_write()
136 .bootcode = BBSIZE,
HDscheme.h76 u_int bootcode; member
HDvtoc8.c66 vtoc8_write(lba_t imgsz, void *bootcode __unused) in vtoc8_write()
HDapm.c70 apm_write(lba_t imgsz, void *bootcode __unused) in apm_write()
HDebr.c77 ebr_write(lba_t imgsz __unused, void *bootcode __unused) in ebr_write()
/freebsd-11-stable/tools/boot/
HDinstall-boot.sh38 doit gpart bootcode -b ${gpt0} -p ${gptzfs2} -i $idx $dev
50 doit gpart bootcode -b ${gpt0} -p ${gpt2} -i $idx $dev
66 doit gpart bootcode -b /tmp/zfsboo1 ${dev}s${s} # Put boot1 into the start of part
78 doit gpart bootcode -b ${mbr0} ${dev}
83 doit gpart bootcode -p ${mbr2} ${dev}s${s}
93 doit gpart bootcode -p ${vtoc8} ${dev}
/freebsd-11-stable/usr.sbin/bsdinstall/partedit/
HDgpart_ops.c306 get_part_metadata(lg_name, 1)->bootcode = 1; in gpart_partition()
380 const char *bootcode; in gpart_bootcode() local
399 bootcode = bootcode_path(scheme); in gpart_bootcode()
400 if (bootcode == NULL) in gpart_bootcode()
403 bootfd = open(bootcode, O_RDONLY); in gpart_bootcode()
700 md->bootcode = 1; in set_default_part_metadata()
705 md->bootcode = 1; in set_default_part_metadata()
1103 if (md == NULL || !md->bootcode) in gpart_create()
1143 get_part_metadata(strtok(output, " "), 1)->bootcode = 1; in gpart_create()
1192 get_part_metadata(newpartname, 1)->bootcode = 1; in gpart_create()
[all …]
HDpartedit.h51 int bootcode; member
/freebsd-11-stable/sys/amd64/amd64/
HDmpboot.S83 .word bootcode-gdt /* index in gdt for 32 bit code */
184 bootcode: label
/freebsd-11-stable/sys/geom/
HDgeom_bsd.c242 g_bsd_writelabel(struct g_geom *gp, u_char *bootcode) in g_bsd_writelabel() argument
259 if (bootcode == NULL) { in g_bsd_writelabel()
265 buf = bootcode; in g_bsd_writelabel()
274 if (bootcode == NULL) { in g_bsd_writelabel()
278 error = g_write_data(cp, 0, bootcode, BBSIZE); in g_bsd_writelabel()
/freebsd-11-stable/usr.bin/mkimg/tests/
HDmkimg.sh8 bootcode() function
45 bootsz=`bootcode $scheme`
HDmkimg_test.sh8 bootcode() function
45 bootsz=`bootcode $scheme`
/freebsd-11-stable/sys/geom/part/
HDg_part_if.m91 # bootcode() - scheme specific processing for the bootcode verb.
92 METHOD int bootcode {
/freebsd-11-stable/tools/tools/nanobsd/rescue/Files/root/
HDGPT4ZFS_Create.sh34 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 $dsk
/freebsd-11-stable/sbin/geom/class/part/
HDgeom_part.c1203 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-11-stable/share/examples/csh/
HDdot.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-11-stable/sys/i386/i386/
HDmpboot.s242 bootcode: /* offset = 0x18 */ label
/freebsd-11-stable/sbin/newfs_msdos/
HDmkfs_msdos.c185 static const u_int8_t bootcode[] = { variable
716 memcpy(img + x1, bootcode, sizeof(bootcode)); in mkfs_msdos()
/freebsd-11-stable/
HDUPDATING1716 "gpart bootcode -p /boot/gptzfsboot -i 1 ada0"