实现unified-init库,支持收集初始化函数到一个数组,并统一初始化 (#474)

* 添加“统一初始化”的过程宏,并把SystemError独立成crate

* 使用unified-init来初始化fbmem

* 更新workflow,增加内核自动化静态测试
This commit is contained in:
LoGin
2023-12-25 23:12:27 +08:00
committed by GitHub
parent f110d330d5
commit 91e9d4ab55
158 changed files with 1102 additions and 610 deletions

View File

@ -1,19 +1,16 @@
use crate::driver::base::{
device::{
bus::{bus_manager, Bus},
driver::Driver,
Device,
},
subsys::SubSysPrivate,
};
use alloc::{
string::{String, ToString},
sync::Arc,
};
use crate::{
driver::base::{
device::{
bus::{bus_manager, Bus},
driver::Driver,
Device,
},
subsys::SubSysPrivate,
},
syscall::SystemError,
};
use system_error::SystemError;
use super::AcpiManager;

View File

@ -12,8 +12,8 @@ use crate::{
mmio_buddy::{mmio_pool, MMIOSpaceGuard},
MemoryManagementArch, PhysAddr, VirtAddr,
},
syscall::SystemError,
};
use system_error::SystemError;
use super::base::kset::KSet;

View File

@ -1,10 +1,3 @@
use acpi::sdt::SdtHeader;
use alloc::{
string::{String, ToString},
sync::Arc,
vec::Vec,
};
use crate::{
driver::{
acpi::acpi_manager,
@ -15,8 +8,14 @@ use crate::{
vfs::syscall::ModeType,
},
libs::rwlock::RwLock,
syscall::SystemError,
};
use acpi::sdt::SdtHeader;
use alloc::{
string::{String, ToString},
sync::Arc,
vec::Vec,
};
use system_error::SystemError;
use super::{acpi_kset, AcpiManager};