xref: /DragonOS/kernel/src/init/mod.rs (revision 91e9d4ab55ef960f57a1b6287bc523ca4341f67a)
1 use crate::{
2     driver::{tty::init::tty_early_init, video::VideoRefreshManager},
3     libs::lib_ui::screen_manager::scm_init,
4 };
5 
6 pub mod c_adapter;
7 
8 fn init_intertrait() {
9     intertrait::init_caster_map();
10 }
11 
12 /// 在内存管理初始化之前,执行的初始化
13 pub fn init_before_mem_init() {
14     tty_early_init().expect("tty early init failed");
15     let video_ok = unsafe { VideoRefreshManager::video_init().is_ok() };
16     scm_init(video_ok);
17 }
18