mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 01:43:22 +00:00
Adapt Multiboot2 and switch from Limine to Grub2
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
49f2750108
commit
47a51eb423
@ -26,7 +26,7 @@ use crate::{
|
||||
process::status::ProcessStatus,
|
||||
thread::{kernel_thread::KernelThreadExt, Thread},
|
||||
};
|
||||
use jinux_frame::exit_qemu;
|
||||
use jinux_frame::{arch::boot, exit_qemu};
|
||||
use process::Process;
|
||||
|
||||
extern crate alloc;
|
||||
@ -48,11 +48,11 @@ pub mod time;
|
||||
mod util;
|
||||
pub mod vm;
|
||||
|
||||
pub fn init(ramdisk: &[u8]) {
|
||||
pub fn init() {
|
||||
driver::init();
|
||||
net::init();
|
||||
process::fifo_scheduler::init();
|
||||
fs::initramfs::init(ramdisk).unwrap();
|
||||
fs::initramfs::init(boot::get_initramfs()).unwrap();
|
||||
device::init().unwrap();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user