mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-19 04:56:30 +00:00
完成与Linux兼容的Ntty (#517)
* 已经完成的功能: - 写:printf能够正常在tty输出 - 读:与键盘驱动接上 - 信号: 能够正常通过ctrl向前台进程发送信号 * 支持目前的shell,改动printk使其与新版tty兼容。 * 删除原有tty文件夹,并更改新tty文件名 * 添加clear清屏程序 * 实现tty部分ioctl,更改部分问题
This commit is contained in:
@ -2,6 +2,7 @@ use core::{intrinsics::unlikely, marker::PhantomData};
|
||||
|
||||
use crate::traits::BitOps;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub(crate) struct BitMapCore<T: BitOps> {
|
||||
phantom: PhantomData<T>,
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ use crate::{bitmap_core::BitMapCore, traits::BitMapOps};
|
||||
/// 静态位图
|
||||
///
|
||||
/// 该位图的大小在编译时确定,不可变
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct StaticBitmap<const N: usize>
|
||||
where
|
||||
[(); (N + usize::BITS as usize - 1) / (usize::BITS as usize)]:,
|
||||
|
Reference in New Issue
Block a user