Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion patina_dxe_core/src/component_dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,18 @@ mod tests {
name: GUID3,
};

let unused_hob = patina::pi::hob::GenericHob {
header: patina::pi::hob::HobHeader {
r#type: patina::pi::hob::UNUSED,
length: core::mem::size_of::<patina::pi::hob::GenericHob>() as u16,
reserved: 0,
},
};

hob_list.push(patina::pi::hob::Hob::GuidHob(&guid_hob1, hob1_bytes));
hob_list.push(patina::pi::hob::Hob::GuidHob(&guid_hob2, hob2_bytes));
hob_list.push(patina::pi::hob::Hob::GuidHob(&guid_hob3, hob3_bytes));
hob_list.push(patina::pi::hob::Hob::Misc(30)); // Non-guid HOB to ensure it's ignored.
hob_list.push(patina::pi::hob::Hob::Misc(&unused_hob)); // Non-guid HOB to ensure it's ignored.

struct TestComponent;

Expand Down
Loading
Loading