Home | History | Annotate | Download | only in gpttool

Lines Matching refs:mbr

79 	u8 mbr[512];
95 void init_mbr(u8 *mbr, u32 blocks)
97 mbr[0x1be] = 0x00; // nonbootable
98 mbr[0x1bf] = 0xFF; // bogus CHS
99 mbr[0x1c0] = 0xFF;
100 mbr[0x1c1] = 0xFF;
102 mbr[0x1c2] = 0xEE; // GPT partition
103 mbr[0x1c3] = 0xFF; // bogus CHS
104 mbr[0x1c4] = 0xFF;
105 mbr[0x1c5] = 0xFF;
107 mbr[0x1c6] = 0x01; // start
108 mbr[0x1c7] = 0x00;
109 mbr[0x1c8] = 0x00;
110 mbr[0x1c9] = 0x00;
112 memcpy(mbr + 0x1ca, &blocks, sizeof(u32));
114 mbr[0x1fe] = 0x55;
115 mbr[0x1ff] = 0xaa;
306 init_mbr(ptbl.mbr, sz - 1);