Remove commented-out syscalls and SigState.rtqs

This commit is contained in:
4lDO2
2025-03-31 10:32:56 +02:00
parent cb1a838f05
commit e002d0be33
3 changed files with 0 additions and 14 deletions
-2
View File
@@ -144,8 +144,6 @@ pub struct SignalState {
/// Offset within the control pages of respective word-aligned structs.
pub threadctl_off: u16,
pub procctl_off: u16,
pub rtqs: Vec<VecDeque<RtSigInfo>>,
}
impl Context {
-1
View File
@@ -890,7 +890,6 @@ impl ContextHandle {
proc_control: addrsp.borrow_frame_enforce_rw_allocated(
Page::containing_address(VirtualAddress::new(data.proc_control_addr)),
)?,
rtqs: Vec::new(),
})
} else {
None
-11
View File
@@ -190,23 +190,12 @@ pub fn syscall(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize) -> us
}
SYS_FUTEX => futex(b, c, d, e, f),
/*SYS_SIGENQUEUE => kill(
ProcessId::from(b),
c,
KillMode::Queued(unsafe {
UserSlice::ro(d, size_of::<RtSigInfo>())?.read_exact()?
}),
),
SYS_SIGDEQUEUE => {
sigdequeue(UserSlice::wo(b, size_of::<RtSigInfo>())?, c as u32).map(|()| 0)
}*/
SYS_MPROTECT => mprotect(b, c, MapFlags::from_bits_truncate(d)).map(|()| 0),
SYS_MKNS => mkns(UserSlice::ro(
b,
c.checked_mul(core::mem::size_of::<[usize; 2]>())
.ok_or(Error::new(EOVERFLOW))?,
)?),
//SYS_VIRTTOPHYS => virttophys(b),
SYS_MREMAP => mremap(b, c, d, e, f),
_ => return Err(Error::new(ENOSYS)),