CACHE_LINE_SIZE macro.
Adrian Chadd
adrian at freebsd.org
Tue Nov 6 21:37:48 UTC 2012
On 6 November 2012 13:35, Warner Losh <imp at 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
More information about the freebsd-mips
mailing list