Skip to content

Commit 4431c3b

Browse files
committed
Set physical-memory-offset in config for test
1 parent a2d55d4 commit 4431c3b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/test_kernels/map_phys_mem/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ uart_16550 = "0.2.10"
1111

1212
[package.metadata.bootloader]
1313
map-physical-memory = true
14+
physical-memory-offset = "0x0000_4000_0000_0000"

tests/test_kernels/map_phys_mem/src/bin/check_boot_info.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ fn kernel_main(boot_info: &'static mut BootInfo) -> ! {
4444
);
4545

4646
// check defaults for optional features
47-
assert!(matches!(
47+
assert_eq!(
4848
boot_info.physical_memory_offset.into_option(),
49-
Some(_)
50-
));
49+
Some(0x0000_4000_0000_0000),
50+
);
5151
assert_eq!(boot_info.recursive_index.into_option(), None);
5252

5353
// check rsdp_addr

0 commit comments

Comments
 (0)