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.c161 bblock->mboot = (multiboot_header_t *)(bblock->file + in read_bootblock_from_file()
163 bblock->extra = (char *)bblock->mboot + sizeof (multiboot_header_t); in read_bootblock_from_file()
165 bblock->mboot, bblock->extra, bblock->buf, bblock->buf_size); in read_bootblock_from_file()
186 multiboot_header_t *mboot; in read_bootblock_from_disk() local
209 mboot = (multiboot_header_t *)(mboot_scan + mboot_off); in read_bootblock_from_disk()
216 size = mboot->load_end_addr - mboot->load_addr; in read_bootblock_from_disk()
253 bblock->mboot = (multiboot_header_t *)(bblock->buf + bblock->mboot_off in read_bootblock_from_disk()
255 bblock->extra = (char *)bblock->mboot + sizeof (multiboot_header_t); in read_bootblock_from_disk()
340 multiboot_header_t *mboot; in prepare_bootblock() local
355 assert(bblock->mboot != NULL); in prepare_bootblock()
[all …]
H A Dinstallboot.h52 multiboot_header_t *mboot; member
/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dinstallgrub.c107 static int find_x86_bootpar(struct mboot *, int *, uint32_t *);
617 assert(src_stage2->mboot); in propagate_bootblock()
620 dest_stage2->mboot = (multiboot_header_t *)(dest_stage2->buf + in propagate_bootblock()
730 struct mboot *mboot; in get_start_sector() local
751 mboot = (struct mboot *)device->boot_sector; in get_start_sector()
754 if (find_x86_bootpar(mboot, &pno, &secnum) != BC_SUCCESS) { in get_start_sector()
780 part = (struct ipart *)mboot->parts + i; in get_start_sector()
942 multiboot_header_t *mboot; in prepare_fake_multiboot() local
945 assert(stage2->mboot != NULL); in prepare_fake_multiboot()
948 mboot = stage2->mboot; in prepare_fake_multiboot()
[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.c614 multiboot_header_t *mboot; in read_stage2_cb() local
647 mboot = (multiboot_header_t *)(mboot_scan + mboot_off); in read_stage2_cb()
652 if (mboot->load_end_addr == 0 || in read_stage2_cb()
653 mboot->load_end_addr < mboot->load_addr) { in read_stage2_cb()
663 size = mboot->load_end_addr - mboot->load_addr; in read_stage2_cb()
688 bblock->mboot = (multiboot_header_t *)(bblock->buf + bblock->mboot_off); in read_stage2_cb()
693 "(size=%d)\n", bblock->mboot, bblock->mboot_off, bblock->extra, in read_stage2_cb()
847 struct mboot *mbr; in print_stage1_cb()
1303 struct mboot *mbr; in get_start_sector()
1340 mbr = (struct mboot *)pl->pl_stage; in get_start_sector()
[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/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
5096 mboot = kmem_zalloc(buffer_size, KM_SLEEP);
5097 if ((rval = DK_TG_READ(cl, mboot, 0, buffer_size, tg_cookie)) == 0) {
5098 if (ddi_copyout(mboot, (void *)arg,
5099 sizeof (struct mboot), flag) != 0) {
5103 kmem_free(mboot, buffer_size);
5133 struct mboot *mboot = NULL; local
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/disk_label/
H A Ddisk_label.c446 mbr_info(struct mboot *mbr, uint_t bpb) in mbr_info()
510 struct mboot *mbr; in cmd_mbr()
544 struct mboot vbr; in cmd_mbr()
896 (void) mbr_info((struct mboot *)buf, FALSE); in cmd_vtoc()
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dpcfs_bpb.h224 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.h219 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.c240 struct mboot *mbr; in efi_alloc_and_read()
722 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.c5562 struct mboot *mboot; local
5614 mboot = (struct mboot *)((void *)boot_sect);
5617 (struct ipart *)(uintptr_t)mboot->parts + i;

12