[Top] [All Lists]

Re: Linux Shared Memory Issue

Subject: Re: Linux Shared Memory Issue
From: Atsushi Nemoto <>
Date: Thu, 25 Apr 2002 14:25:18 +0900 (JST)
In-reply-to: <>
Organization: TOSHIBA Personal Computer System Corporation
References: <> <>
>>>>> On Wed, 24 Apr 2002 15:03:15 -0700, Jun Sun <> 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)))

Thank you.
Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>