Searched refs:BootProtocol (Results 1 – 3 of 3) sorted by relevance
/DragonOS/kernel/src/arch/x86_64/init/ |
H A D | boot.rs | 15 enum BootProtocol { enum 23 impl TryFrom<u64> for BootProtocol { implementation 28 BOOT_ENTRY_TYPE_MULTIBOOT => Ok(BootProtocol::Multiboot), in try_from() 29 BOOT_ENTRY_TYPE_MULTIBOOT2 => Ok(BootProtocol::Multiboot2), in try_from() 30 BOOT_ENTRY_TYPE_LINUX_32 => Ok(BootProtocol::Linux32), in try_from() 31 BOOT_ENTRY_TYPE_LINUX_64 => Ok(BootProtocol::Linux64), in try_from() 32 BOOT_ENTRY_TYPE_LINUX_32_PVH => Ok(BootProtocol::Linux32Pvh), in try_from() 44 let boot_protocol = BootProtocol::try_from(boot_entry_type)?; in early_boot_init() 46 BootProtocol::Multiboot2 => early_multiboot2_init(arg1 as u32, arg2), in early_boot_init() 47 BootProtocol::Linux32 | BootProtocol::Linux64 | BootProtocol::Multiboot => loop { in early_boot_init() [all …]
|
/DragonOS/kernel/src/arch/riscv64/init/ |
H A D | boot.rs | 7 pub(super) enum BootProtocol { enum 11 pub(super) fn early_boot_init(protocol: BootProtocol) -> Result<(), SystemError> { in early_boot_init() 13 BootProtocol::DragonStub => early_dragonstub_init(), in early_boot_init()
|
H A D | mod.rs | 8 init::boot::{early_boot_init, BootProtocol}, 129 early_boot_init(BootProtocol::DragonStub).expect("Failed to init boot protocol!"); in early_setup_arch()
|