summaryrefslogtreecommitdiff
path: root/sys/src/9/port/proc.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2019-12-07 02:19:14 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2019-12-07 02:19:14 +0100
commit13785bbbef60f5c13aa973c1e7d4277aa55f6a2d (patch)
tree0b4f72db3969ca9de5b7804f3491ef7d7ae5d08d /sys/src/9/port/proc.c
parent28836f3ff593f729a9dc92b67a6f99382bc84c28 (diff)
pc: replace duplicated and broken mmu flush code in vunmap()
comparing m with MACHP() is wrong as m is a constant on 386. add procflushothers(), which flushes all processes except up using common procflushmmu() routine.
Diffstat (limited to 'sys/src/9/port/proc.c')
-rw-r--r--sys/src/9/port/proc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/src/9/port/proc.c b/sys/src/9/port/proc.c
index 8ea620a51..59fe9ecd9 100644
--- a/sys/src/9/port/proc.c
+++ b/sys/src/9/port/proc.c
@@ -1412,6 +1412,17 @@ procflushpseg(Physseg *ps)
procflushmmu(matchpseg, ps);
}
+static int
+matchother(Proc *p, void *a)
+{
+ return p != a;
+}
+void
+procflushothers(void)
+{
+ procflushmmu(matchother, up);
+}
+
void
scheddump(void)
{