mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 02:46:47 +00:00
* 添加multiboot header * head.S传参增加bootloader类型 * feat: 添加引导加载协议的抽象,并为multiboot2实现这个抽象. * 把framebuffer的映射地址改为从early ioremap和mmio pool分配 * riscv64能运行
22 lines
429 B
Rust
22 lines
429 B
Rust
use crate::libs::rwlock::RwLock;
|
|
|
|
use self::boot::BootParams;
|
|
pub mod boot;
|
|
#[allow(clippy::module_inception)]
|
|
pub mod init;
|
|
pub mod initcall;
|
|
pub mod initial_kthread;
|
|
|
|
/// 启动参数
|
|
static BOOT_PARAMS: RwLock<BootParams> = RwLock::new(BootParams::new());
|
|
|
|
#[inline(always)]
|
|
pub fn boot_params() -> &'static RwLock<BootParams> {
|
|
&BOOT_PARAMS
|
|
}
|
|
|
|
#[inline(never)]
|
|
fn init_intertrait() {
|
|
intertrait::init_caster_map();
|
|
}
|