mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-25 18:23:22 +00:00
在riscv输出hello world (#466)
增加了以下内容: - SBI驱动 - 把内核的rust工具链升级到2023-08-15版本 - 输出riscv的helloworld - 设置内核是PIC的
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user