File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,17 @@ fn parse_to_config(cfg: &mut BootloaderConfig, table: &toml::value::Table) {
60
60
}
61
61
( "physical-memory-offset" , Value :: String ( s) ) => {
62
62
#[ cfg( feature = "map_physical_memory" ) ]
63
- cfg. physical_memory_offset = Some ( parse_aligned_addr ( key. as_str ( ) , & s) ) ;
63
+ {
64
+ cfg. physical_memory_offset = Some ( parse_aligned_addr ( key. as_str ( ) , & s) ) ;
65
+ }
64
66
65
67
#[ cfg( not( feature = "map_physical_memory" ) ) ]
66
- panic ! (
67
- "`physical-memory-offset` is only supported when the `map_physical_memory` \
68
- feature of the crate is enabled"
69
- ) ;
68
+ {
69
+ panic ! (
70
+ "`physical-memory-offset` is only supported when the `map_physical_memory` \
71
+ feature of the crate is enabled"
72
+ ) ;
73
+ }
70
74
}
71
75
( "kernel-stack-size" , Value :: Integer ( i) ) => {
72
76
if i <= 0 {
You can’t perform that action at this time.
0 commit comments