File tree Expand file tree Collapse file tree 5 files changed +10
-2
lines changed Expand file tree Collapse file tree 5 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " hermit-entry"
3
- version = " 0.9.10 "
3
+ version = " 0.10.0 "
4
4
authors = [" Martin Kröning <mkroening@posteo.net>" ]
5
5
edition = " 2021"
6
6
description = " Hermit's loading and entry API."
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ impl From<RawPlatformInfo> for PlatformInfo {
89
89
boot_params_addr,
90
90
}
91
91
}
92
+ RawPlatformInfo :: Fdt => Self :: Fdt ,
92
93
}
93
94
}
94
95
}
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ impl From<PlatformInfo> for RawPlatformInfo {
66
66
command_line_len : command_line. map ( |s| s. len ( ) as u64 ) . unwrap_or ( 0 ) ,
67
67
boot_params_addr,
68
68
} ,
69
+ PlatformInfo :: Fdt => Self :: Fdt ,
69
70
}
70
71
}
71
72
}
Original file line number Diff line number Diff line change @@ -109,6 +109,11 @@ pub enum PlatformInfo {
109
109
/// Address to Linux boot parameters.
110
110
boot_params_addr : core:: num:: NonZeroU64 ,
111
111
} ,
112
+ /// FDT.
113
+ ///
114
+ /// This is a transitional platform for migrating to FDTs.
115
+ /// The real platform information is stored in [`HardwareInfo::device_tree`].
116
+ Fdt ,
112
117
}
113
118
114
119
/// Thread local storage (TLS) image information.
@@ -192,4 +197,5 @@ enum RawPlatformInfo {
192
197
command_line_len : u64 ,
193
198
boot_params_addr : core:: num:: NonZeroU64 ,
194
199
} ,
200
+ Fdt ,
195
201
}
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ const NT_HERMIT_ENTRY_VERSION: u32 = 0x5a00;
51
51
52
52
/// The current hermit entry version.
53
53
#[ cfg_attr( not( all( feature = "loader" , feature = "kernel" ) ) , allow( dead_code) ) ]
54
- const HERMIT_ENTRY_VERSION : u8 = 3 ;
54
+ const HERMIT_ENTRY_VERSION : u8 = 4 ;
55
55
56
56
/// Offsets and values used to interpret the boot params ("zeropage") setup by firecracker
57
57
/// For the full list of values see
You can’t perform that action at this time.
0 commit comments