Re: [PATCH] WorkStruct: Implement generic UP cmpxchg() where an arch doesn't support it

Douglas McNaught
2006-12-07T02:09:04Z

Matthew Wilcox <matthew@wil.cx> writes:

> On Wed, Dec 06, 2006 at 05:36:29PM -0800, Linus Torvalds wrote:
>> Or are you saying that gcc aligns normal 32-bit entities at
>> 16-bit alignment? Neither of those sound very likely.
>
> alignof(u32) is 2 on m68k. Crazy, huh?

The original 68000 had a 16-bit bus (but 32-bit registers), which is
probably why it's that way.

-Doug