xref: /DragonOS/kernel/src/arch/riscv64/init/boot.rs (revision 28fe4ad2a0b0d8b5abf1f0cb402b1c3204b42242)
1 use system_error::SystemError;
2 
3 use super::dragonstub::early_dragonstub_init;
4 
5 #[derive(Debug)]
6 #[repr(u64)]
7 pub(super) enum BootProtocol {
8     DragonStub = 1,
9 }
10 
11 pub(super) fn early_boot_init(protocol: BootProtocol) -> Result<(), SystemError> {
12     match protocol {
13         BootProtocol::DragonStub => early_dragonstub_init(),
14     }
15 }
16