[parisc-linux] Re: [parisc-linux-cvs] linux-2.6 grundler

Grant Grundler grundler at parisc-linux.org
Mon Feb 13 23:58:05 MST 2006


On Mon, Feb 13, 2006 at 03:43:08PM +0800, Randolph Chung wrote:
> > 	However, accesses to (struct stat64).st_size will always
> > 	get a misaligned trap on 64-bit kernel. __pad2 and st_size
> > 	fields need to be swapped. Can we do that?
> 
> Where do you an access to st_size that will get a misalignment trap?

I don't. Staring at the code too long late at night ... I had
not realized that "long long" is aligned 64-bit for both
32 and 64-bit builds. Willy pointed that out.

> Swapping fields is not an option.

No problem. Just means we have one more "hole" in the struct
that we didn't plan on becuase of where pad2 field is.

thanks,
grant



More information about the parisc-linux mailing list