I noticed this code in MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c:
//
// Verify that the Protective MBR is valid
//
for (Index = 0; Index < MAX_MBR_PARTITIONS; Index++) {
if (ProtectiveMbr->Partition[Index].BootIndicator == 0x00 &&
ProtectiveMbr->Partition[Index].OSIndicator == PMBR_GPT_PARTITION &&
UNPACK_UINT32 (ProtectiveMbr->Partition[Index].StartingLBA) == 1
) {
break;
}
I was wondering why the code is checking for BootIndicator being zero when the
UEFI spec states in two places that UEFI should ignore that field? Is this
some kind of security thing? I couldn't find anything in the git history.
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel