使得DragonOS kernel 能为riscv64编译通过(尚未能启动) (#457)

* 使得DragonOS kernel 能为riscv64编译通过(尚未能启动)

* 修正了系统调用号声明不正确的问题,同时添加了编译配置文档
This commit is contained in:
LoGin
2023-11-25 12:07:39 +08:00
committed by GitHub
parent a1fd1cf1cb
commit 4fda81ce81
112 changed files with 2587 additions and 615 deletions

View File

@ -0,0 +1,10 @@
/// 获取当前cpu的id
#[inline]
pub fn current_cpu_id() -> u32 {
unimplemented!("RiscV64 current_cpu_id")
}
/// 重置cpu
pub unsafe fn cpu_reset() -> ! {
unimplemented!("RiscV64 cpu_reset")
}