We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
physical-memory-offset
1 parent a2d55d4 commit 4431c3bCopy full SHA for 4431c3b
tests/test_kernels/map_phys_mem/Cargo.toml
@@ -11,3 +11,4 @@ uart_16550 = "0.2.10"
11
12
[package.metadata.bootloader]
13
map-physical-memory = true
14
+physical-memory-offset = "0x0000_4000_0000_0000"
tests/test_kernels/map_phys_mem/src/bin/check_boot_info.rs
@@ -44,10 +44,10 @@ fn kernel_main(boot_info: &'static mut BootInfo) -> ! {
44
);
45
46
// check defaults for optional features
47
- assert!(matches!(
+ assert_eq!(
48
boot_info.physical_memory_offset.into_option(),
49
- Some(_)
50
- ));
+ Some(0x0000_4000_0000_0000),
+ );
51
assert_eq!(boot_info.recursive_index.into_option(), None);
52
53
// check rsdp_addr
0 commit comments