Home
last modified time | relevance | path

Searched refs:mboot (Results 1 – 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/cmd/boot/common/
H A Dmboot_extra.c62 multiboot_header_t *mboot; in find_multiboot() local
79 mboot = (multiboot_header_t *)iter; in find_multiboot()
80 if (mboot->magic != MB_HEADER_MAGIC) in find_multiboot()
84 cksum = -(mboot->flags + mboot->magic); in find_multiboot()
85 if (mboot->checksum != cksum) { in find_multiboot()
87 "mismatches (is %x, should be %x)\n", mboot, in find_multiboot()
88 mboot->checksum, cksum); in find_multiboot()
91 if (!(mboot->flags & BB_MBOOT_AOUT_FLAG)) { in find_multiboot()
/illumos-gate/usr/src/cmd/boot/installboot/sparc/
H A Dinstallboot.c186 multiboot_header_t *mboot; in read_bootblock_from_disk() local
216 size = mboot->load_end_addr - mboot->load_addr; in read_bootblock_from_disk()
340 multiboot_header_t *mboot; in prepare_bootblock() local
355 assert(bblock->mboot != NULL); in prepare_bootblock()
358 mboot = bblock->mboot; in prepare_bootblock()
360 mboot->magic = MB_HEADER_MAGIC; in prepare_bootblock()
361 mboot->flags = MB_HEADER_FLAGS_64; in prepare_bootblock()
362 mboot->checksum = -(mboot->flags + mboot->magic); in prepare_bootblock()
367 mboot->header_addr = bblock->mboot_off; in prepare_bootblock()
368 mboot->load_addr = 0; in prepare_bootblock()
[all …]
H A Dinstallboot.h52 multiboot_header_t *mboot; member
/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dinstallgrub.c617 assert(src_stage2->mboot); in propagate_bootblock()
730 struct mboot *mboot; in get_start_sector() local
751 mboot = (struct mboot *)device->boot_sector; in get_start_sector()
942 multiboot_header_t *mboot; in prepare_fake_multiboot() local
948 mboot = stage2->mboot; in prepare_fake_multiboot()
958 mboot->load_addr = 0; in prepare_fake_multiboot()
1254 mboot->load_end_addr < mboot->load_addr) in read_stage2_from_disk()
1262 size = mboot->load_end_addr - mboot->load_addr; in read_stage2_from_disk()
1458 find_x86_bootpar(struct mboot *mboot, int *part_num, uint32_t *start_sect) in find_x86_bootpar() argument
1486 struct mboot *mboot; in get_raw_partition_path() local
[all …]
H A Dinstallgrub.h54 multiboot_header_t *mboot; member
/illumos-gate/usr/src/tools/btxld/
H A Dversion.c54 multiboot_header_t *mboot; in add_version() local
101 mboot = (multiboot_header_t *)(buf + mboot_off); in add_version()
102 mboot->load_addr = 0; in add_version()
103 mboot->load_end_addr = sb.st_size; in add_version()
/illumos-gate/usr/src/cmd/hal/utils/
H A Dfsutils.c118 struct mboot *mboot = (struct mboot *)&buf[0]; in walk_partitions() local
133 if (ltohs(mboot->signature) != MBB_MAGIC) { in walk_partitions()
136 bcopy(mboot->parts, ipart, FD_NUMPART * sizeof (struct ipart)); in walk_partitions()
/illumos-gate/usr/src/cmd/format/
H A Dmenu_fdisk.c64 struct mboot boot_sec;
516 (void) memcpy(&boot_sec, mbr, sizeof (struct mboot));
682 struct mboot mboot; local
747 (void) memcpy(&mboot, mbr, sizeof (struct mboot));
758 bootptr = &mboot.parts[ipc];
838 struct mboot mboot; local
872 (void) memcpy(&mboot, mbr, sizeof (struct mboot));
883 bootptr = &mboot.parts[ipc];
H A Dglobal.h135 extern struct mboot boot_sec; /* fdisk partition info */
/illumos-gate/usr/src/cmd/fstyp/
H A Dfstyp.c312 struct mboot *mboot = (struct mboot *)&buf[0]; in walk_partitions() local
327 if (ltohs(mboot->signature) != MBB_MAGIC) { in walk_partitions()
330 bcopy(mboot->parts, ipart, FD_NUMPART * sizeof (struct ipart)); in walk_partitions()
/illumos-gate/usr/src/cmd/boot/installboot/i386/
H A Dinstallboot.c613 multiboot_header_t *mboot; in read_stage2_cb() local
651 if (mboot->load_end_addr == 0 || in read_stage2_cb()
652 mboot->load_end_addr < mboot->load_addr) { in read_stage2_cb()
662 size = mboot->load_end_addr - mboot->load_addr; in read_stage2_cb()
846 struct mboot *mbr; in print_stage1_cb()
1302 struct mboot *mbr; in get_start_sector()
1339 mbr = (struct mboot *)pl->pl_stage; in get_start_sector()
1545 struct mboot *mbr; in probe_mbr()
1557 mbr = (struct mboot *)pl->pl_stage; in probe_mbr()
1825 bblock->mboot->load_end_addr - bblock->mboot->load_addr; in read_bootblock_from_file()
[all …]
H A Dinstallboot.h91 multiboot_header_t *mboot; member
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_slice.c1119 struct mboot *boot_sec; in get_fdisk()
1164 ret = read(fd, buf, sizeof (struct mboot)); in get_fdisk()
1169 if (ret != sizeof (struct mboot)) { in get_fdisk()
1183 boot_sec = (struct mboot *)buf; in get_fdisk()
1330 struct mboot boot_code; /* Buffer for master boot record */ in write_default_label()
1359 if (read(tmp_fd, &boot_code, sizeof (struct mboot)) in write_default_label()
1360 != sizeof (struct mboot)) { in write_default_label()
/illumos-gate/usr/src/uts/common/sys/dktp/
H A Dfdisk.h146 struct mboot { /* master boot block */ struct
/illumos-gate/usr/src/cmd/mdb/common/modules/disk_label/
H A Ddisk_label.c197 mbr_info(struct mboot *mbr) in mbr_info()
251 struct mboot *mbr; in cmd_mbr()
280 struct mboot vbr; in cmd_mbr()
626 (void) mbr_info((struct mboot *)buf); in cmd_vtoc()
/illumos-gate/usr/src/uts/common/io/
H A Dcmlb.c2392 struct mboot *mbp;
2435 mbp = (struct mboot *)bufp;
2778 struct mboot *mbp = (struct mboot *)buf;
5075 struct mboot *mboot; local
5098 if (ddi_copyout(mboot, (void *)arg,
5103 kmem_free(mboot, buffer_size);
5133 struct mboot *mboot = NULL; local
5152 if (ddi_copyin((const void *)arg, mboot,
5154 kmem_free(mboot, cl->cl_sys_blocksize);
5159 magic = LE_16(mboot->signature);
[all …]
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dpcfs_bpb.h223 struct mboot mb;
H A Dpcfs_common.c457 struct mboot extmboot; in findPartitionOffset()
458 struct mboot mb; in findPartitionOffset()
/illumos-gate/usr/src/cmd/fs.d/pcfs/mkfs/
H A Dmkfs_pcfs.h221 struct mboot mb;
H A Dmkfs.c619 struct mboot extmboot; in seek_partn()
620 struct mboot mb; in seek_partn()
/illumos-gate/usr/src/lib/libgrubmgmt/common/
H A Dlibgrub_fs.c96 struct mboot *mb; in get_sol_prtnum()
140 mb = (struct mboot *)(uintptr_t)boot_sect; in get_sol_prtnum()
/illumos-gate/usr/src/lib/libefi/common/
H A Drdwr_efi.c237 struct mboot *mbr; in efi_alloc_and_read()
719 struct mboot mb; in write_pmbr()
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dpartition.c553 struct mboot bootblk; in get_parts()
/illumos-gate/usr/src/cmd/fdisk/
H A Dfdisk.c292 static struct mboot BootCod; /* buffer for master boot record */
301 static struct mboot *Bootblk; /* pointer to cut/paste sector zero */
1164 Bootblk = (struct mboot *)Bootsect; in main()
1573 if (read(mDev, &BootCod, sizeof (struct mboot)) != sizeof in mboot_read()
1574 (struct mboot)) { in mboot_read()
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c5573 struct mboot *mboot; local
5625 mboot = (struct mboot *)((void *)boot_sect);
5628 (struct ipart *)(uintptr_t)mboot->parts + i;

12