On Tue, Oct 03, 2006 at 09:42:29AM +0100, David Woodhouse wrote: > --- a/include/linux/eventpoll.h > +++ b/include/linux/eventpoll.h > @@ -29,8 +29,11 @@ #define EPOLLONESHOT (1 << 30) > #define EPOLLET (1 << 31) > > /* > - * On x86-64 make the 64bit structure have the same alignment as the > - * 32bit structure. This makes 32bit emulation easier. > + * On i386, the u64 won't be aligned to 64-bits. So on x86_64 we pack > + * the structure to be compatible. It seems that other 32-bit architectures > + * will align the u64 naturally anyway, so we don't have to worry there. > + * For example, both ppc and ppc64 put an extra 32 bits of padding in > + * between the fields. > */ > #ifdef __x86_64__ > #define EPOLL_PACKED __attribute__((packed))
Obviously, this should be #if (defined(__x86_64__) || defined(__ia64)) since they both COMPAT i386. - To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
