version 1.3, 2011/08/17 00:45:55 |
version 1.4, 2011/08/17 12:27:50 |
Line 212 biosboot(int fd) |
|
Line 212 biosboot(int fd) |
|
|
|
hdr = gpt->map_data; |
hdr = gpt->map_data; |
|
|
for (int j = 0; j < le32toh(hdr->hdr_entries); j++) { |
for (uint32_t j = 0; j < le32toh(hdr->hdr_entries); j++) { |
ent = (void*)((char*)tbl->map_data + j * le32toh(hdr->hdr_entsz)); |
ent = (void*)((char*)tbl->map_data + j * le32toh(hdr->hdr_entsz)); |
ent->ent_attr &= ~GPT_ENT_ATTR_LEGACY_BIOS_BOOTABLE; |
ent->ent_attr &= ~GPT_ENT_ATTR_LEGACY_BIOS_BOOTABLE; |
} |
} |
Line 231 biosboot(int fd) |
|
Line 231 biosboot(int fd) |
|
|
|
hdr = tpg->map_data; |
hdr = tpg->map_data; |
|
|
for (int j = 0; j < le32toh(hdr->hdr_entries); j++) { |
for (uint32_t j = 0; j < le32toh(hdr->hdr_entries); j++) { |
ent = (void*)((char*)lbt->map_data + j * le32toh(hdr->hdr_entsz)); |
ent = (void*)((char*)lbt->map_data + j * le32toh(hdr->hdr_entsz)); |
ent->ent_attr &= ~GPT_ENT_ATTR_LEGACY_BIOS_BOOTABLE; |
ent->ent_attr &= ~GPT_ENT_ATTR_LEGACY_BIOS_BOOTABLE; |
} |
} |