Home | History | Annotate | Download | only in stage2

Lines Matching refs:mbr

1032 /* Embed a Stage 1.5 in the first cylinder after MBR or in the
1066 /* Embed it after the MBR. */
1068 char mbr[SECTOR_SIZE];
1076 /* No floppy has MBR. */
1083 /* Read the MBR of CURRENT_DRIVE. */
1084 if (! rawread (current_drive, PC_MBR_SECTOR, 0, SECTOR_SIZE, mbr))
1088 if (! PC_MBR_CHECK_SIG (mbr))
1096 if (PC_SLICE_TYPE (mbr, i) && PC_SLICE_START (mbr, i) - 1 < size)
1112 /* The space after the MBR is used by EZ-BIOS which we must
1159 "Embed the Stage 1.5 STAGE1_5 in the sectors after MBR if DEVICE"
1932 /* If for a hard disk, copy the possible MBR/extended part table. */
2793 char mbr[512];
2856 /* Read the MBR. */
2857 mbr))
2867 /* Store the partition information in the MBR. */
2871 PC_SLICE_FLAG (mbr, entry) = 0;
2872 PC_SLICE_HEAD (mbr, entry) = start_dh;
2873 PC_SLICE_SEC (mbr, entry) = start_cl;
2874 PC_SLICE_CYL (mbr, entry) = start_ch;
2875 PC_SLICE_TYPE (mbr, entry) = new_type;
2876 PC_SLICE_EHEAD (mbr, entry) = end_dh;
2877 PC_SLICE_ESEC (mbr, entry) = end_cl;
2878 PC_SLICE_ECYL (mbr, entry) = end_ch;
2879 PC_SLICE_START (mbr, entry) = new_start;
2880 PC_SLICE_LENGTH (mbr, entry) = new_len;
2882 /* Make sure that the MBR has a valid signature. */
2883 PC_MBR_SIG (mbr) = PC_MBR_SIGNATURE;
2885 /* Write back the MBR to the disk. */
2887 if (! rawwrite (current_drive, 0, mbr))
2913 char mbr[512];
2949 &ext_offset, mbr))
2956 PC_SLICE_TYPE (mbr, entry) = new_type;
2958 /* Write back the MBR to the disk. */
2960 if (! rawwrite (current_drive, offset, mbr))
3951 /* We install GRUB into the MBR, so try to embed the
3952 Stage 1.5 in the sectors right after the MBR. */