mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 12:16:31 +00:00
添加帧缓冲区抽象并实现vesafb的驱动 (#483)
- 添加bootparams对象 - 修正由于bus的driver、device强弱引用关系 不正确从而导致对象被释放的bug - 添加vesafb的驱动 - 实现framebuffer抽象层 - 为通用帧缓冲区抽象实现sysfs的属性 - 修改设备号DeviceNumber的定义 - 仿照linux,添加initcall,并在第一个内核线程中,调用他们。
This commit is contained in:
@ -2,3 +2,4 @@ pub mod apic;
|
||||
mod c_adapter;
|
||||
pub mod hpet;
|
||||
pub mod tsc;
|
||||
pub mod video;
|
||||
|
9
kernel/src/arch/x86_64/driver/video/mod.rs
Normal file
9
kernel/src/arch/x86_64/driver/video/mod.rs
Normal file
@ -0,0 +1,9 @@
|
||||
use system_error::SystemError;
|
||||
|
||||
use crate::driver::video::fbdev::vesafb::vesafb_early_init;
|
||||
|
||||
/// 在内存管理初始化之前,初始化视频驱动(架构相关)
|
||||
pub fn arch_video_early_init() -> Result<(), SystemError> {
|
||||
vesafb_early_init()?;
|
||||
return Ok(());
|
||||
}
|
Reference in New Issue
Block a user