Replace syscall::Scheme with KernelScheme.

This commit is contained in:
4lDO2
2023-11-04 18:04:31 +01:00
parent 192d663d84
commit 036a4bdee4
19 changed files with 332 additions and 349 deletions
+4 -1
View File
@@ -20,7 +20,7 @@ use crate::context::memory::AddrSpace;
use crate::ipi::{ipi, IpiKind, IpiTarget};
use crate::paging::{RmmA, RmmArch};
use crate::memory::{RaiiFrame, Frame};
use crate::scheme::{SchemeNamespace, FileHandle};
use crate::scheme::{SchemeNamespace, FileHandle, CallerCtx};
use crate::sync::WaitMap;
use crate::syscall::data::SigAction;
@@ -472,6 +472,9 @@ impl Context {
0
); 128]))
}
pub fn caller_ctx(&self) -> CallerCtx {
CallerCtx { pid: self.id.into(), uid: self.euid, gid: self.egid }
}
}
/// Wrapper struct for borrowing the syscall head or tail buf.