初步编写cpu信息获取的代码 (#406)

1. 启动时从acpi获取所有的cpu信息并存到SMP_BOOT_DATA
2. 注册cpu subsystem/bus到sysfs(暂时未添加内容)

todo:
1. build_cpu_map(在X86_64SmpManager中)
2. 实现cpu mask
3. 把cpu设备注册到sysfs
This commit is contained in:
LoGin
2023-10-23 21:40:39 +08:00
committed by GitHub
parent 7eda31b2f0
commit d7f5742a20
13 changed files with 491 additions and 17 deletions

View File

@ -1,5 +1,7 @@
#[macro_use]
pub mod asm;
mod acpi;
mod c_adapter;
pub mod cpu;
pub mod fpu;
pub mod interrupt;
@ -11,6 +13,7 @@ pub mod pci;
pub mod process;
pub mod rand;
pub mod sched;
pub mod setup;
pub mod smp;
pub mod syscall;