Return correct bytes written in proc:X/addrspace.

This commit is contained in:
4lDO2
2022-07-10 15:18:42 +02:00
parent 59d74689dc
commit 549c023398

View File

@@ -820,12 +820,7 @@ impl Scheme for ProcScheme {
// way, we know what hardware threads are using any given page table, which we need
// to know while doing TLB shootdown.
/*if is_active {
with_context_mut(pid, callback)?;
} else {
try_stop_context(pid, callback)?;
}*/
Ok(3 * mem::size_of::<usize>())
Ok((3 + usize::from(src_address.is_some())) * mem::size_of::<usize>())
}
Operation::Regs(kind) => match kind {
RegsKind::Float => {