/illumos-gate/usr/src/cmd/boot/common/ |
H A D | mboot_extra.c | 43 /* mboot checksum routine. */ 62 multiboot_header_t *mboot; local 79 mboot = (multiboot_header_t *)iter; 80 if (mboot->magic != MB_HEADER_MAGIC) 84 cksum = -(mboot->flags + mboot->magic); 85 if (mboot->checksum != cksum) { 87 "mismatches (is %x, should be %x)\n", mboot, 88 mboot->checksum, cksum); 91 if (!(mboot [all...] |
/illumos-gate/usr/src/tools/btxld/ |
H A D | version.c | 54 multiboot_header_t *mboot; local 101 mboot = (multiboot_header_t *)(buf + mboot_off); 102 mboot->load_addr = 0; 103 mboot->load_end_addr = sb.st_size;
|
/illumos-gate/usr/src/cmd/boot/mbr/ |
H A D | mbr.c | 43 fprintf(stderr, "Usage: %s [ -d | -n | -o | -r ] <device> [<mboot>]\n", 48 "(/usr/lib/fs/ufs/mboot)\n"); 58 struct mboot *mboot; local 59 char *mboot_file = "/usr/lib/fs/ufs/mboot"; 116 mboot = (struct mboot *)boot_sect; 118 struct ipart *part = (struct ipart *)mboot->parts + i; 146 /* write new mboot */ 166 printf("Replaced mboot progra [all...] |
/illumos-gate/usr/src/cmd/boot/installboot/sparc/ |
H A D | installboot.h | 52 multiboot_header_t *mboot; member in struct:_ib_bootblock
|
H A D | installboot.c | 161 bblock->mboot = (multiboot_header_t *)(bblock->file + 163 bblock->extra = (char *)bblock->mboot + sizeof (multiboot_header_t); 164 BOOT_DEBUG("mboot at %p, extra at %p, buf=%p (size=%d)\n", 165 bblock->mboot, bblock->extra, bblock->buf, bblock->buf_size); 186 multiboot_header_t *mboot; local 209 mboot = (multiboot_header_t *)(mboot_scan + mboot_off); 216 size = mboot->load_end_addr - mboot->load_addr; 253 bblock->mboot = (multiboot_header_t *)(bblock->buf + bblock->mboot_off 255 bblock->extra = (char *)bblock->mboot 340 multiboot_header_t *mboot; local [all...] |
/illumos-gate/usr/src/cmd/boot/installgrub/ |
H A D | installgrub.c | 107 static int find_x86_bootpar(struct mboot *, int *, uint32_t *); 616 /* If we get down here we do have a mboot structure. */ 617 assert(src_stage2->mboot); 620 dest_stage2->mboot = (multiboot_header_t *)(dest_stage2->buf + 730 struct mboot *mboot; local 751 mboot = (struct mboot *)device->boot_sector; 754 if (find_x86_bootpar(mboot, &pno, &secnum) != BC_SUCCESS) { 780 part = (struct ipart *)mboot 942 multiboot_header_t *mboot; local 1230 multiboot_header_t *mboot; local 1458 find_x86_bootpar(struct mboot *mboot, int *part_num, uint32_t *start_sect) argument 1486 struct mboot *mboot; local [all...] |
H A D | installgrub.h | 54 multiboot_header_t *mboot; member in struct:_stage2_data
|
/illumos-gate/usr/src/psm/stand/bootblks/ufs/i386/ |
H A D | Makefile | 49 PROGS = mboot
|
/illumos-gate/usr/src/cmd/hal/utils/ |
H A D | fsutils.c | 118 struct mboot *mboot = (struct mboot *)&buf[0]; local 133 if (ltohs(mboot->signature) != MBB_MAGIC) { 136 bcopy(mboot->parts, ipart, FD_NUMPART * sizeof (struct ipart));
|
/illumos-gate/usr/src/cmd/boot/installboot/i386/ |
H A D | installboot.c | 211 bblock->mboot = (multiboot_header_t *)(bblock->file + mboot_off); 215 bblock->mboot->load_end_addr - bblock->mboot->load_addr; 221 BOOT_DEBUG("mboot at %p offset %d, extra at %p size %d, buf=%p " 222 "(size=%d)\n", bblock->mboot, bblock->mboot_off, bblock->extra, 245 multiboot_header_t *mboot; local 273 mboot = (multiboot_header_t *)(mboot_scan + mboot_off); 276 * make sure mboot has sane values 278 if (mboot->load_end_addr == 0 || 279 mboot 614 struct mboot *mboot; local [all...] |
H A D | installboot.h | 81 multiboot_header_t *mboot; member in struct:_ib_bootblock
|
/illumos-gate/usr/src/cmd/format/ |
H A D | menu_fdisk.c | 514 (void) memcpy(&boot_sec, mbr, sizeof (struct mboot)); 680 struct mboot mboot; local 745 (void) memcpy(&mboot, mbr, sizeof (struct mboot)); 756 bootptr = &mboot.parts[ipc]; 836 struct mboot mboot; local 870 (void) memcpy(&mboot, mbr, sizeof (struct mboot)); [all...] |
H A D | global.h | 135 struct mboot boot_sec; /* fdisk partition info */
|
/illumos-gate/usr/src/uts/common/sys/dktp/ |
H A D | fdisk.h | 62 * The actual size of mboot code is 425 bytes while that of GRUB stage1 is 67 #define MBB_MAGIC 0xAA55 /* magic number for mboot.signature */ 146 struct mboot { /* master boot block */ struct
|
/illumos-gate/usr/src/cmd/fstyp/ |
H A D | fstyp.c | 312 struct mboot *mboot = (struct mboot *)&buf[0]; local 327 if (ltohs(mboot->signature) != MBB_MAGIC) { 330 bcopy(mboot->parts, ipart, FD_NUMPART * sizeof (struct ipart));
|
/illumos-gate/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; 458 struct mboot mb;
|
/illumos-gate/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; 618 struct mboot mb;
|
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmf_slice.c | 1119 struct mboot *boot_sec; 1164 ret = read(fd, buf, sizeof (struct mboot)); 1169 if (ret != sizeof (struct mboot)) { 1183 boot_sec = (struct mboot *)buf; 1330 struct mboot boot_code; /* Buffer for master boot record */ 1354 tmp_fd = open("/usr/lib/fs/ufs/mboot", O_RDONLY); 1359 if (read(tmp_fd, &boot_code, sizeof (struct mboot)) 1360 != sizeof (struct mboot)) {
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | cmlb.c | 2390 struct mboot *mbp; 2433 mbp = (struct mboot *)bufp; 2776 struct mboot *mbp = (struct mboot *)buf; 5053 * requests to get the current device mboot (DKIOCGMBOOT) 5056 * arg pointer to user provided mboot structure specifying 5057 * the current mboot. 5073 struct mboot *mboot; local 5087 * Read the mboot bloc 5131 struct mboot *mboot = NULL; local [all...] |
/illumos-gate/usr/src/lib/libgrubmgmt/common/ |
H A D | libgrub_fs.c | 96 struct mboot *mb; 140 mb = (struct mboot *)(uintptr_t)boot_sect;
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | partition.c | 553 struct mboot bootblk;
|
/illumos-gate/usr/src/cmd/fdisk/ |
H A D | fdisk.c | 121 * mboot and ipart structures. 302 static struct mboot BootCod; /* buffer for master boot record */ 309 static struct mboot *Bootblk; /* pointer to cut/paste sector zero */ 1166 * as the prototype mboot if the device's mboot looks invalid. 1168 Bootblk = (struct mboot *)Bootsect; 1554 * The mboot file must be delivered on all platforms 1558 io_mboot = "/usr/lib/fs/ufs/mboot"; 1572 if (read(mDev, &BootCod, sizeof (struct mboot)) != sizeof 1573 (struct mboot)) { [all...] |
/illumos-gate/usr/src/lib/libefi/common/ |
H A D | rdwr_efi.c | 576 struct mboot mb;
|