changelog shortlog tags branches changeset files revisions annotate raw help

Mercurial > hg > plan9front / rc/bin/""

changeset 4350: 1f9d7811d546
parent: 49c99161cb02
child: 0dbb01291c38
author: cinap_lenrek@felloff.net
date: Mon, 16 Mar 2015 05:46:08 +0100
permissions: -rwxr-xr-x
description: kernel: get rid of auxpage() and preserve cache index bits in Page.va in mount cache

the mount cache uses Page.va to store cached range offset and
limit, but mips kernel uses cache index bits from Page.va to
maintain page coloring. Page.va was not initialized by auxpage().

this change removes auxpage() which was primarily used only
by the mount cache and use newpage() with cache file offset
page as va so we will get a page of the right color.

mount cache keeps the index bits intact by only using the top
and buttom PGSHIFT bits of Page.va for the range offset/limit.
1 #!/bin/rc
2 
3 PROMPT='[^ ]*(%|;)+[ ]+'
4 
5 _x = `{" $* | tail -1}
6 if(~ $#_x 0) {
7  echo no such command found
8  exit notfound
9 }
10 
11 echo ' ' $_x
12 _x=`{ echo -n 'eval '; echo $_x | sed 's/^'$PROMPT'//'}
13 rc -c $"_x