mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-21 11:36:35 +00:00
使得DragonOS kernel 能为riscv64编译通过(尚未能启动) (#457)
* 使得DragonOS kernel 能为riscv64编译通过(尚未能启动) * 修正了系统调用号声明不正确的问题,同时添加了编译配置文档
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
use crate::{
|
||||
arch::CurrentIrqArch,
|
||||
arch::{io::PortIOArch, CurrentIrqArch, CurrentPortIOArch},
|
||||
exception::InterruptArch,
|
||||
include::bindings::bindings::{io_in8, io_out8},
|
||||
syscall::SystemError,
|
||||
};
|
||||
|
||||
@ -63,7 +62,7 @@ impl RtcTime {
|
||||
}
|
||||
|
||||
unsafe {
|
||||
io_out8(0x70, 0x00);
|
||||
CurrentPortIOArch::out8(0x70, 0x00);
|
||||
}
|
||||
|
||||
if !is_binary
|
||||
@ -92,8 +91,8 @@ impl RtcTime {
|
||||
#[inline]
|
||||
fn read_cmos(addr: u8) -> u8 {
|
||||
unsafe {
|
||||
io_out8(0x70, 0x80 | addr);
|
||||
return io_in8(0x71);
|
||||
CurrentPortIOArch::out8(0x70, 0x80 | addr);
|
||||
return CurrentPortIOArch::in8(0x71);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user