WIP: Attempt implementing fexec in userspace.

This commit is contained in:
4lDO2
2022-01-02 11:58:46 +01:00
parent 67edfbfc42
commit 846318e716
12 changed files with 78 additions and 672 deletions
+3 -3
View File
@@ -192,8 +192,8 @@ pub fn format_call(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize) -
b
),
//TODO: Cleanup, do not allocate
SYS_FEXEC => format!(
"fexec({}, {:?}, {:?})",
/*SYS_EXEC => format!(
"exec({}, {:?}, {:?})",
b,
validate_slice(
c as *const [usize; 2],
@@ -213,7 +213,7 @@ pub fn format_call(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize) -
.and_then(|s| ::core::str::from_utf8(s).ok())
).collect::<Vec<Option<&str>>>()
})
),
),*/
SYS_FUTEX => format!(
"futex({:#X} [{:?}], {}, {}, {}, {})",
b,