Skip to content

Commit e213464

Browse files
committed
wip
1 parent fc69584 commit e213464

20 files changed

+244
-66
lines changed

integration-test/bins/multiboot2_payload/Cargo.lock

Lines changed: 175 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration-test/multiboot2/multiboot2_payload/Cargo.toml renamed to integration-test/bins/multiboot2_payload/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ anyhow = { version = "1.0.69", default-features = false }
1414
good_memory_allocator = "0.1.7"
1515
log = { version = "0.4.17", default-features = false }
1616
multiboot2 = { path = "../../../multiboot2", features = ["unstable"] }
17-
# qemu-exit = "3.0.1"
18-
qemu-exit = { path = "/home/pschuster/dev/other/qemu-exit" }
17+
# Wait for release > 3.0.1
18+
qemu-exit = { git = "https://github.com/rust-embedded/qemu-exit.git", rev = "3cee0efb5c1842b5261850c57b3b4d608542ff03" }
19+
x86 = "0.52.0"

integration-test/multiboot2/multiboot2_payload/link.ld renamed to integration-test/bins/multiboot2_payload/link.ld

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,30 @@ PHDRS
1010
}
1111

1212
SECTIONS {
13-
.text 8M : AT(8M) ALIGN(4K)
13+
.text 16M : AT(16M) ALIGN(4K)
1414
{
1515
*(.multiboot2_header)
1616
*(.text .text.*)
1717
} : kernel_rx
1818

1919
.rodata :
2020
{
21-
*(.rodata .rodata.*)
21+
*(.rodata .rodata.*)
2222
} : kernel_ro
2323

2424
.data :
2525
{
26-
*(.data .data.*)
26+
*(.data .data.*)
2727
} : kernel_rw
2828

2929
.bss :
3030
{
31-
*(COMMON)
32-
*(.bss .bss.*)
31+
*(COMMON)
32+
*(.bss .bss.*)
3333
} : kernel_rw
34+
35+
/DISCARD/ :
36+
{
37+
*(.eh_frame .eh_frame.*)
38+
}
3439
}

integration-test/multiboot2/multiboot2_payload/src/integrationtest.rs renamed to integration-test/bins/multiboot2_payload/src/integrationtest.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ fn print_module_info(mbi: &BootInformation) -> anyhow::Result<()> {
107107
};
108108
let grub_cfg = core::str::from_utf8(grub_cfg).map_err(anyhow::Error::msg)?;
109109
println!("=== file begin ===");
110-
println!("{grub_cfg}");
110+
for line in grub_cfg.lines() {
111+
println!(" > {line}");
112+
}
111113
println!("=== file end ===");
112114
println!();
113115
Ok(())

integration-test/multiboot2/multiboot2_payload/src/main.rs renamed to integration-test/bins/multiboot2_payload/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ use core::panic::PanicInfo;
1313
use log::{debug, error, info};
1414
use qemu_exit::QEMUExit;
1515

16-
mod macros;
1716
mod allocator;
1817
mod debugcon;
1918
mod integrationtest;
19+
mod macros;
2020

2121
const QEMU_EXIT_PORT: u16 = 0xf4;
2222
/// Custom error code to report success.

0 commit comments

Comments
 (0)