diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-12-07 02:19:14 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-12-07 02:19:14 +0100 |
commit | 13785bbbef60f5c13aa973c1e7d4277aa55f6a2d (patch) | |
tree | 0b4f72db3969ca9de5b7804f3491ef7d7ae5d08d /sys/src/9/port/proc.c | |
parent | 28836f3ff593f729a9dc92b67a6f99382bc84c28 (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.c | 11 |
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) { |