Implement bidirectional SYS_CALL support

This commit is contained in:
Jacob Lorentzon
2025-03-03 23:21:56 +00:00
committed by Jeremy Soller
parent 8f24d894eb
commit 4607576006
7 changed files with 118 additions and 49 deletions
+7
View File
@@ -145,6 +145,13 @@ pub fn format_call(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize) -
Ok(times)
}),
),
SYS_CALL => format!(
"call({b}, {c:x}+{d}, {:?}, {:0x?}",
CallFlags::from_bits_retain(e & !0xff),
// TODO: u64
UserSlice::ro(f, (e & 0xff) * 8)
.and_then(|buf| buf.usizes().collect::<Result<Vec<usize>>>()),
),
SYS_CLOCK_GETTIME => format!("clock_gettime({}, {:?})", b, unsafe {
read_struct::<TimeSpec>(c)