Skip to content

Commit

Permalink
xxx
Browse files Browse the repository at this point in the history
  • Loading branch information
phip1611 committed Aug 24, 2024
1 parent 7240a4f commit cfea0d1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
16 changes: 0 additions & 16 deletions integration-test/bins/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions integration-test/bins/multiboot2_chainloader/src/loader.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
use alloc::boxed::Box;
use alloc::vec::Vec;
use elf_rs::{ElfFile, ProgramHeaderEntry, ProgramType};
use log::{debug, info};
use multiboot2::{
BootLoaderNameTag, CommandLineTag, MaybeDynSized, MemoryArea, MemoryAreaType, MemoryMapTag,
ModuleTag, SmbiosTag,
BootLoaderNameTag, CommandLineTag, EFIMemoryAreaType, MaybeDynSized, MemoryArea,
MemoryAreaType, MemoryMapTag, ModuleTag, SmbiosTag,
};

fn get_free_mmap_areas(
Expand Down Expand Up @@ -92,9 +93,9 @@ pub fn load_module(mbi: &multiboot2::BootInformation) -> ! {
MemoryAreaType::Reserved,
)]))
.add_module(ModuleTag::new(
elf_mod.start as u32,
elf_mod.end as u32,
elf_mod.string.unwrap(),
elf_mod.start_address() as u32,
elf_mod.end_address() as u32,
elf_mod.cmdline().unwrap(),
))
// Test that we can add SmbiosTag multiple times.
.add_smbios(SmbiosTag::new(1, 1, &[1, 2, 3]))
Expand Down

0 comments on commit cfea0d1

Please sign in to comment.