在riscv输出hello world (#466)

增加了以下内容:
- SBI驱动
- 把内核的rust工具链升级到2023-08-15版本
- 输出riscv的helloworld
- 设置内核是PIC的
This commit is contained in:
LoGin
2023-12-07 02:13:22 +08:00
committed by GitHub
parent fca83acef4
commit 1a72a751b1
41 changed files with 722 additions and 122 deletions

View File

@ -170,11 +170,14 @@ impl VideoRefreshManager {
return self.device_buffer.read();
}
/**
* @brief 初始化显示驱动
*
* @return int
*/
/// 在riscv64平台下暂时不支持
#[cfg(target_arch = "riscv64")]
pub unsafe fn video_init() -> Result<(), SystemError> {
return Err(SystemError::ENOSYS);
}
/// 此函数用于初始化显示驱动,为后续的图形输出做好准备。
#[cfg(not(target_arch = "riscv64"))]
pub unsafe fn video_init() -> Result<(), SystemError> {
static INIT: AtomicBool = AtomicBool::new(false);