Skip to content

Commit

Permalink
Fix MADT signature
Browse files Browse the repository at this point in the history
  • Loading branch information
mebersol committed Jan 11, 2025
1 parent 74502c1 commit 3f1806f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openhcl/underhill_core/src/loader/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,12 +427,12 @@ pub fn write_uefi_config(
let header =
acpi_spec::Header::ref_from_prefix(table).ok_or(Error::InvalidAcpiTableLength)?;
match &header.signature {
b"HMAT" => cfg.add_raw(config::BlobStructureType::Hmat, table),
b"IORT" => cfg.add_raw(config::BlobStructureType::Iort, table),
b"MADT" => {
b"APIC" => {
cfg.add_raw(config::BlobStructureType::Madt, table);
build_madt = false
}
b"HMAT" => cfg.add_raw(config::BlobStructureType::Hmat, table),
b"IORT" => cfg.add_raw(config::BlobStructureType::Iort, table),
b"MCFG" => cfg.add_raw(config::BlobStructureType::Mcfg, table),
b"SRAT" => {
cfg.add_raw(config::BlobStructureType::Srat, table);
Expand Down

0 comments on commit 3f1806f

Please sign in to comment.