Skip to content

Commit 67d5b47

Browse files
committed
integration-test: misc
1 parent f9ab622 commit 67d5b47

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,9 @@ at your option.
2121
Unless you explicitly state otherwise, any contribution intentionally submitted
2222
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
2323
dual licensed as above, without any additional terms or conditions.
24+
25+
## Developer Guide
26+
27+
This is a pretty normal Cargo workspace with two crates. For the integration
28+
test, please read the
29+
corresponding [instructions](./integration-test/README.md).

integration-test/bins/multiboot2_chainloader/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[package]
22
name = "multiboot2_chainloader"
3-
description = "Integrationtest: Multiboot2 chainloader"
3+
description = """
4+
Integrationtest: Multiboot2 chainloader. The loader itself loads via Multiboot1,
5+
but the payload is loaded via Multiboot2 by the loader.
6+
"""
47
version = "0.1.0"
58
edition = "2024"
69
publish = false

integration-test/bins/multiboot2_chainloader/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ core::arch::global_asm!(include_str!("start.S"), options(att_syntax));
1818
#[unsafe(no_mangle)]
1919
fn rust_entry(multiboot_magic: u32, multiboot_hdr: *const u32) -> ! {
2020
init_environment();
21-
let x = 0.12 + 0.56;
22-
log::debug!("{x}");
2321
log::debug!("multiboot_hdr={multiboot_hdr:x?}, multiboot_magic=0x{multiboot_magic:x?}");
2422
let mbi = multiboot::get_mbi(multiboot_magic, multiboot_hdr as u32).unwrap();
2523
let module_iter = mbi.modules().expect("Should provide modules");

integration-test/bins/multiboot2_payload/src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ fn main(multiboot2_magic: u32, multiboot2_hdr: u32) -> anyhow::Result<()> {
2828
if multiboot2_magic != multiboot2::MAGIC {
2929
Err(anyhow::Error::msg("Invalid bootloader magic"))?
3030
}
31-
log::debug!("multiboot2_hdr={multiboot2_hdr:x?}, multiboot2_magic=0x{multiboot2_magic:x?}");
31+
log::debug!(
32+
"multiboot2_hdr=0x{multiboot2_hdr:08x?}, multiboot2_magic=0x{multiboot2_magic:08x?}"
33+
);
3234

3335
let mbi_ptr = (multiboot2_hdr as *const u8).cast();
3436
let mbi = unsafe { BootInformation::load(mbi_ptr) }.map_err(anyhow::Error::msg)?;

0 commit comments

Comments
 (0)