Home
last modified time | relevance | path

Searched refs:mbr (Results 1 – 2 of 2) sorted by relevance

/system/core/gpttool/
Dgpttool.c78 u8 mbr[512]; member
94 void init_mbr(u8 *mbr, u32 blocks) in init_mbr() argument
96 mbr[0x1be] = 0x00; // nonbootable in init_mbr()
97 mbr[0x1bf] = 0xFF; // bogus CHS in init_mbr()
98 mbr[0x1c0] = 0xFF; in init_mbr()
99 mbr[0x1c1] = 0xFF; in init_mbr()
101 mbr[0x1c2] = 0xEE; // GPT partition in init_mbr()
102 mbr[0x1c3] = 0xFF; // bogus CHS in init_mbr()
103 mbr[0x1c4] = 0xFF; in init_mbr()
104 mbr[0x1c5] = 0xFF; in init_mbr()
[all …]
/system/core/libdiskconfig/
Dconfig_mbr.c89 struct pc_boot_record *mbr = (void *)PC_MBR_DISK_OFFSET; in mk_pri_pentry() local
91 item->offset = (loff_t)((uintptr_t)((uint8_t *)(&mbr->ptable[pnum]))); in mk_pri_pentry()
222 struct pc_boot_record *mbr = (void *)PC_MBR_DISK_OFFSET; in mk_mbr_sig() local
224 item->offset = (loff_t)((uintptr_t)((uint8_t *)(&mbr->mbr_sig))); in mk_mbr_sig()