mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-12 18:26:50 +00:00
* 完成初始化platform bus * 删除旧的sysfs * 把uart驱动移动到tty/serial文件夹下 * 完成将串口挂载到sysfs * 修复vfs系统调用未能follow symlink的问题 * 修复shell未能正确获取pwd的问题
18 lines
422 B
Rust
18 lines
422 B
Rust
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();
|
|
}
|