use crate::{ driver::{tty::init::tty_early_init, video::VideoRefreshManager}, libs::lib_ui::screen_manager::scm_init, }; pub mod c_adapter; fn init_intertrait() { intertrait::init_caster_map(); } /// 在内存管理初始化之前,执行的初始化 fn init_before_mem_init() { tty_early_init().expect("tty early init failed"); unsafe { VideoRefreshManager::video_init().ok() }; scm_init(); }