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 fn init_before_mem_init() { 14 tty_early_init().expect("tty early init failed"); 15 unsafe { VideoRefreshManager::video_init().ok() }; 16 scm_init(); 17 } 18