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.
1 parent e379504 commit 51a3223Copy full SHA for 51a3223
build.rs
@@ -60,13 +60,17 @@ fn parse_to_config(cfg: &mut BootloaderConfig, table: &toml::value::Table) {
60
}
61
("physical-memory-offset", Value::String(s)) => {
62
#[cfg(feature = "map_physical_memory")]
63
- cfg.physical_memory_offset = Some(parse_aligned_addr(key.as_str(), &s));
+ {
64
+ cfg.physical_memory_offset = Some(parse_aligned_addr(key.as_str(), &s));
65
+ }
66
67
#[cfg(not(feature = "map_physical_memory"))]
- panic!(
- "`physical-memory-offset` is only supported when the `map_physical_memory` \
68
- feature of the crate is enabled"
69
- );
+ panic!(
70
+ "`physical-memory-offset` is only supported when the `map_physical_memory` \
71
+ feature of the crate is enabled"
72
+ );
73
74
75
("kernel-stack-size", Value::Integer(i)) => {
76
if i <= 0 {
0 commit comments