diff --git a/src/boot_info/kernel.rs b/src/boot_info/kernel.rs index 9f55051..f682a3e 100644 --- a/src/boot_info/kernel.rs +++ b/src/boot_info/kernel.rs @@ -89,6 +89,7 @@ impl From for PlatformInfo { boot_params_addr, } } + RawPlatformInfo::Fdt => Self::Fdt, } } } diff --git a/src/boot_info/loader.rs b/src/boot_info/loader.rs index cca7a13..d683e5c 100644 --- a/src/boot_info/loader.rs +++ b/src/boot_info/loader.rs @@ -66,6 +66,7 @@ impl From for RawPlatformInfo { command_line_len: command_line.map(|s| s.len() as u64).unwrap_or(0), boot_params_addr, }, + PlatformInfo::Fdt => Self::Fdt, } } } diff --git a/src/boot_info/mod.rs b/src/boot_info/mod.rs index 7a56bff..e2004fa 100644 --- a/src/boot_info/mod.rs +++ b/src/boot_info/mod.rs @@ -109,6 +109,11 @@ pub enum PlatformInfo { /// Address to Linux boot parameters. boot_params_addr: core::num::NonZeroU64, }, + /// FDT. + /// + /// This is a transitional platform for migrating to FDTs. + /// The real platform information is stored in [`HardwareInfo::device_tree`]. + Fdt, } /// Thread local storage (TLS) image information. @@ -192,4 +197,5 @@ enum RawPlatformInfo { command_line_len: u64, boot_params_addr: core::num::NonZeroU64, }, + Fdt, }