Home | History | Annotate | Download | only in gpttool

Lines Matching full:mbr

78 	u8 mbr[512];
94 void init_mbr(u8 *mbr, u32 blocks)
96 mbr[0x1be] = 0x00; // nonbootable
97 mbr[0x1bf] = 0xFF; // bogus CHS
98 mbr[0x1c0] = 0xFF;
99 mbr[0x1c1] = 0xFF;
101 mbr[0x1c2] = 0xEE; // GPT partition
102 mbr[0x1c3] = 0xFF; // bogus CHS
103 mbr[0x1c4] = 0xFF;
104 mbr[0x1c5] = 0xFF;
106 mbr[0x1c6] = 0x01; // start
107 mbr[0x1c7] = 0x00;
108 mbr[0x1c8] = 0x00;
109 mbr[0x1c9] = 0x00;
111 memcpy(mbr + 0x1ca, &blocks, sizeof(u32));
113 mbr[0x1fe] = 0x55;
114 mbr[0x1ff] = 0xaa;
303 init_mbr(ptbl.mbr, sz - 1);