Port-mips archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: enforcing page color matches



On May 25, 2011, at 8:11 AM, Eduardo Horvath wrote:

> On Wed, 25 May 2011, Matt Thomas wrote:
> 
>> I'm using a MIPS 74K which needs strict page-coloring enforcement (4 colors 
>> for its Icache and 2 colors for its Dcache) so this is important to me.  If 
>> this can be enforced, the code to deal with bad colors can be removed and 
>> that will greatly simplify the mips pmap code.
> 
> I don't think that you can get rid of the page coloring code.  What 
> happens if you have two processes that have the same file mmap()ed to 
> different page colors?  But reducing the need for it is good.

I think the mmap for one of those mappings should fail.


Home | Main Index | Thread Index | Old Index