diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-04-04 16:52:08 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-04-04 16:52:08 +0200 |
commit | 339112abc350b0b50ed49a1c92911506025117c7 (patch) | |
tree | 33fd96ffa36c6cb98730b641f2e59b93fcae73ab /sys/src/9/mtx | |
parent | 30cbaa5c48160411631f2cd6768025a377cd0bec (diff) |
mtx, ppc: use proctab() to index into process table
Diffstat (limited to 'sys/src/9/mtx')
-rw-r--r-- | sys/src/9/mtx/mmu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/9/mtx/mmu.c b/sys/src/9/mtx/mmu.c index c4030ce8f..7afd68a3f 100644 --- a/sys/src/9/mtx/mmu.c +++ b/sys/src/9/mtx/mmu.c @@ -85,10 +85,11 @@ mmusweep(void*) sweepcolor = m->sweepcolor; x = splhi(); - p = proctab(0); - for(i = 0; i < conf.nproc; i++, p++) + for(i = 0; i < conf.nproc; i++) { + p = proctab(i); if(PIDCOLOR(p->mmupid) == sweepcolor) p->mmupid = 0; + } splx(x); ptab = (ulong*)m->ptabbase; |