Add ADSP to the list of known BPDT partitions

This commit is contained in:
Nikolaj Schlej 2025-05-07 08:36:51 +07:00
parent c0368902c4
commit fa7360d9c2
3 changed files with 3 additions and 1 deletions

View file

@ -372,6 +372,7 @@ UString bpdtEntryTypeToUString(const UINT16 type)
case BPDT_ENTRY_TYPE_GBST: return UString("GBST");
case BPDT_ENTRY_TYPE_TCCP: return UString("TCC");
case BPDT_ENTRY_TYPE_PSEP: return UString("PSE");
case BPDT_ENTRY_TYPE_ADSP: return UString("ADSP");
}
return usprintf("Unknown %04Xh", type);
}

View file

@ -638,6 +638,7 @@ typedef struct BPDT_ENTRY_ {
#define BPDT_ENTRY_TYPE_GBST 43
#define BPDT_ENTRY_TYPE_TCCP 44
#define BPDT_ENTRY_TYPE_PSEP 45
#define BPDT_ENTRY_TYPE_ADSP 50
// CPD
#define CPD_SIGNATURE 0x44504324 //$CPD

View file

@ -4840,7 +4840,7 @@ make_partition_table_consistent:
}
// Check for entry type to be known
if (partitions[i].ptEntry.Type > BPDT_ENTRY_TYPE_PSEP) {
if (partitions[i].ptEntry.Type > BPDT_ENTRY_TYPE_PSEP && partitions[i].ptEntry.Type != BPDT_ENTRY_TYPE_ADSP) {
msg(usprintf("%s: BPDT entry of unknown type found", __FUNCTION__), partitionIndex);
}
}