Browse Source

multiboot2-header: Don't trip up on ModuleAlign

Niklas Sombert 2 years ago
parent
commit
80c2137477
1 changed files with 4 additions and 0 deletions
  1. 4 0
      multiboot2-header/src/header.rs

+ 4 - 0
multiboot2-header/src/header.rs

@@ -397,6 +397,10 @@ impl Debug for Multiboot2HeaderTagIter {
                 let entry = t as *const EntryEfi64HeaderTag;
                 let entry = t as *const EntryEfi64HeaderTag;
                 let entry = &*(entry);
                 let entry = &*(entry);
                 debug.entry(entry);
                 debug.entry(entry);
+            } else if typ == HeaderTagType::ModuleAlign {
+                let entry = t as *const ModuleAlignHeaderTag;
+                let entry = &*(entry);
+                debug.entry(entry);
             } else if typ == HeaderTagType::Relocatable {
             } else if typ == HeaderTagType::Relocatable {
                 let entry = t as *const RelocatableHeaderTag;
                 let entry = t as *const RelocatableHeaderTag;
                 let entry = &*(entry);
                 let entry = &*(entry);