From 549c0233989e2699a4b4efff49eb8f10730ce2ae Mon Sep 17 00:00:00 2001 From: 4lDO2 <4lDO2@protonmail.com> Date: Sun, 10 Jul 2022 15:18:42 +0200 Subject: [PATCH] Return correct bytes written in proc:X/addrspace. --- src/scheme/proc.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/scheme/proc.rs b/src/scheme/proc.rs index 28225a6..a4a43ff 100644 --- a/src/scheme/proc.rs +++ b/src/scheme/proc.rs @@ -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::()) + Ok((3 + usize::from(src_address.is_some())) * mem::size_of::()) } Operation::Regs(kind) => match kind { RegsKind::Float => {