mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-22 02:53:23 +00:00
实现unified-init库,支持收集初始化函数到一个数组,并统一初始化 (#474)
* 添加“统一初始化”的过程宏,并把SystemError独立成crate * 使用unified-init来初始化fbmem * 更新workflow,增加内核自动化静态测试
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
use crate::libs::spinlock::{SpinLock, SpinLockGuard};
|
||||
use crate::mm::kernel_mapper::KernelMapper;
|
||||
use crate::process::ProcessManager;
|
||||
use crate::syscall::SystemError;
|
||||
use crate::{
|
||||
include::bindings::bindings::{PAGE_1G_SHIFT, PAGE_4K_SHIFT, PAGE_4K_SIZE},
|
||||
kdebug,
|
||||
@ -12,6 +11,7 @@ use alloc::{collections::LinkedList, vec::Vec};
|
||||
use core::mem;
|
||||
use core::mem::MaybeUninit;
|
||||
use core::sync::atomic::{compiler_fence, AtomicBool, Ordering};
|
||||
use system_error::SystemError;
|
||||
|
||||
use super::page::PageFlags;
|
||||
use super::{PhysAddr, VirtAddr};
|
||||
|
Reference in New Issue
Block a user