/titanic_50/usr/src/cmd/boot/common/ |
H A D | mboot_extra.c | 62 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()
|
/titanic_50/usr/src/cmd/boot/installboot/ |
H A D | installboot.c | 161 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 D | installboot.h | 52 multiboot_header_t *mboot; member
|
/titanic_50/usr/src/cmd/boot/installgrub/ |
H A D | installgrub.c | 108 static int find_x86_bootpar(struct mboot *, int *, uint32_t *); 619 assert(src_stage2->mboot); in propagate_bootblock() 622 dest_stage2->mboot = (multiboot_header_t *)(dest_stage2->buf + in propagate_bootblock() 732 struct mboot *mboot; in get_start_sector() local 753 mboot = (struct mboot *)device->boot_sector; in get_start_sector() 756 if (find_x86_bootpar(mboot, &pno, &secnum) != BC_SUCCESS) { in get_start_sector() 782 part = (struct ipart *)mboot->parts + i; in get_start_sector() 941 multiboot_header_t *mboot; in prepare_fake_multiboot() local 944 assert(stage2->mboot != NULL); in prepare_fake_multiboot() 947 mboot = stage2->mboot; in prepare_fake_multiboot() [all …]
|
H A D | installgrub.h | 54 multiboot_header_t *mboot; member
|
/titanic_50/usr/src/cmd/boot/mbr/ |
H A D | mbr.c | 58 struct mboot *mboot; in main() local 116 mboot = (struct mboot *)boot_sect; in main() 118 struct ipart *part = (struct ipart *)mboot->parts + i; in main()
|
/titanic_50/usr/src/cmd/hal/utils/ |
H A D | fsutils.c | 118 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()
|
/titanic_50/usr/src/cmd/format/ |
H A D | menu_fdisk.c | 513 (void) memcpy(&boot_sec, mbr, sizeof (struct mboot)); 679 struct mboot mboot; local 734 (void) memcpy(&mboot, mbr, sizeof (struct mboot)); 745 bootptr = &mboot.parts[ipc]; 825 struct mboot mboot; local 859 (void) memcpy(&mboot, mbr, sizeof (struct mboot)); 870 bootptr = &mboot.parts[ipc];
|
H A D | global.h | 135 struct mboot boot_sec; /* fdisk partition info */
|
/titanic_50/usr/src/cmd/fstyp/ |
H A D | fstyp.c | 312 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()
|
/titanic_50/usr/src/psm/stand/bootblks/ufs/i386/ |
H A D | Makefile | 49 PROGS = mboot
|
/titanic_50/usr/src/uts/common/sys/dktp/ |
H A D | fdisk.h | 146 struct mboot { /* master boot block */ struct
|
/titanic_50/usr/src/cmd/rmformat/ |
H A D | rmf_slice.c | 1119 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()
|
/titanic_50/usr/src/uts/common/io/ |
H A D | cmlb.c | 2357 struct mboot *mbp; 2400 mbp = (struct mboot *)bufp; 2743 struct mboot *mbp = (struct mboot *)buf; 5026 struct mboot *mboot; local 5047 mboot = kmem_zalloc(buffer_size, KM_SLEEP); 5048 if ((rval = DK_TG_READ(cl, mboot, 0, buffer_size, tg_cookie)) == 0) { 5049 if (ddi_copyout(mboot, (void *)arg, 5050 sizeof (struct mboot), flag) != 0) { 5054 kmem_free(mboot, buffer_size); 5084 struct mboot *mboot = NULL; local [all …]
|
/titanic_50/usr/src/cmd/fs.d/pcfs/fsck/ |
H A D | pcfs_bpb.h | 223 struct mboot mb;
|
H A D | pcfs_common.c | 457 struct mboot extmboot; in findPartitionOffset() 458 struct mboot mb; in findPartitionOffset()
|
/titanic_50/usr/src/cmd/fs.d/pcfs/mkfs/ |
H A D | mkfs_pcfs.h | 221 struct mboot mb;
|
H A D | mkfs.c | 617 struct mboot extmboot; in seek_partn() 618 struct mboot mb; in seek_partn()
|
/titanic_50/usr/src/lib/libgrubmgmt/common/ |
H A D | libgrub_fs.c | 96 struct mboot *mb; in get_sol_prtnum() 140 mb = (struct mboot *)(uintptr_t)boot_sect; in get_sol_prtnum()
|
/titanic_50/usr/src/pkg/manifests/ |
H A D | system-boot-real-mode.mf | 48 $(i386_ONLY)file path=usr/lib/fs/ufs/mboot mode=0444
|
/titanic_50/usr/src/lib/libdiskmgt/common/ |
H A D | partition.c | 553 struct mboot bootblk; in get_parts()
|
/titanic_50/usr/src/cmd/fdisk/ |
H A D | fdisk.c | 302 static struct mboot BootCod; /* buffer for master boot record */ 309 static struct mboot *Bootblk; /* pointer to cut/paste sector zero */ 1168 Bootblk = (struct mboot *)Bootsect; in main() 1572 if (read(mDev, &BootCod, sizeof (struct mboot)) != sizeof in mboot_read() 1573 (struct mboot)) { in mboot_read()
|
/titanic_50/usr/src/lib/libefi/common/ |
H A D | rdwr_efi.c | 563 struct mboot mb; in write_pmbr()
|
/titanic_50/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 5189 struct mboot *mboot; local 5241 mboot = (struct mboot *)((void *)boot_sect); 5244 (struct ipart *)(uintptr_t)mboot->parts + i;
|
/titanic_50/usr/src/uts/common/fs/pcfs/ |
H A D | pc_vfsops.c | 1511 bcopy(&(((struct mboot *)(mbr))->parts), (ptblp), \
|