Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Nov 2012 13:37:47 -0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        Warner Losh <imp@bsdimp.com>
Cc:        "Rodney W. Grimes" <freebsd@pdx.rh.cn85.chatusa.com>, Juli Mallett <juli@clockworksquid.com>, "freebsd-mips@FreeBSD.org" <freebsd-mips@freebsd.org>
Subject:   Re: CACHE_LINE_SIZE macro.
Message-ID:  <CAJ-Vmo=A_RkqCEb60TnMa16Bf4zaOWY73ZZVou68GJ3_0NBFGg@mail.gmail.com>
In-Reply-To: <2E046873-B6A1-4F9C-8F3C-1CE6E60C6BF7@bsdimp.com>
References:  <B4225C25-BD43-423C-A1A2-C9FD4AC92ECB@bsdimp.com> <201211051201.qA5C1rIo094612@pdx.rh.CN85.ChatUSA.com> <CAJ-Vmon7p_MbtqnFPUd0Cy4RrReOKyrAB095k27GiOR0Uyh_gA@mail.gmail.com> <2E046873-B6A1-4F9C-8F3C-1CE6E60C6BF7@bsdimp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 6 November 2012 13:35, Warner Losh <imp@bsdimp.com> wrote:
> I think the real answer is to not abuse CACHE_LINE_SIZE for these things at all, but make it a per-arch decision...  That way mips32 could, for example, not align and mips64 could if it wanted to...
>
> Having this be an ABI thing would be unfortunate.

Right. This is why I initially replied to attilio/jeff/etc and asked
why not separate out CACHE_LINE_SIZE from what you should use to align
shared structures like mutexes (and atomics too..)



Adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=A_RkqCEb60TnMa16Bf4zaOWY73ZZVou68GJ3_0NBFGg>