>>>>> On Wed, 24 Apr 2002 15:03:15 -0700, Jun Sun <firstname.lastname@example.org> said:
jsun> Looks like the infamous cache aliasing problem. Steve
jsun> Longerbeam had a patch which may help. Please try it and let me
jsun> know the results.
jsun> +#define COLOUR_ALIGN(addr) (((addr)+SHMLBA-1)&~(SHMLBA-1))
Recent sparc64's COLOUR_ALIGN macro have pgoff argument like this.
We should do it same way for MIPS?
#define COLOUR_ALIGN(addr,pgoff) \
((((addr)+SHMLBA-1)&~(SHMLBA-1)) + \
(((pgoff)<<PAGE_SHIFT) & (SHMLBA-1)))