添加thread和futex机制 (#411)

* 初步实现clone系统调用

* 实现了线程,初步实现futex机制,添加了几个小的系统调用

* 更改pcb引用计数问题

* 解决死锁bug

---------

Co-authored-by: LoGin <longjin@DragonOS.org>
This commit is contained in:
GnoCiYeH
2023-11-01 20:55:57 +08:00
committed by GitHub
parent 665f4a7707
commit 971462be94
25 changed files with 1643 additions and 149 deletions

View File

@ -3,16 +3,12 @@
use crate::{
driver::{
base::{
device::{
bus::Bus,
driver::{Driver, DriverError},
Device, DevicePrivateData, IdTable,
},
device::{bus::Bus, driver::Driver, Device, IdTable},
kobject::{KObjType, KObject, KObjectState},
},
net::NetDriver,
},
kdebug, kinfo,
kinfo,
libs::spinlock::SpinLock,
net::{generate_iface_id, NET_DRIVERS},
syscall::SystemError,
@ -84,7 +80,7 @@ impl phy::RxToken for E1000ERxToken {
}
impl phy::TxToken for E1000ETxToken {
fn consume<R, F>(self, len: usize, f: F) -> R
fn consume<R, F>(self, _len: usize, f: F) -> R
where
F: FnOnce(&mut [u8]) -> R,
{